Skip to content

Allow on.bots Apps to check out same-repository PR edits - #72466

Closed
pelikhan with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-pr-branch-handling
Closed

pelikhan with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-pr-branch-handling

Conversation

Copilot AI commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Body-only PR edits by an on.bots App fail checkout because GitHub’s collaborator API can report none for Apps. Without a new commit, description fixes cannot be re-reviewed.

  • Checkout authorization: Allow edited events on pull_request and pull_request_target for explicitly allowed bots.
  • Trust boundaries: Require the sender to match the actor and both PR repository IDs to match the event repository. Preserve permission checks for unlisted bots and fork PRs; leave labeled behavior unchanged.
  • Coverage and documentation: Add regression cases, extend the checkout safety model, and document body-only re-review support.

@pelikhan pelikhan closed this Oct 27, 2026
Copilot AI changed the title [WIP] Fix checkout PR branch for edited events in on.bots App Allow on.bots Apps to check out same-repository PR edits Oct 27, 2026
Copilot AI requested a review from pelikhan October 27, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Checkout PR branch refuses an on.bots App's pull_request edited event, so a body-only fix can't be re-reviewed

2 participants