Learn how to cancel a GitHub pull request with ease—follow step-by-step instructions for using the web interface or GitHub CLI to close and verify your PR.
Book a call with an Expert
Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.
Step 1: Prepare your environment
Step 2: Access the Pull requests tab
Step 3: Locate the pull request you want to cancel (close)
Step 4: Close the pull request via the web interface
Step 5: Cancel a pull request using GitHub CLI
gh
) first:# macOS (Homebrew)
brew install gh
# Windows (Scoop)
scoop install gh
# Debian/Ubuntu
sudo apt update
sudo apt install gh
gh auth login
gh pr list --repo owner/repo
# By pull request number
gh pr close 123
# Or by full URL
gh pr close https://github.com/owner/repo/pull/123
Step 6: Verify that the pull request is closed
When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.