What is a pull_request synchronize event #24567
|
What precisely causes a synchronize event? The docs don’t define what it is. |
Replies: 6 comments 10 replies
|
Hi @simonbyrne, Thank you for being here! A pull_request event it’s only triggered when the pull request’s tracking branch is synchronized with the source branch for the pull request, and that happens when the source branch is updated. |
|
Hi Andrea, Thanks for your reply. Do you know if it also gets triggered when the base branch (that the PR is merging into) is updated? Thanks, Simon |
|
Hey @simonbyrne, Thanks for the follow up. What this implies is that if you push a new commit to the HEAD ref of a pull request then this “synchronize” event will be triggered. This is because the system is syncing the pull requests with the latest changes. This will NOT trigger if the base ref is updated. |
|
How come this question is asked in 2020 and there is still no documentation about it? |
Hello, If you navigate to the pull_request event documentation and click the
Every push to a repository will generate a If you want a workflow that responds to changes in the PR merge outcome, then you should subscribe to the |
|
Maybe it shouldn't be hidden behind a dropdown. It was very difficult to find. |

Hey @simonbyrne,
Thanks for the follow up. What this implies is that if you push a new commit to the HEAD ref of a pull request then this “synchronize” event will be triggered. This is because the system is syncing the pull requests with the latest changes. This will NOT trigger if the base ref is updated.