Skip to content

Commit

Permalink
Merge pull request #1219 from wakmusic/1218-issue-auto-closer
Browse files Browse the repository at this point in the history
  • Loading branch information
baekteun authored Aug 25, 2024
2 parents 37120ea + cacf0ee commit 169d9c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/Auto_close_associate_issue/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/AutoCloseIssueByPullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 169d9c6

Please sign in to comment.