Skip to content

Commit 7c39ec7

Browse files
committed
fix(ci): support Markdown-style links in PR template URL check
1 parent 4ffe420 commit 7c39ec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
const checkbox2 = /\[x\].*?I have read and accepted/i.test(body);
6565
6666
// 2. URL must be on the exact "The site content can be seen at ..." line
67-
const urlLineRegex = /^[ \t]*-[ \t]*The site content can be seen at[ \t]+(https?:\/\/[^\s]+)/m;
67+
const urlLineRegex = /^[ \t]*-[ \t]*The site content can be seen at[ \t]+(?:<)?(?:\[.*?\]\()?https?:\/\/[^\s>()]+(?:\))?(?:>)?/m;
6868
const urlMatch = urlLineRegex.exec(body);
6969
const urlValid = urlMatch !== null;
7070

0 commit comments

Comments
 (0)