Allow to reopen pull requests after a force push #361
Description
If I close a pull request, force push to the branch, and then try to reopen it, the "Reopen pull request button" is deactivated and the on hover tooltip says "The XXX branch was force pushed or recreated".
Why does it behave like this, considering that you can force push open pull requests and it all works as expected?
This is a reasonably common use case, e.g. if I make a pull request, notice it is not good enough, close not to waste reviewer's time, then update.
Sample: preservim/vim-markdown#176
Update: GItHub replied:
We're blocking the pull request reopen if the current head isn't a descendant of the stored head sha (which is what the head was when the pull request was closed). We are not allowing the reopen in that case, because there is no good way to tell what changes have happened while a pull request was closed and the head branch has changed.
But I still don't understand what is the difference between that case and the case where the PR is open.