Skip to content

CLI Pull Request Close

github-actions[bot] edited this page Aug 19, 2026 · 1 revision

quinjet pr close

Closes an open pull request without merging it.

Usage:

quinjet pr close <number> [--repo <owner/name>] [--refresh] [--yes] [-C <DIR>] [--json]

Arguments:

Name Type / values Default What it does
<NUMBER> unsigned integer required The pull-request number.

Options:

Name Type / values Default What it does
--repo <OWNER/NAME> string unset Chooses which discovered repository the number belongs to.
--refresh flag off Asks GitHub again for the metadata rather than using the five-minute cache.
--yes flag off Confirm. Without it the command reports what it would do and changes nothing.
-C, --path <DIR> path . The repository to run against. Global.
--json flag off Prints one JSON document on stdout instead of the sentence. Global.
-h, --help flag off Prints this verb's help on stdout and exits 0.

Without --yes the verb looks the pull request up, names #N and its title, and exits 0 having changed nothing:

$ quinjet pr close 12
Would close #12 (Fix the thing). Pass --yes to close it.

With --yes it runs gh pr close <number> --repo <url> against the same canonical repository URL every other pr verb uses. Closing an already closed or merged pull request fails with whatever gh reports.

--json shape, one object with a single key:

{
  "message": "Closed #12"
}

Examples:

quinjet pr close 12
quinjet pr close 12 --yes
quinjet pr close 12 --repo pulkitxm/quinjet --yes --json

Where to go next

CLI reference

Repository
Changes
Remotes
Branch
Stash
Pull Request
Generated
Graft
Mcp
Project
Remote
Stack
Worktree

Guides

Optimization

Git Internals
Diff
Github
Rendering

Rust practices

Studies
Patterns

Clone this wiki locally