commit_msg

package
v0.0.0-...-a295026 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TmplNameAndroid is the name of the commit message template used by
	// rollers which roll into Android.
	TmplNameAndroid = "android"

	// TmplNameAndroidNoCR is the name of the commit message template used by
	// rollers which roll into Android where the service account does not
	// have CR+2 access.
	TmplNameAndroidNoCR = "android_nocr"
)
View Source
const (
	// TmplNameCanary is the name of the commit message template used by
	// canary rolls.
	TmplNameCanary = "canary"
)
View Source
const (
	// TmplNameDefault is the name of the default commit message template which
	// is suitable for most rollers.
	TmplNameDefault = "default"
)

Variables

This section is empty.

Functions

func FakeCommitMsgInputs

func FakeCommitMsgInputs() (*revision.Revision, *revision.Revision, []*revision.Revision, []string, []string, bool, string)

FakeCommitMsgInputs returns Revisions which may be used to validate commit message templates.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder is a helper used to build commit messages.

func NewBuilder

func NewBuilder(c *config.CommitMsgConfig, reg *config_vars.Registry, childName, parentName, serverURL, childBugLink, parentBugLink string, transitiveDeps []*config.TransitiveDepConfig) (*Builder, error)

NewBuilder returns a Builder instance.

func (*Builder) Build

func (b *Builder) Build(from, to *revision.Revision, rolling []*revision.Revision, reviewers, contacts []string, canary bool, manualRollRequester string) (string, error)

Build a commit message for the given roll.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL