Make danger to output less false-positives (#19151)

This commit is contained in:
Kirill Bulatov 2024-10-14 01:50:46 +03:00 committed by GitHub
parent 54683ff2b9
commit ec5d6e96bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 10 deletions

View file

@ -37,10 +37,11 @@ if (!hasReleaseNotes) {
}
const ISSUE_LINK_PATTERN = new RegExp(
"https://github\\.com/[\\w-]+/[\\w-]+/issues/\\d+",
"g",
"(?<!(?:Close[sd]?|Fixe[sd]|Resolve[sd]|Implement[sed])\\s+)https://github\\.com/[\\w-]+/[\\w-]+/issues/\\d+",
"gi"
);
const includesIssueUrl = ISSUE_LINK_PATTERN.test(body);
if (includesIssueUrl) {