Skip to content

Commit c2d857f

Browse files
fix(bot): update LinkBot regex to support Closes and Resolves (#1465) (#1511)
Signed-off-by: Siddhartha Ganguly <gangulysiddhartha22@gmail.com>
1 parent e228937 commit c2d857f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/scripts/bot-pr-missing-linked-issue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = async ({ github, context }) => {
3535
}
3636

3737
const body = prData.body || "";
38-
const regex = /\bFixes\s*:?\s*(#\d+)(\s*,\s*#\d+)*/i;
38+
const regex = /\b(Fixes|Closes|Resolves)\s*:?\s*(#\d+)(\s*,\s*#\d+)*/i;
3939

4040
const comments = await github.rest.issues.listComments({
4141
owner: context.repo.owner,

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.
186186
- Enhance TopicInfo `__str__` method and tests with additional coverage, and update the format_key function in `key_format.py` to handle objects with a _to_proto method.
187187

188188
### Fixed
189+
- Updated LinkBot regex in the GitHub Actions bot script to support "Closes" and "Resolves" keywords for improved PR body-link detection (#1465)
189190
- Fixed CodeRabbit plan trigger workflow running multiple times when issues are created with multiple labels by switching to labeled event trigger only. (#1427)
190191
- Prevent LinkBot from posting duplicate “missing linked issue” comments on pull requests. (#1475)
191192
- Refined intermediate assignment guard to validate Beginner issue completion with improved logging and GraphQL-based counting. (#1424)

0 commit comments

Comments
 (0)