diff --git a/ci/github-script/commits.js b/ci/github-script/commits.js index 41922c810a69..2e44de487b55 100644 --- a/ci/github-script/commits.js +++ b/ci/github-script/commits.js @@ -22,7 +22,7 @@ module.exports = async ({ github, context, core, dry }) => { async function extract({ sha, commit }) { const noCherryPick = Array.from( - commit.message.matchAll(/^Not-cherry-picked-because: (.*)$/g), + commit.message.matchAll(/^Not-cherry-picked-because: (.*)$/gm), ).at(0) if (noCherryPick)