Skip to content

ngit pr

work with pull requests

Parent command: ngit

Related guide: Pull requests

Upcoming command surface

This page is generated from an unreleased ngit commit. Its interface may change before the next release.

Usage

text
Usage: ngit pr [OPTIONS] <COMMAND>

Subcommands

CommandDescription
ngit pr listlist PRs and view details
ngit pr viewview a PR; use --comments to include comment thread
ngit pr checkoutcheckout a proposal branch by event-id or nevent
ngit pr applyapply proposal patches to current branch
ngit pr sendsubmit PR with advanced options (alias for ngit send)
ngit pr closeclose a PR (author or maintainer only)
ngit pr reopenreopen a closed PR (author or maintainer only)
ngit pr readymark a draft PR as ready for review (author or maintainer only)
ngit pr draftconvert a PR back to draft (author or maintainer only)
ngit pr commentadd a comment to a PR
ngit pr mergemerge a PR into the current branch (maintainer only)
ngit pr labeladd one or more labels to a PR (author or maintainer only)
ngit pr set-subjectset the subject/title of a PR (author or maintainer only)
ngit pr set-cover-noteset or update the cover note for a PR (author or maintainer only)

Arguments and options

InputDescriptionDetails
-n, --nsec <NSEC>nsec or hex private keyglobal; conflicts with --nbunksec <NBUNKSEC>, --nbunksec-file <PATH>, --nsec-file <PATH>, --signer <NPUB|ALIAS|NAME>
--nsec-file <PATH>read an nsec or hex private key from a path resolving to a regular fileglobal; conflicts with --nbunksec <NBUNKSEC>, --nbunksec-file <PATH>, -n, --nsec <NSEC>, --signer <NPUB|ALIAS|NAME>
--nbunksec <NBUNKSEC>established remote signer connection encoded as nbunksecglobal; conflicts with --nbunksec-file <PATH>, -n, --nsec <NSEC>, --nsec-file <PATH>, --signer <NPUB|ALIAS|NAME>
--nbunksec-file <PATH>read an nbunksec connection from a path resolving to a regular fileglobal; conflicts with --nbunksec <NBUNKSEC>, -n, --nsec <NSEC>, --nsec-file <PATH>, --signer <NPUB|ALIAS|NAME>
--signer <NPUB|ALIAS|NAME>use a configured signer by npub, alias, or cached profile name for this commandglobal; conflicts with --nbunksec <NBUNKSEC>, --nbunksec-file <PATH>, -n, --nsec <NSEC>, --nsec-file <PATH>
-c, --customizeshow customization options via git configglobal
-d, --defaultsUse default values without prompting (non-interactive mode)global; conflicts with -i, --interactive
-i, --interactiveEnable interactive prompts (default behavior)global; conflicts with -d, --defaults, --json
-f, --forceForce operations, bypass safety guardsglobal
-v, --verboseEnable verbose outputglobal
--repo-relay-onlyOnly publish nostr events to repository relays, not user or default relaysglobal
--repo <REMOTE|NADDR|NOSTR-URL>Target repository for repo-scoped operations. Accepts a configured nostr:// remote name, an naddr, or a nostr:// URL. Overrides nostr.repo, tracked-upstream, and remote-based auto-detection. Available at any command position: ngit --repo upstream send ngit issue --repo upstream create ngit issue create --repo upstreamglobal
--jsonOutput one machine-readable JSON document on stdoutglobal; conflicts with -i, --interactive
-h, --helpPrint help (see a summary with '-h')
-V, --versionPrint version

Details

work with pull requests

PRs are created by pushing a branch with the pr/ prefix: git push -u origin pr/my-branch or with advanced options via ngit send

Git collaboration, without the platform.