Migrate 'hookscripts' Pull Request POST to webhooks

I have about 75 Pull Requst POST's in place to update my servers as people working successfully merge pull requests..


This is being deprecated and now we have to move towards webhooks. The problem i foresee is that (within a single repo) I have different Hook-scripts setup for different branches, updating different servers, this doesn't seem to be possible now.


I tried to get one of them working using the same URL i previously used for my pull-request POST and i receiving '10000msTIMEOUT


Can anyone shed some light on this? 



2 answers

1 accepted

1 vote
Answer accepted

Hi Chris,

You are correct the current implementation of webhooks supports configuring receivers per-repository but not per-branch. We are discussing how we might implement such a feature, and I'll give you more details once I have them. We won't remove pull-request POST without having a solution for you with the new webhooks.

As for the timeout. I believe that the fact that the new webhook payload is similar but not exactly the same as the pull-request POST payload is causing your receiving service to hang. Do the logs of your receiver give any hints as to what is going on?

I apologize that your initial experience with the new webhooks was bumpy.

Kind Regards,

Brian Edwards


Hey @Brian Edwards, do you have a timeline on when this functionality will be introduced to the new webhooks?


thanks in advance

@Brian Edwards ?

Hi Chris, I apologize for taking so long to get back to you. Unfortunately, this functionality is not going to be added to the new webhooks any time soon. You can work around this by parsing the JSON payload and dispatching to a handler for the branch found in the payload. Let me know if this is a workable solution for you. Kind Regards, Brian Edwards

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

274 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you