From f1b293d70e725f51f67e5df541b6d87a175edf68 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 9 Dec 2024 22:20:22 +0100 Subject: [PATCH] GH-44974: [Dev] Fix minor issue handling (#44975) ### Rationale for this change The current implementation works for `GH-XXX` PRs but doesn't work for `MINOR` PRs. ### What changes are included in this PR? Add a missing `issue.kind` check. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * GitHub Issue: #44974 Authored-by: Antoine Pitrou Signed-off-by: Sutou Kouhei --- .github/workflows/dev_pr/link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev_pr/link.js b/.github/workflows/dev_pr/link.js index f7877f41dd5a3..3f50a5b9b9d4d 100644 --- a/.github/workflows/dev_pr/link.js +++ b/.github/workflows/dev_pr/link.js @@ -77,7 +77,7 @@ module.exports = async ({github, context}) => { const pullRequestNumber = context.payload.number; const title = context.payload.pull_request.title; const issue = helpers.detectIssue(title); - if (issue){ + if (issue && issue.kind === "github") { await commentGitHubURL(github, context, pullRequestNumber, issue.id); } };