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

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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

31,342 views 26 12
Join discussion

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