From f3fcf863aae000964753f574b00e9fb9f5fcd452 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 5 Mar 2026 13:03:50 +0000 Subject: feat(subject): add pr/issue set-subject via NIP-32 kind-1985 labels Adds the ability to update the displayed title of a PR or issue after creation using a kind-1985 label event with the #subject namespace. Only the author or a repository maintainer may set the subject. The latest authorised event wins with tiebreak by lexicographically larger event ID (NIP-1 replaceable event semantics). Branch names and commit messages are never affected. - Split get_labels() into process_labels() (additive #t) and process_subject() (replaceable-style #subject), with a shared get_labels_and_subject() entry point that processes both from a single pre-fetched slice of kind-1985 events - All list/view/JSON display paths apply the subject override silently - New ngit pr set-subject --subject command - New ngit issue set-subject --subject command --- skills/ngit/SKILL.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'skills/ngit') diff --git a/skills/ngit/SKILL.md b/skills/ngit/SKILL.md index c316c1e..272f9ba 100644 --- a/skills/ngit/SKILL.md +++ b/skills/ngit/SKILL.md @@ -124,6 +124,7 @@ ngit pr reopen --reason "fix was incomplete" ngit pr ready --reason "addressed review feedback" ngit pr draft --reason "needs more work" ngit pr label --label bug --label enhancement +ngit pr set-subject --subject "New title" ``` ## Issues @@ -142,6 +143,7 @@ ngit issue close --reason "wontfix" ngit issue resolved --reason "fixed in abc123" ngit issue reopen --reason "regression in v2.3" ngit issue label --label bug --label enhancement +ngit issue set-subject --subject "New title" ``` ## Account management -- cgit v1.2.3