Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to un-approve github review after new commits automatically

Once a pull request is approved, if there are further commits:

The Pull request should go to un-approved state automatically.

Can this be done?

like image 616
Anurag Avatar asked Jan 24 '17 09:01

Anurag


People also ask

How do I revoke a GitHub approval?

On the "Conversation" tab, scroll to the review you'd like to dismiss, then click . Click , then click Dismiss review. Type your reason for dismissing the review, then click Dismiss review.

How do I Unapprove changes in GitHub?

To manually unapprove a PR, you can go to the comments section where the approval is, and click "show all reviewers". Then choose Dismiss for each approved review. Unfortunately it would need to be automatic but thanks for the input!

What happens when you dismiss a review GitHub?

When someone leaves a review that requests changes, dismissing the review changes it from a review that requests changes to a review comment. This will unblock your pull request, freeing you up to merge it! You can also dismiss an approving review.


1 Answers

This isn't currently offered.

You can create an application that listens for push webhook events, queries the API for all Reviews for a Pull Request, and dismisses any that are APPROVED.

Here is a Ruby script you could host on heroku.

like image 147
osowskit Avatar answered Oct 17 '22 09:10

osowskit