This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2020-05-23. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Article version: Enterprise Server 2.17

Closing a pull request

You may choose to close a pull request without merging it into the upstream branch. This can be handy if the changes proposed in the branch are no longer needed, or if another solution has been proposed in another branch.

Tip: If you opened a pull request with the wrong base branch, rather than closing it out and opening a new one, you can instead change the base branch. For more information, see "Changing the base branch of a pull request."

  1. Under your repository name, click Pull requests.
    Issues and pull requests tab selection
  2. In the "Pull Requests" list, click the pull request you'd like to close.
  3. At the bottom of the pull request, below the comment box, click Close pull request.
    The close Pull Request button
  4. Optionally, delete the branch. This keeps the list of branches in your repository tidy.

Ask a human

Can't find what you're looking for?

Contact us