-
Suggestion
-
Resolution: Done
Hi everyone,
Thanks for your feedback and advocacy on this suggestion. In Bitbucket Server and Data Center 7.0 we have introduced a new webhook - 'Source branch updated'. This webhook will send the pull request context when source branch of a pull request is updated e.g. new commits pushed to the source branch. You can check the sample payload on this page.
Try it out and let us know how it goes.
Thanks!
Imran Khan, Product Manager - Bitbucket Server
Original description
Related to BSERV-10278, webhooks are looking great and we're excited to integrate pull request support.
There doesn't seem to be a pull request event for when the pull request is updated. For example, somebody changes the title. Bitbucket Cloud has this as a pull request updated event:
https://confluence.atlassian.com/bitbucket/event-payloads-740262817.html#EventPayloads-Updated.2
GitHub's is pull request edited:
https://developer.github.com/v3/activity/events/types/#pullrequestevent
There also doesn't seem to be an event for when the proposed head changes, like if somebody pushes extra commits onto the pull request branch. GitHub calls a "synchronize" event, and includes the pull request details including the new head commit sha for merging, another subtype of their pull request event. I'm not sure if Bitbucket Cloud sends this event. However it's pretty critical for rebuilding pull requests if the proposed code changes.
Thanks!