Skip to content

Instantly share code, notes, and snippets.

@Farhan-Haseeb
Created June 17, 2020 16:51
Show Gist options
  • Save Farhan-Haseeb/fd4cbb476de4e2931c322d7bacb75e5f to your computer and use it in GitHub Desktop.
Save Farhan-Haseeb/fd4cbb476de4e2931c322d7bacb75e5f to your computer and use it in GitHub Desktop.
How to reopen a closed PR on Github
How to reopen a pull-request from github?
Precodinitions
You need the rights to reopen pull requests on the repository.
The pull request hasn't been merged, just closed.
Go to Pull requests add filter `is:closed` choose PR you want to reopen. Select from checkbox and mark as Open.
@AsmaZgo
Copy link

AsmaZgo commented Jun 18, 2024

Very helpful.

@Kevin-free
Copy link

Thanks

@tetuaoro
Copy link

Hi, haha. I changed the visibility of my fork and my pr has closed. Thanks for the tips.

@PearGod
Copy link

PearGod commented Jan 20, 2025

If you changed the branch name or deleted the branch, the reopen pull request button will be disabled so first you need to click the restore branch button in the right section of your commit ( change branch name / delete branch commit) inside your pull request then the reopen button will be enabled

I'm having trouble finding this button. I can't see it in the Conversation tab, nor the base Commit tab, or when I click on the commit corresponding with the branch. Note that my issue is that the branch that this PR's branch is based on was deleted - would this not be covered by this approach?

Edit: I found my answer in https://stackoverflow.com/a/75471397/948622 and added a note for the specific issue I encountered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment