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/whoami.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/whoami.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/whoami.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bin/ngit/sub_commands/whoami.rs b/src/bin/ngit/sub_commands/whoami.rs index be79c79..19ce573 100644 --- a/src/bin/ngit/sub_commands/whoami.rs +++ b/src/bin/ngit/sub_commands/whoami.rs | |||
| @@ -154,7 +154,14 @@ async fn load_user_for_scope( | |||
| 154 | ) -> Option<(String, String, Option<String>)> { | 154 | ) -> Option<(String, String, Option<String>)> { |
| 155 | // First verify signer info exists for this scope without building a full | 155 | // First verify signer info exists for this scope without building a full |
| 156 | // signer — avoids triggering password prompts for ncryptsec. | 156 | // signer — avoids triggering password prompts for ncryptsec. |
| 157 | if get_signer_info(&git_repo, &signer_info.cloned(), &None, &Some(source.clone())).is_err() { | 157 | if get_signer_info( |
| 158 | &git_repo, | ||
| 159 | &signer_info.cloned(), | ||
| 160 | &None, | ||
| 161 | &Some(source.clone()), | ||
| 162 | ) | ||
| 163 | .is_err() | ||
| 164 | { | ||
| 158 | return None; | 165 | return None; |
| 159 | } | 166 | } |
| 160 | 167 | ||