Cannot reproduce behavior documented in pull_request.synchronize
Code of Conduct
- [X] I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads?actionType=synchronize#pull_request
What part(s) of the article would you like to see updated?
Unfortunately, I don't think the documentation is correct -- can someone double-check me here?
A pull request's head branch was updated. For example, the head branch was updated from the base branch, new commits were pushed to the head branch, or the base branch was changed.
Specifically, I cannot reproduce the "or the base branch was changed" logic.
Steps:
- Open PR with action on
pull_request - Workflow runs because of the
openedevent - Edit PR to change base branch from
maintosome_other_ref(different SHA)
Expected: CI should run because the base branch has changed.
Actual: CI does not run.
Additional information
No response
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.
Reviewing our recent webhooks, it seems that this is actually kicking off an edited event. Is it possible that changing base branch actually emits the edited event rather than synchronize?
The title or body of a pull request was edited.
-- https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads?actionType=edited#pull_request
However, looking at the schema of the event shows the base branch as part of the 'changes' payload:

@christianbundy Thanks so much for opening an issue! We appreciate all the info and screenshots 💖
I'll triage this for the team to take a look :eyes:
Thanks for opening this issue! I also was unable to trigger the "synchronize" action by changing the base branch of a PR. We need to update these docs internally, so I'm going to add a label to start that process.
Thank you for opening this issue! Updates to the REST/GraphQL API description must be made internally. I have copied your issue to an internal issue, so I will close this issue.