Forums

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

Commit Check

Yasin Amadmia
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 8, 2019

Hi,

Simple question, we have a file within our BitBucket Repo called 'VERSION' which is always incremented 'per release'. I want to safeguard commits against accidentally  'decrementing' that file. 

Is there a way to achieve this easily or i am looking into 'Pre Commit Hook' here ?

 

Thanks.

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 26, 2019

Hi Yasin, welcome to the Community!

Seems like you'd be able to achieve that by using hooks. If you're using Bitbucket Server, you can find the documentation at Using repository hooks. If you're in Cloud, this feature is still not available, but you can vote for it in our issue portal

Hope that helps!

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events