From fea27a634318f3e71300e9191481ef46dd988241 Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Wed, 5 Nov 2025 12:19:44 -0600 Subject: [PATCH] Get PR number correctly in add-comment workflow --- .github/workflows/auto-comment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-comment.yml b/.github/workflows/auto-comment.yml index 4025503..fa6fa34 100644 --- a/.github/workflows/auto-comment.yml +++ b/.github/workflows/auto-comment.yml @@ -20,6 +20,6 @@ jobs: github.rest.issues.createComment({ owner, repo, - issue_number: context.payload.issue.number, + issue_number: context.payload.issue?.number ?? context.payload.pull_request?.number, body: commentBody });