The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

run logic before I can upstream commit to bitbucket. commit push should fail on logic failure.

Pramod Bisht
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!
August 2, 2023

run logic before I can upstream commit to bitbucket. commit push should fail on logic failure. Maybe some kind of hook, which triggers logic?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Mateus T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 4, 2023

Hi @Pramod Bisht

Looks like the best way to achieve this would be to create a pre-push hook to run this logic and refuse the push if it fails.

For now, Bitbucket does not provide an option to manage server-side hooks, this is currently under consideration for the following Feature Request:

With this in mind, you would need to perform this action on client-side hooks. We have an article explaining how you can achieve this:

Cheers,

Mat

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events