Skip to content

Commit 203c292

Browse files
committed
chore(ci): fix reference error in related_issue
1 parent 2a51de0 commit 203c292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: .github/scripts/label_related_issue.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = async ({github, context}) => {
66

77
const RELATED_ISSUE_REGEX = /Issue number:[^\d\r\n]+(?<issue>\d+)/;
88

9-
const isMatch = RELATED_ISSUE_REGEX.exec(body);
9+
const isMatch = RELATED_ISSUE_REGEX.exec(prBody);
1010
if (!isMatch) {
1111
core.setFailed(`Unable to find related issue for PR number ${prNumber}.\n\n Body details: ${prBody}`);
1212
return await github.rest.issues.createComment({

0 commit comments

Comments
 (0)