Cloud Version of Bitbucket is sending webhook with payload of previous commit.
Steps to reproduce-
1. Create Webhook.
2. Edit a file and commit it with subject as commit-2.
3. A webhook notification would be completed. Validate the payload of the webhook.
The pay load should have the latest commit id and commit subject 'commit-2'.
The pay load has the old commit id and old commit subject 'commit-1'.
Same is working fine in on-prem version of bitbucket server(v7.12.0)
Hi @Demo User,
I haven't been able to reproduce this behavior, I tried testing this in one of my repos and the body of the response shows the hash of the correct commit.
I would like to ask if you could provide us with some further info, so we can troubleshoot this issue:
1. Did this issue occur with one specific commit only, or certain commits only? Or does it happen consistently with any new commits on this repo?
2. Was this webhook working ok before, and if so, when did this issue start occurring?
3. Are the triggers for this webhook 'Repository: push' only, or do you have any additional triggers?
4. Can you navigate to this repo's Repository settings > Webhooks > select the option View requests for this specific webhook > select the option Enable History.
Then, create a new commit to this repo (you can create a new test branch for this commit, which you can delete after we finish troubleshooting).
Afterwards, navigate to the previous page ("View requests" for this webhook), examine the body of the request, and check if you see the correct hash.
Please note that the response includes the hashes of the parents of this commit as well.
Is it possible that you're perhaps looking at the hash of the parent commit?
Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events