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

Webhooks with Pull Request trigger contains short hash instead of the full hash

    XMLWordPrintable

Details

    Description

      With webhooks configured with Pull Request trigger (merged), the payload sent in the webhook request contains the commit hash in short. It does not contain the full commit hash.

      When using codebuild to trigger a build, codebuild is expecting a full commit hash but the pull request webhook event is sending the short commit hash instead. This results in failure in codebuild .

      Could webhooks send the payload with full commit hash for pull request events as well?

      Sample as below.

      X-Event-Key pullrequest:fulfilled

       "title": "test_PR_WEBHOOK",
          "close_source_branch": false,
          "reviewers": [],
          "id": 34,
          "destination": {
            "commit": {
              "hash": "6fdb0a3bb132",
              "links": {
                "self": {
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            pmahendran+atlassian_conflict Pravin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: