How to trigger webhook only for a specific branch

Vineet Kumar October 11, 2023

Is it possible to trigger webhook only when code is pushed to a specific branch like master. Webhook should not trigger if code is pushed to other branches.

2 answers

1 accepted

0 votes
Answer accepted
Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 11, 2023

Hi @Vineet Kumar,

I'm afraid it's not possible. The webhook would need to filter the branches it is interested in.

Vineet Kumar October 11, 2023

Would be great if we have this feature, currently we are using Gitea as scm, where we have this option for filtering on branch for webhook.

 

Gitea_webhook.png 

Like # people like this
Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 11, 2023

@Vineet Kumar I see... Are you looking at migrating away from Gitea and considering Bitbucket cloud?

Vineet Kumar October 11, 2023

Yes, we are looking for same.

Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 11, 2023

@Vineet Kumar May I ask you, why from your perspective, Gitea is not good fit currently for your company? 

0 votes
Adam Holmes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 3, 2024

Hi, did you find a solution to this? Thanks, Adam

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events