Skip to content

Commit 203254b

Browse files
committed
regex update to listen for more flexible words
1 parent 74ae50c commit 203254b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/auto-close-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
script: |
2020
const prBody = context.payload.pull_request.body;
21-
const issueRegex = /(Fixes|Resolves|Closes)\s+#(\d+)/gi;
21+
const issueRegex = /\b(close[sd]?|fix(e[sd])?|resolve[sd]?)[:\s]*#(\d+)\b/gi;
2222
let match;
2323
while ((match = issueRegex.exec(prBody)) !== null) {
2424
const issueNumber = parseInt(match[2], 10);

0 commit comments

Comments
 (0)