diff --git a/.github/scripts/constants.js b/.github/scripts/constants.js index e74a17928d..6dede1243b 100644 --- a/.github/scripts/constants.js +++ b/.github/scripts/constants.js @@ -37,5 +37,5 @@ module.exports = Object.freeze({ "IGNORE_AUTHORS": ["dependabot[bot]"], /** @type {RegExp} */ - "RELATED_ISSUE_REGEX": /\bIssue number:(?:closes?|close|fix|fixes?|fixed|resolves?|resolved)?\s*#(?\d+)\b/ + "RELATED_ISSUE_REGEX": /\b\*{0,2}[iI]ssue [nN]umber\*{0,2}:\*{0,2}\s*(?closes?|closed|fix|fixes?|fixed|resolves?|resolved)?\s*#(?\d+)\b/ }); \ No newline at end of file diff --git a/.github/scripts/label_missing_related_issue.js b/.github/scripts/label_missing_related_issue.js index f5def29266..e7b9812a48 100644 --- a/.github/scripts/label_missing_related_issue.js +++ b/.github/scripts/label_missing_related_issue.js @@ -14,7 +14,7 @@ module.exports = async ({ github, context, core }) => { return core.notice("Author in IGNORE_AUTHORS list; skipping..."); } - if (["opened"].includes(PR_ACTION)) { + if (!["opened"].includes(PR_ACTION)) { return core.notice( "Only newly opened PRs are labelled to avoid spam; skipping" ); diff --git a/.github/scripts/label_pr_based_on_title.js b/.github/scripts/label_pr_based_on_title.js index 24e17191b9..859ec7e0c7 100644 --- a/.github/scripts/label_pr_based_on_title.js +++ b/.github/scripts/label_pr_based_on_title.js @@ -38,7 +38,7 @@ module.exports = async ({ github, context, core }) => { } finally { if (miss == Object.keys(labels).length) { core.notice( - `PR ${PR_NUMBER} title '${PR_TITLE}' doesn't follow semantic titles; skipping...` + `PR ${PR_NUMBER} title '${PR_TITLE}' contain any of the release-related types; skipping...` ); } }