Hello,
We have a Webhook configured for a repository in Bitbucket. When a PUSH is made it works perfectly (triggers the webhook) but no Commit information is sent, overthought Comment events are active (added, edited, deleted).
Testing connection works. Sending PUSH information works (Actor, Project, Repo, etc.) but there is no way to get Commit information.
We have tried with another Webhook with only Commit and it also does not work. Also disabling the first Webhook. Also enabling all of them.
Commits have been done from CLI via Git and also directly at the Bitbucket interface.
This is the result we get from the Webhook event log:
Event type | Last success | Last failure | Successful calls |
Repository commit comment added | Never succeeded | Never failed | - |
Repository refs updated | Yesterday | 2 days ago | 23/30 (76%) |
Any suggestions on what I might be doing wrong?
Many thanks in advance.
Hi @AlfonsoP,
Does your webhook contain a "changes" field as described in the documentation? A push event should contain the information around which ref changed, and what it changed from and to. It does not have information about the commits between the changes for a number of reasons, explained here. If you want the commit details you will need to call the REST API so that Bitbucket can retrieve them from Git.
Hope that helps,
Kristy
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.