Make danger
to output less false-positives (#19151)
This commit is contained in:
parent
54683ff2b9
commit
ec5d6e96bb
2 changed files with 13 additions and 10 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue