Skip to content

Commit

Permalink
feat: prefer deps when scope is deps
Browse files Browse the repository at this point in the history
  • Loading branch information
haunt98 committed Feb 28, 2025
1 parent 19fbfd1 commit 7fb146c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions internal/changelog/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,17 @@ var changelogTypes = []string{
}

func getType(conventionCommit convention.Commit) string {
if conventionCommit.Scope == depsScope {
return buildType
}

switch conventionCommit.Type {
case convention.FeatType:
return addedType
case convention.FixType:
return fixedType
case convention.BuildType, convention.CIType:
return buildType
case convention.ChoreType:
if conventionCommit.Scope == depsScope {
return buildType
}

return othersType
default:
return othersType
}
Expand Down

0 comments on commit 7fb146c

Please sign in to comment.