ci: Improve Danger and ci.yml explicitness (#31979)
Allow colons after issue links and for them to in ul. Change ci references from [self-hosted, test] to more explicit [self-hosted, macOS] Release Notes: - N/A --------- Co-authored-by: Ben Kunkle <ben.kunkle@gmail.com> Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
This commit is contained in:
parent
ae210eced8
commit
e7de80c6ae
4 changed files with 7 additions and 7 deletions
|
@ -38,7 +38,7 @@ if (!hasReleaseNotes) {
|
|||
}
|
||||
|
||||
const ISSUE_LINK_PATTERN =
|
||||
/(?<!(?:Close[sd]?|Fixe[sd]|Resolve[sd]|Implement[sed]|Follow-up of|Part of)\s+)https:\/\/github\.com\/[\w-]+\/[\w-]+\/issues\/\d+/gi;
|
||||
/(?:- )?(?<!(?:Close[sd]?|Fixe[sd]|Resolve[sd]|Implement[sed]|Follow-up of|Part of):?\s+)https:\/\/github\.com\/[\w-]+\/[\w-]+\/issues\/\d+/gi;
|
||||
|
||||
const bodyWithoutReleaseNotes = hasReleaseNotes ? body.split(/Release Notes:/)[0] : body;
|
||||
const includesIssueUrl = ISSUE_LINK_PATTERN.test(bodyWithoutReleaseNotes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue