Skip to content

Commit

Permalink
chore: support type test, build and style in pr title (#1581)
Browse files Browse the repository at this point in the history
## Rationale
Close #1575 

## Detailed Changes
Update the check-pr-title pattern to include type `test`, `style` and
`build`.

## Test Plan
No need.
  • Loading branch information
LeslieKid authored Oct 25, 2024
1 parent 09dace7 commit e42276c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
script: |
const title = context.payload.pull_request.title;
const regex = /^(feat|fix|docs|refactor|chore)(\(.+\))?!?: .+$/;
const regex = /^(feat|fix|docs|refactor|chore|test|style|build)(\(.+\))?!?: .+$/;
if (!regex.test(title)) {
core.setFailed('PR title does not follow the convention, the pattern: ^(feat|fix|docs|refactor|chore)(\(.+\))?!?: .+$');
}
Expand Down

0 comments on commit e42276c

Please sign in to comment.