mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-01-23 02:15:12 +00:00
parent
75d59a9eb8
commit
44f71cbcd8
5 changed files with 192 additions and 44 deletions
37
chglog.go
37
chglog.go
|
|
@ -16,24 +16,25 @@ import (
|
|||
|
||||
// Options is an option used to process commits
|
||||
type Options struct {
|
||||
Processor Processor
|
||||
NextTag string // Treat unreleased commits as specified tags (EXPERIMENTAL)
|
||||
TagFilterPattern string // Filter tag by regexp
|
||||
NoCaseSensitive bool // Filter commits in a case insensitive way
|
||||
CommitFilters map[string][]string // Filter by using `Commit` properties and values. Filtering is not done by specifying an empty value
|
||||
CommitSortBy string // Property name to use for sorting `Commit` (e.g. `Scope`)
|
||||
CommitGroupBy string // Property name of `Commit` to be grouped into `CommitGroup` (e.g. `Type`)
|
||||
CommitGroupSortBy string // Property name to use for sorting `CommitGroup` (e.g. `Title`)
|
||||
CommitGroupTitleMaps map[string]string // Map for `CommitGroup` title conversion
|
||||
HeaderPattern string // A regular expression to use for parsing the commit header
|
||||
HeaderPatternMaps []string // A rule for mapping the result of `HeaderPattern` to the property of `Commit`
|
||||
IssuePrefix []string // Prefix used for issues (e.g. `#`, `gh-`)
|
||||
RefActions []string // Word list of `Ref.Action`
|
||||
MergePattern string // A regular expression to use for parsing the merge commit
|
||||
MergePatternMaps []string // Similar to `HeaderPatternMaps`
|
||||
RevertPattern string // A regular expression to use for parsing the revert commit
|
||||
RevertPatternMaps []string // Similar to `HeaderPatternMaps`
|
||||
NoteKeywords []string // Keyword list to find `Note`. A semicolon is a separator, like `<keyword>:` (e.g. `BREAKING CHANGE`)
|
||||
Processor Processor
|
||||
NextTag string // Treat unreleased commits as specified tags (EXPERIMENTAL)
|
||||
TagFilterPattern string // Filter tag by regexp
|
||||
NoCaseSensitive bool // Filter commits in a case insensitive way
|
||||
CommitFilters map[string][]string // Filter by using `Commit` properties and values. Filtering is not done by specifying an empty value
|
||||
CommitSortBy string // Property name to use for sorting `Commit` (e.g. `Scope`)
|
||||
CommitGroupBy string // Property name of `Commit` to be grouped into `CommitGroup` (e.g. `Type`)
|
||||
CommitGroupSortBy string // Property name to use for sorting `CommitGroup` (e.g. `Title`)
|
||||
CommitGroupTitleOrder []string // Predefined sorted list of titles to use for sorting `CommitGroup`. Only if `CommitGroupSortBy` is `Custom`
|
||||
CommitGroupTitleMaps map[string]string // Map for `CommitGroup` title conversion
|
||||
HeaderPattern string // A regular expression to use for parsing the commit header
|
||||
HeaderPatternMaps []string // A rule for mapping the result of `HeaderPattern` to the property of `Commit`
|
||||
IssuePrefix []string // Prefix used for issues (e.g. `#`, `gh-`)
|
||||
RefActions []string // Word list of `Ref.Action`
|
||||
MergePattern string // A regular expression to use for parsing the merge commit
|
||||
MergePatternMaps []string // Similar to `HeaderPatternMaps`
|
||||
RevertPattern string // A regular expression to use for parsing the revert commit
|
||||
RevertPatternMaps []string // Similar to `HeaderPatternMaps`
|
||||
NoteKeywords []string // Keyword list to find `Note`. A semicolon is a separator, like `<keyword>:` (e.g. `BREAKING CHANGE`)
|
||||
}
|
||||
|
||||
// Info is metadata related to CHANGELOG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue