We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81644da commit a25afdcCopy full SHA for a25afdc
1 file changed
internal/engine/commit_evaluator.go
@@ -5,7 +5,12 @@ package engine
5
6
import "regexp"
7
8
-var conventionalCommitPattern = regexp.MustCompile(`^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\([A-Za-z0-9._/-]+\))?!?: .+`)
+const conventionalCommitTypePattern = `(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)`
9
+const conventionalCommitScopePattern = `(\([A-Za-z0-9._/-]+\))?`
10
+
11
+var conventionalCommitPattern = regexp.MustCompile(
12
+ `^` + conventionalCommitTypePattern + conventionalCommitScopePattern + `!?: .+`,
13
+)
14
15
// Commit contains commit-level data that can be evaluated by policies.
16
type Commit struct {
0 commit comments