API for reverting a pull request