mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
releaser: Adjustments
This commit is contained in:
@@ -29,7 +29,6 @@ const (
|
||||
templateChanges = "templateChanges"
|
||||
coreChanges = "coreChanges"
|
||||
outChanges = "outChanges"
|
||||
docsChanges = "docsChanges"
|
||||
otherChanges = "otherChanges"
|
||||
)
|
||||
|
||||
@@ -91,8 +90,6 @@ func gitInfosToChangeLog(infos gitInfos) *changeLog {
|
||||
category = notesChanges
|
||||
} else if regexp.MustCompile("(?i)tpl|tplimpl:|layout").MatchString(los) {
|
||||
category = templateChanges
|
||||
} else if regexp.MustCompile("(?i)docs?:|documentation:").MatchString(los) {
|
||||
category = docsChanges
|
||||
} else if regexp.MustCompile("(?i)hugolib:").MatchString(los) {
|
||||
category = coreChanges
|
||||
} else if regexp.MustCompile("(?i)out(put)?:|media:|Output|Media").MatchString(los) {
|
||||
@@ -247,7 +244,7 @@ func getGitInfosBefore(ref, tag string, remote bool) (gitInfos, error) {
|
||||
}
|
||||
|
||||
// Ignore autogenerated commits etc. in change log. This is a regexp.
|
||||
const ignoredCommits = "releaser?:|snapcraft:"
|
||||
const ignoredCommits = "releaser?:|snapcraft:|Merge commit|Squashed|Revert"
|
||||
|
||||
func gitLogBefore(ref, tag string) (string, error) {
|
||||
var prevTag string
|
||||
|
Reference in New Issue
Block a user