github provides a "Revert" button in it's web interface, which allow us to revert a pull request that was already merged.
This always involves, to the best of my knowledge, creating a new pull request to revert the changes.
Is it possible to replicate this functionality easily using the API? Is it possible to do it without having to create a new Pull Request?
Just to clarify more, the PR is from branch A to branch B - If I undo the changes in branch B using underlying git commands, what will happen to the PR?