Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit c439760

Browse files
committed
wip
1 parent 256decd commit c439760

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,15 @@ jobs:
2727
const title = context.payload.pull_request.title;
2828
const labels = context.payload.pull_request.labels.map(l => l.name);
2929
if (labels.includes('dev')) {
30-
console.log('Skipping PR title check due to dev label.');
31-
return;
32-
}
33-
const regex = /^(feat|fix|refactor|doc|perf|style|test|chore|revert)!?:[ ][a-z].*$/;
34-
if (!regex.test(title)) {
30+
const regex = /^(?!feat|fix|refactor|doc|perf|style|test|chore|revert)[a-z].*$/;
3531
core.setFailed(
36-
`PR title "${title}" does not match the expected conventional commit format`
32+
`PR title "${title}" does not match the commit format for non-user-facing changes`
3733
);
34+
} else {
35+
const regex = /^(feat|fix|refactor|doc|perf|style|test|chore|revert)!?:[ ][a-z].*$/;
36+
if (!regex.test(title)) {
37+
core.setFailed(
38+
`PR title "${title}" does not match the expected conventional commit format for user-facing changes`
39+
);
40+
}
3841
}

0 commit comments

Comments
 (0)