Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitConfig ¶
type CommitConfig struct { IssueRegex string // Regex for issue numbers in branch name OutputIssuePrefix string // Prefix before each issue number in the commit message OutputIssueSuffix string // Suffix after each issue number in the commit message OutputStringPrefix string // Prefix before the list of issues in the commit message OutputStringSuffix string // Suffix after the list of issues and before the user's message }
Representation of settings that can be set from the config file
func MakeDefaultConfig ¶
func MakeDefaultConfig() CommitConfig
Helper function to create a default config
func ReadCommitConfig ¶
func ReadCommitConfig(fileReader FileReading, configFilePath string) (CommitConfig, error)
Reads config at the file path and unmarshals it into commitConfig struct
Click to show internal directories.
Click to hide internal directories.