Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-11847

Include commits/commit message in push (refs_changed) event payload



    • Suggestion
    • Status: Gathering Interest (View Workflow)
    • Resolution: Unresolved
    • None
    • Webhooks
    • None
    • 10
    • 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.


      Currently when users push to a repository, the resulting payload for any configured webhooks does not contain any information surrounding the commits that were pushed. This request is to include this commit information, to a reasonable degree, so that it can be used by the applications receiving the webhook payload. One example of how this could be implemented comes from how these events are handled for the equivalent push payloads in Bitbucket Cloud:

      commits: An array containing up to 5 of the most recent commits pushed to the reference. The array for a push with more than 5 commits is truncated, which is indicated by the truncated property.

      For reference, here is the current payload as it exists in Bitbucket Server today:


      Where this is the payload information from Bitbucket Cloud that would be nice to have implemented in Server:

              "commits": [
                  "hash": "03f4a7270240708834de475bcf21532d6134777e",
                  "type": "commit",
                  "message": "commit message\n",
                  "author": User,
                  "links": {
                    "self": {
                      "href": "https://api.bitbucket.org/2.0/repositories/user/repo/commit/03f4a7270240708834de475bcf21532d6134777e"
                    "html": {
                      "href": "https://bitbucket.org/user/repo/commits/03f4a7270240708834de475bcf21532d6134777e"


        Issue Links



              Unassigned Unassigned
              eslaughter@atlassian.com Evan Slaughter
              8 Vote for this issue
              8 Start watching this issue