Files
n34/docs/patch/apply.md
Awiteb 4360aa192c feat: support pull requests
Support for pull requests, it's not standard in NIPs yet[1] but there must be
two clients that support it to be included in NIPs, n34 is one of them.

This support:
- Create a new PR `n34 pr new`
- Update PR tip `n34 pr update`
- View a PR `n34 pr view`
- List PRs `n34 pr list`
- Add `PR` and `PR-update` kinds as roots in `NostrClient::find_root`
- Support issuing statuses for PRs
- Support GRASP PR and PR-update
- Update the docs

[1] https://github.com/nostr-protocol/nips/pull/1966
2025-09-12 06:43:23 +00:00

1.1 KiB

Apply an Open Patch

n34 patch apply command

Usage:

Set an open patch status to applied

Usage: n34 patch apply [OPTIONS] <PATCH_ID> [APPLIED_COMMITS]...

Arguments:
  <PATCH_ID>            The open patch id to apply it. Must be orignal root patch or revision root
  <APPLIED_COMMITS>...  The applied commits

Options:
      --repo <NADDR-NIP05-OR-SET>  Repository addresses
      --patches <PATCH-EVENT-ID>   Patches that have been applied. Use this when only some patches have been applied, not all

Creates a kind 1631 event (Applied/Merged status) for the specified patch. The patch must be in open status.

You can specify either an original patch or revision patch ID, but the status event will only reference the original patch. Revision patches will be mentioned in the event.

The APPLIED_COMMITS field serves to inform clients about the status of specific commits, whether they have been applied or not. If you need to retrieve the list of commits from a specific point (such as the tip of the master branch) up to the HEAD, you can use the following Git command: git log --pretty=%H 'origin/master..HEAD'.