diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-03-05 11:33:10 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-03-05 11:41:09 +0000 |
| commit | 3ac5395b47c709c00f0072668dfdceb04f2d4974 (patch) | |
| tree | 79508c5dbdf92590c667fcc407a464f1e0118e92 /src/bin/ngit/sub_commands/mod.rs | |
| parent | 0e493c455a0345c206dd1c5b0dfb5322b8a4e3e9 (diff) | |
feat(label): add `ngit issue label` and `ngit pr label` commands
Publishes a NIP-32 kind-1985 label event referencing the target issue or
PR. Only the event author or a repository maintainer may apply labels.
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.
CLI:
ngit issue label <id> --label <L> [--label <L>...]
ngit pr label <id> --label <L> [--label <L>...]
Diffstat (limited to 'src/bin/ngit/sub_commands/mod.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/ngit/sub_commands/mod.rs b/src/bin/ngit/sub_commands/mod.rs index c4d0821..7a3c2b5 100644 --- a/src/bin/ngit/sub_commands/mod.rs +++ b/src/bin/ngit/sub_commands/mod.rs | |||
| @@ -7,6 +7,7 @@ pub mod init; | |||
| 7 | pub mod issue_create; | 7 | pub mod issue_create; |
| 8 | pub mod issue_list; | 8 | pub mod issue_list; |
| 9 | pub mod issue_status; | 9 | pub mod issue_status; |
| 10 | pub mod label; | ||
| 10 | pub mod list; | 11 | pub mod list; |
| 11 | pub mod login; | 12 | pub mod login; |
| 12 | pub mod logout; | 13 | pub mod logout; |