Skip to content

Commit

Permalink
fix: Update the release check to be more permissive (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeerivers authored Dec 3, 2024
1 parent 34040dc commit 6df690b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/set-labels/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ runs:
script: |
const { NUMBER, OWNER, REPO, TITLE } = process.env
const regex = /^(build|chore|ci|deps|docs|feat|fix|perf|refactor|revert|style|test)(?:\((\S+)\))?(!)?: (.+)$/;
const releaseRegex = /^chore\(\S*\): release/;
console.log(`Checking title "${TITLE}"`);
console.log("For more information: https://www.conventionalcommits.org/en/v1.0.0/");
Expand Down Expand Up @@ -49,7 +50,7 @@ runs:
labels.push("patch");
}
if (TITLE.startsWith("chore(main): release")) {
if (releaseRegex.test(TITLE)) {
labels.push("autorelease: pending");
}
Expand Down

0 comments on commit 6df690b

Please sign in to comment.