mumrah commented on PR #18147:
URL: https://github.com/apache/kafka/pull/18147#issuecomment-2546086336
Actually I'm realizing now this might not work. Since `pull_request_review`
runs the workflow definition from the PR, it will require approval before
running. However, for some reason the API call is failing on these approvals
```
$ gh api --method POST \
-H 'Accept: application/vnd.github+json' \
-H 'X-GitHub-Api-Version: 2022-11-28' \
/repos/apache/kafka/actions/runs/12356775485/approve
{
"message": "This run is not from a fork pull request",
"documentation_url":
"https://docs.github.com/rest/actions/workflow-runs#approve-a-workflow-run-for-a-fork-pull-request",
"status": "403"
}
gh: This run is not from a fork pull request (HTTP 403)
```
I was able to approve the workflow in the UI, but not using the API. Maybe
this is a bug in the `pull_request_review` event handling 🤷♂️
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]