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 });