From b3b1a949463d8e18622519866ecee3f1b65cc888 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 4 Mar 2026 14:28:38 +0000 Subject: restructure CLI around ngit pr/issue subcommand groups Introduce ngit pr subcommand group (list, view, checkout, apply, send, close, reopen, ready, comment, merge) replacing the former top-level ngit list/checkout/apply commands. ngit send is kept at the top level. Expand ngit issue with view, create, close, reopen, comment subcommands. Status changes (close/reopen/ready) are gated to the PR/issue author or a repository maintainer. ngit pr merge is maintainer-only and publishes a GitStatusApplied event immediately after the git merge. --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 66a29a2..2cb140e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- `ngit pr` subcommand group: `list`, `view`, `checkout`, `apply`, `send`, `close`, `reopen`, `ready`, `comment`, `merge`; replaces the former top-level `ngit list`, `ngit checkout`, and `ngit apply` commands (hard-migrated); `ngit send` remains at the top level unchanged +- `ngit pr view ` — view a PR with its full details and comment count +- `ngit pr close ` / `ngit pr reopen ` — change PR status (author or maintainer only) +- `ngit pr ready ` — mark a draft PR as ready for review (author or maintainer only) +- `ngit pr comment --body ` — post a NIP-22 comment on a PR +- `ngit pr merge [--squash]` — merge a PR branch and publish a `GitStatusApplied` event (maintainer only); prints a reminder to push afterwards +- `ngit issue` subcommand group expanded: `list`, `view`, `create`, `close`, `reopen`, `comment` +- `ngit issue view ` — view an issue with its full details and comment count +- `ngit issue create --title [--body ] [--label ...]` — publish a NIP-34 GitIssue event +- `ngit issue close ` / `ngit issue reopen ` — change issue status (author or maintainer only) +- `ngit issue comment --body ` — post a NIP-22 comment on an issue - `ngit issue list` command: lists NIP-34 issues with their status; supports `--status` (comma-separated: open,draft,closed,applied; default: open), `--hashtag` (comma-separated label filter), `--json`, `--offline`, and an optional `` positional argument to show full details of a specific issue; hashtags are shown at the end of each row - `nostr.repo-relay-only` git config key: when set to `true`, nostr events are sent only to the repository's own relays, skipping the user's personal write relays and default/blaster relays; set persistently via `git config nostr.repo-relay-only true` or in one step with `ngit init --repo-relay-only` -- cgit v1.2.3