diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-03-05 14:19:49 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-03-05 14:23:07 +0000 |
| commit | 37244449d6d0d58bb639f181bd15092de1acaaee (patch) | |
| tree | 7de03867a1a9578e32fdbdbb2be63e863cea57a4 /src/bin/ngit/sub_commands/pr_status.rs | |
| parent | 609f3c3db02d437222e2c8e171189179d06c3e9c (diff) | |
feat(cover-note): add kind-1624 cover notes for PRs, patches, and issues
Implements experimental kind-1624 cover note events:
- KIND_COVER_NOTE constant and process_cover_note() in git_events.rs;
replaceable semantics (latest created_at, hex-id tiebreak), author or
maintainer only
- kind-1624 events fetched alongside labels in the fetch pipeline;
cover_notes count added to FetchReport display
- ngit pr/issue view: cover note displayed in place of description with
a clear 'Cover Note:' header; maintainer-authored notes identify the
author; original description shown only with --comments; cover_note
object included in --json output
- ngit pr set-cover-note / ngit issue set-cover-note: publish a
kind-1624 event; nostr: mentions in --body converted to q/p tags via
tags_from_content (same rules as issue --body)
- Fix pre-existing clippy::too_many_lines on repo/mod.rs show_info
Diffstat (limited to 'src/bin/ngit/sub_commands/pr_status.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/pr_status.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bin/ngit/sub_commands/pr_status.rs b/src/bin/ngit/sub_commands/pr_status.rs index 4a51bb3..f3ac627 100644 --- a/src/bin/ngit/sub_commands/pr_status.rs +++ b/src/bin/ngit/sub_commands/pr_status.rs | |||
| @@ -206,5 +206,12 @@ pub async fn launch_ready(id: &str, offline: bool, reason: Option<&str>) -> Resu | |||
| 206 | } | 206 | } |
| 207 | 207 | ||
| 208 | pub async fn launch_draft(id: &str, offline: bool, reason: Option<&str>) -> Result<()> { | 208 | pub async fn launch_draft(id: &str, offline: bool, reason: Option<&str>) -> Result<()> { |
| 209 | launch_status(id, offline, Kind::GitStatusDraft, "converted to draft", reason).await | 209 | launch_status( |
| 210 | id, | ||
| 211 | offline, | ||
| 212 | Kind::GitStatusDraft, | ||
| 213 | "converted to draft", | ||
| 214 | reason, | ||
| 215 | ) | ||
| 216 | .await | ||
| 210 | } | 217 | } |