Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
add "generate" to ignore criteria for change log
Browse files Browse the repository at this point in the history
  • Loading branch information
imantung committed Jul 25, 2019
1 parent 1af2a8a commit 93159f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions EXPERIMENTAL/typitask/release_distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ func ReleaseDistribution(ctx typictx.ActionContext) (err error) {
return
}

// TODO: change logs should be unfiltered
func changeLogs(gitRepo *git.Repository) (changes []string) {
tagrefs, _ := gitRepo.Tags()
var latestTag *plumbing.Reference
Expand Down Expand Up @@ -143,11 +144,12 @@ func changeLogs(gitRepo *git.Repository) (changes []string) {
func ignoredMessage(message string) bool {
lowerMessage := strings.ToLower(message)

// TODO: ignore everything start with small-case character
// TODO: consider to ignore message if start with small-case character

return strings.HasPrefix(lowerMessage, "merge") ||
strings.HasPrefix(lowerMessage, "bump") ||
strings.HasPrefix(lowerMessage, "revision")
strings.HasPrefix(lowerMessage, "revision") ||
strings.HasPrefix(lowerMessage, "generate")
}

func releaseToGithub(githubDetail *typictx.Github, token string, releaseInfo githubReleaseInfo, force bool) (err error) {
Expand Down

0 comments on commit 93159f3

Please sign in to comment.