Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there a way to remove approval if new commit arrives to a pull request?

When I approve a pull request, it stays approved even if there are new commits are added to it before being merged. This means potentially unreviewed code could be merged, since  for another administrator it is not clear that the new commit arrived after approval.

Is there a way to automatically revoke Approvals from a pull request if a new commit is added to it afterward?

3 answers

1 accepted

4 votes
Answer accepted

For Bitbucket Cloud:  it's a premium feature (paid accounts only).  Add a "Branch Permission" and then click on "Merge Checks" within the newly added Branch Permission and select this option:  "[x] Reset approvals when the source branch is modified."

For Bitbucket Server:  install the free plugin: Auto Unapprove for Bitbucket Server.

0 votes
alevinson Atlassian Team Aug 17, 2018

Hello Adam,

 

Welcome to the Atlassian Community!

 

It would seem you need a Premium Plan to do this as it mentions in this document here. With the Premium plan you gain access to "Reset approvals when the source branch is modified."

That is for Cloud, if you are using Bitbucket Server the Auto Unapprove for Bitbucket Server is what you are looking for. 

 

Regards,
Aaron Levinson
Dev Tools Support Engineer

Use github instead - they have this feature as standard.

That's good to know, but since we can't switch to github, this is not a solution - especially since the original question was about Bitbucket.

(If you have a question about your car, you wouldn't like to hear an answer saying "buy a different car", would you?)

Like Terje Nesthus likes this

Agreed... but then most cars share the same basic functional features... 4 wheels, steering wheel, hand brake, etc.

If you'd asked "I have a car with 5 gears but want to use 6th gear" I might have answered that you need to buy a different car.

IMO this is a basic feature that should be standard in any PR process. Github, Gitlab, etc. all do it but Atlassian have chosen to lock it away behind a paywall... thus my answer is to move to a provider that has it available.

Since you're obviously on a free account, or this wouldn't be an issue, moving to another provider would seem a sensible option and migrating a git repo to another provider and retaining history is relatively easy.

Like Neil Miller likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

327 views 2 10
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you