diff --git a/.github/workflows/check-milestone.yml b/.github/workflows/check-milestone.yml index f83950035cd55c1e099d1d9dfc9727ec37f141b4..22b65a1183df1f3c5780807de266016ad288cafc 100644 --- a/.github/workflows/check-milestone.yml +++ b/.github/workflows/check-milestone.yml @@ -26,8 +26,8 @@ jobs: // the github API doesn't expose linked issues, so we have to parse the body ourselves function getLinkedIssueId(pull) { - // https://regexr.com/7mjnp - const match = pull.data.body.match(/(\/issues\/|#)(\d+)/); + // https://regexr.com/7sk94 + const match = pull.data.body.match(/(close(s|d)?|fixe?(s|d)?|resolve(s|d)?) (#|https?:\/\/github.com\/.+\/issues\/)(\d+)/i); return match && match?.[2]; }