From b0ad2fd720d0cd335c07f22767844f571e3306ff Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 5 Mar 2026 12:02:09 +0000 Subject: feat(status): add pr draft, issue resolved, and --reason for issue close MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add `ngit pr draft ` to convert a PR back to draft (kind-1632). Add `ngit issue resolved [--reason ]` to mark an issue as fixed (kind-1631 GitStatusApplied), distinct from close which signals wontfix/duplicate/invalid. Add `--reason ` to `ngit issue close` — stored in event content. Also fix success/error message wording in pr_status and issue_status to use consistent past-tense action strings. --- CHANGELOG.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e9c1ca..b2d5617 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,18 +13,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `ngit issue label --label [--label ...]` — apply one or more NIP-32 hashtag labels to an existing issue (author or maintainer only); publishes a kind-1985 event; duplicate labels already present via `t` tags or prior kind-1985 events are silently skipped; the new event is saved to the local cache before broadcasting so subsequent reads reflect the change immediately - `ngit pr label --label [--label ...]` — apply one or more NIP-32 hashtag labels to an existing PR (author or maintainer only); publishes a kind-1985 event; duplicate labels already present via `t` tags or prior kind-1985 events are silently skipped; the new event is saved to the local cache before broadcasting so subsequent reads reflect the change immediately - `ngit account whoami` — show the currently logged-in account(s) -- `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` subcommand group: `list`, `view`, `checkout`, `apply`, `send`, `close`, `reopen`, `ready`, `draft`, `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 all comments (author, timestamp, body) in chronological order - `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 draft ` — convert a PR back to draft (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` subcommand group: `list`, `view`, `create`, `close`, `resolved`, `reopen`, `comment`, `label` - `ngit issue view ` — view an issue with its full details and all comments (author, timestamp, body) in chronological order - `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 close [--reason ]` — close an issue without resolving it; reason is stored in the event content (author or maintainer only) +- `ngit issue resolved [--reason ]` — mark an issue as resolved (kind-1631 `GitStatusApplied`); distinct from close, use when the issue has been fixed; reason stored in event content (author or maintainer only) +- `ngit issue reopen ` — reopen a closed or resolved issue (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 +- `ngit issue list` command: lists NIP-34 issues with their status; supports `--status` (comma-separated: open,draft,closed,applied; default: open), `--label` filter, `--json`, `--offline`, and an optional `` positional argument to show full details of a specific issue - `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` ## [2.2.3] - 2026-02-27 -- cgit v1.2.3