Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-10415

POST hook branch creation/deletion payload (BB-11348)

    XMLWordPrintable

Details

    Description

      When i create a new branch, the payload i get is :

      {"repository":

      {"website": "", "fork": false, "name": "mobi-puppet", "scm": "git", "owner": "mobitv", "absolute_url": "/mobitv/mobi-puppet/", "slug": "mobi-puppet", "is_private": true}

      , "truncated": false, "commits": [], "canon_url": "https://bitbucket.org", "user": "hkadiri"}

      When i delete a remote branch, the payload i get is:
      {"repository":

      {"website": "", "fork": false, "name": "mobi-puppet", "scm": "git", "owner": "mobitv", "absolute_url": "/mobitv/mobi-puppet/", "slug": "mobi-puppet", "is_private": true}

      , "truncated": false, "commits": [], "canon_url": "https://bitbucket.org", "user": "hkadiri"}

      As you can see there's no meaning full information to tell if a branch got created or deleted.

      Could the payload be updated to provide more meaningful information. Something like the webhooks for github (https://developer.github.com/webhooks/)

      Attachments

        Activity

          People

            Unassigned Unassigned
            legacy-bitbucket-user Legacy Bitbucket Cloud User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: