You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Checkout PR branch refuses an on.bots App's pull_request edited event, so a body-only fix can't be re-reviewed #72320
We run a review loop as one GitHub App, listed in on.bots:
A review workflow reviews each agent PR on opened and synchronize.
An iterate workflow answers the review as the same App.
Some findings are about the PR description, not the code: a missing row in a test-changes table, or a wrong closing keyword. The iterate workflow fixes those by editing the PR body with update-pull-request. That pushes no commit.
So the review workflow also listens for pull_request: edited, filtered by if: to the App's own body edits, to re-review the fixed description.
Why we're blocked
Every review run started by the App's edited event fails at "Checkout PR branch", before the agent starts:
ERR_PERMISSION: Refusing PR checkout: actor '<app>[bot]' has 'none' permission (requires write or higher)
The same App passes checkout on the same same-repository PR for opened, synchronize and its own pull_request_review. Only the body edit is refused. Nothing re-reviews the fix, and the loop stalls quietly.
We see this on v0.92.0, and nothing in v0.93.5, v0.93.6 or main appears to change it.
We've worked around it with a plain workflow that turns the App's body edit into an empty commit, so synchronize fires instead. That costs a commit and a CI run per edit, and we'd rather not keep it.
The request
Is there a supported way for a workflow woken by an on.bots App's edited event on a same-repository PR to check out the PR branch? If this is refused on purpose, what pattern would you recommend for re-reviewing a PR after a body-only change?
Related
#71151 and #72074 cover the same situation for labeled.
Activity