diff --git a/.github/actions/Auto_close_associate_issue/main.js b/.github/actions/Auto_close_associate_issue/main.js index 850877d2f..010c4d8a4 100644 --- a/.github/actions/Auto_close_associate_issue/main.js +++ b/.github/actions/Auto_close_associate_issue/main.js @@ -8,7 +8,7 @@ let pattern = /Resolves: #\d+/; let issueNumber; try { - issueNumber = body.match(pattern)[0].replace("Resolves: #", ""); + issueNumber = body.match(pattern)[0].replace("Resolves: #", "").trim(); } catch { issueNumber = -1; } diff --git a/.github/workflows/AutoCloseIssueByPullRequest.yml b/.github/workflows/AutoCloseIssueByPullRequest.yml index 9408599a8..f2fac78bc 100644 --- a/.github/workflows/AutoCloseIssueByPullRequest.yml +++ b/.github/workflows/AutoCloseIssueByPullRequest.yml @@ -2,9 +2,9 @@ name: Auto close issue when PR is merged on: pull_request_target: + branches-ignore: + - "develop" types: [closed] - branches: - - "!develop" jobs: close-issue: