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

Bitbucket WebHook Event payload should include the repository URL

    XMLWordPrintable

Details

    • 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.

    Description

      As can be seen at Event payload, currently just the repository slug is included. For example:

      { 
         "eventKey":"repo:refs_changed",
         "date":"2018-03-09T08:47:18-0500",
         "actor":{ 
            "name":"fkraemer",
            "emailAddress":"fkraemer@atlassian.com",
            "id":1,
            "displayName":"Felipe Kraemer",
            "active":true,
            "slug":"fkraemer",
            "type":"NORMAL"
         },
         "repository":{ 
            "slug":"testing",
            "id":1,
            "name":"Testing",
            "scmId":"git",
            "state":"AVAILABLE",
            "statusMessage":"Available",
            "forkable":true,
            "project":{ 
               "key":"TST",
               "id":1,
               "name":"Testing Project",
               "description":"This project is created for testing",
               "public":false,
               "type":"NORMAL"
            },
            "public":false
         },
         "changes":[ 
            { 
               "ref":{ 
                  "id":"refs/heads/feature/Feature_PR",
                  "displayId":"feature/Feature_PR",
                  "type":"BRANCH"
               },
               "refId":"refs/heads/feature/Feature_PR",
               "fromHash":"e3ad5d4be86451c108562c5433cb49052adedd56",
               "toHash":"931e392f307dc1dbc110dd6dc974fba6381ac30b",
               "type":"UPDATE"
            }
         ]
      }
      

      Suggestion

      The payload should include the full repository URL (not just the repository name), i.e., "https://localhost:7990/scm/TST/testing.git" instead of just "testing".

      For instance, the Bitbucket Cloud Event Payloads - Repository (expanding the "Repository Property" section) includes repository full URL.

      Attachments

        Activity

          People

            bturner Bryan Turner (Inactive)
            fkraemer Felipe Kraemer
            Votes:
            11 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: