Skip to content

Commit 8cd26ba

Browse files
committed
debug
1 parent 79292b7 commit 8cd26ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/actions/get-linked-pr/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,18 @@ runs:
4848
const prBody = process.env.PR_BODY;
4949
const targetRepo = process.env.TARGET_REPO;
5050
51+
console.error(`Looking for linked PR in body:\n${prBody}`);
52+
5153
const prUrlPrefix = RegExp.escape(`https://github.com/${targetRepo}/pull`);
5254
5355
// Captures the PR URL in a "link to ..." phrase.
5456
const prUrlRegex = new RegExp(`\\blink to (${prUrlPrefix}\/\\d+)\/?`, "i");
5557
5658
const prUrl = prBody.match(prUrlRegex)?.[1];
59+
60+
console.error("Full match:", prBody.match(prUrlRegex))
61+
console.error(`Matched: ${prUrl}`);
62+
5763
return prUrl || "";
5864
result-encoding: string
5965

0 commit comments

Comments
 (0)