Documentation
¶
Index ¶
Constants ¶
View Source
const ( BeforeMatch = iota AfterMatch )
Variables ¶
View Source
var ( // Error returned when no matches are found in a PR template ErrNoMatchesFound = fmt.Errorf("no matches found") // Error returned when multiple matches are found in a PR template ErrMultipleMatchesFound = fmt.Errorf("multiple matches found") )
Functions ¶
func EditWithEditor ¶
EditWithEditor opens the default editor to allow the user to edit the provided content.
Types ¶
type CustomTemplatizer ¶
type CustomTemplatizer struct {
// contains filtered or unexported fields
}
func NewCustomTemplatizer ¶
func NewCustomTemplatizer( repoConfig *config.RepoConfig, gitcmd git.GitInterface, ) *CustomTemplatizer
func (*CustomTemplatizer) Body ¶
func (t *CustomTemplatizer) Body(info *github.GitHubInfo, commit git.Commit, pr *github.PullRequest) string
func (*CustomTemplatizer) Title ¶
func (t *CustomTemplatizer) Title(info *github.GitHubInfo, commit git.Commit) string
Click to show internal directories.
Click to hide internal directories.