(For reference, here is a command line git
solution
That works if you have write access to the repo and the pull request author enables Allow edits by maintainers. (Enabled by default)
The checkbox could also be checked or unchecked after creating the pull request.