What is a pull_request synchronize event #24567
-
What precisely causes a synchronize event? The docs don’t define what it is. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
How come this question is asked in 2020 and there is still no documentation about it? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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.