What is a pull_request synchronize event

What precisely causes a synchronize event? The docs don’t define what it is.

5 Likes

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.

1 Like

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.

5 Likes