How to block the "revert" action in PullRequests #30859
-
Hi, Every time my team has a pull request with a merge commit GitHub shows a "Revert" button and it scares me that someone could click that button. Is there a way to prevent revert in my repository or to block that button? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi there! The revert button is a UI helper to do a git operation that any user with write access to the repository can do - push a commit with changes and open a PR. This button does not automatically undo the pull request, it creates a new pull request that would revert the previous pull request IF approved and merged. More info here. I hope this helps assuage some of your fears 😄 . |
Beta Was this translation helpful? Give feedback.
Hi there!
The revert button is a UI helper to do a git operation that any user with write access to the repository can do - push a commit with changes and open a PR. This button does not automatically undo the pull request, it creates a new pull request that would revert the previous pull request IF approved and merged. More info here.
I hope this helps assuage some of your fears 😄 .