Skip to content

Commit 6a85c35

Browse files
committed
fix: collect all PR-URL entries in getAltPrUrl()
Signed-off-by: Daijiro Wachi <daijiro.wachi@gmail.com>
1 parent 4ea22b8 commit 6a85c35

3 files changed

Lines changed: 355 additions & 125 deletions

File tree

lib/links.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const FIXES_RE = /(Close[ds]?|Fix(e[ds])?|Resolve[sd]?)\s*:\s*(\S+)/mgi;
44
const FIX_RE = /(Close[ds]?|Fix(e[ds])?|Resolve[sd]?)\s*:\s*(\S+)/i;
55
const REFS_RE = /Refs?\s*:\s*(\S+)/mgi;
66
const REF_RE = /Refs?\s*:\s*(\S+)/i;
7+
const PRS_RE = /PR-URL\s*:\s*(\S+)/gi;
78
const PR_RE = /PR-URL\s*:\s*(\S+)/i;
89

910
/**
@@ -80,7 +81,7 @@ export class LinkParser {
8081

8182
getAltPrUrl() {
8283
const text = this.$.text();
83-
const refs = text.match(PR_RE) || [];
84+
const refs = text.match(PRS_RE) || [];
8485
return this.getPRUrlsFromArray(refs);
8586
}
8687
}

0 commit comments

Comments
 (0)