We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79292b7 commit 8cd26baCopy full SHA for 8cd26ba
.github/actions/get-linked-pr/action.yml
@@ -48,12 +48,18 @@ runs:
48
const prBody = process.env.PR_BODY;
49
const targetRepo = process.env.TARGET_REPO;
50
51
+ console.error(`Looking for linked PR in body:\n${prBody}`);
52
+
53
const prUrlPrefix = RegExp.escape(`https://github.com/${targetRepo}/pull`);
54
55
// Captures the PR URL in a "link to ..." phrase.
56
const prUrlRegex = new RegExp(`\\blink to (${prUrlPrefix}\/\\d+)\/?`, "i");
57
58
const prUrl = prBody.match(prUrlRegex)?.[1];
59
60
+ console.error("Full match:", prBody.match(prUrlRegex))
61
+ console.error(`Matched: ${prUrl}`);
62
63
return prUrl || "";
64
result-encoding: string
65
0 commit comments