47

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?

1201ProgramAlarm
  • 32,384
  • 7
  • 42
  • 56
Anurag
  • 956
  • 2
  • 8
  • 21

2 Answers2

59

The ability to Dismiss stale pull request approvals when new commits are pushed is a setting under Require pull request reviews before merging in the branch protection settings. This is disabled by default.

dismiss stale pull request

Joman68
  • 2,248
  • 3
  • 34
  • 36
osowskit
  • 5,904
  • 2
  • 29
  • 38
9

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.

osowskit
  • 5,904
  • 2
  • 29
  • 38