From 6df690b59932a58c4618b5fb0e8c1961db610d1c Mon Sep 17 00:00:00 2001 From: aimee rivers Date: Tue, 3 Dec 2024 13:15:43 +0100 Subject: [PATCH] fix: Update the release check to be more permissive (#120) --- .github/actions/set-labels/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/set-labels/action.yml b/.github/actions/set-labels/action.yml index c0703c2..79c1319 100644 --- a/.github/actions/set-labels/action.yml +++ b/.github/actions/set-labels/action.yml @@ -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/"); @@ -49,7 +50,7 @@ runs: labels.push("patch"); } - if (TITLE.startsWith("chore(main): release")) { + if (releaseRegex.test(TITLE)) { labels.push("autorelease: pending"); }