Help with regex pattern for AB#00000 #88
-
Hi team, Can someone help me with the regex pattern for the commit message type as follows: AB#000000 type: mymessage where type could be I have tested these ones, but are not working /^AB#[0-9]+ (?:fix|feat|docs|tests)/i
AB#[0-9]+ (?:fix|feat|docs|tests): m[A-Za-z0-9]+ |
Beta Was this translation helpful? Give feedback.
Answered by
codebydant
Jan 3, 2023
Replies: 2 comments
-
I think this works: "^AB#[0-9]+ (feat|test|fix).*" e.g.
Including the scope will be pattern: "^AB#[0-9]+ (feat|fix|test|docs|chore|style|refactor|ci|cd)\\((ci|mymodule)\\).*" e.g.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
codebydant
-
This improves the above pattern to make sure the type are correct. Pattern: pattern: "^AB#[0-9]+ \\b(feat|fix|test|docs|chore|style|refactor|ci|cd|build|perf|revert)\\b" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think this works:
"^AB#[0-9]+ (feat|test|fix).*"
e.g.
AB#0 feat: my message
Including the scope will be
e.g.
AB#0 feat(ci): my message