Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-10279

Pull request updated and synchronized webhooks

XMLWordPrintable

    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Atlassian status as of March 2020

      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!

              Unassigned Unassigned
              1757600d5c62 sj26
              Votes:
              118 Vote for this issue
              Watchers:
              95 Start watching this issue

                Created:
                Updated:
                Resolved: