template_custom

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 13 Imported by: 0

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

func EditWithEditor(initialContent string) (string, error)

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

Jump to

Keyboard shortcuts

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