upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/lib/git_events.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/git_events.rs')
-rw-r--r--src/lib/git_events.rs16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/lib/git_events.rs b/src/lib/git_events.rs
index 3ce7637..69406c1 100644
--- a/src/lib/git_events.rs
+++ b/src/lib/git_events.rs
@@ -134,14 +134,15 @@ pub async fn generate_patch_event(
134 // code that makes it into the main branch, assuming 134 // code that makes it into the main branch, assuming
135 // the commit id is correct 135 // the commit id is correct
136 Tag::from_standardized(TagStandard::Reference(commit.to_string())), 136 Tag::from_standardized(TagStandard::Reference(commit.to_string())),
137 Tag::custom(TagKind::Custom(std::borrow::Cow::Borrowed("alt")), vec![ 137 Tag::custom(
138 format!( 138 TagKind::Custom(std::borrow::Cow::Borrowed("alt")),
139 vec![format!(
139 "git patch: {}", 140 "git patch: {}",
140 git_repo 141 git_repo
141 .get_commit_message_summary(commit) 142 .get_commit_message_summary(commit)
142 .unwrap_or_default() 143 .unwrap_or_default()
143 ), 144 )],
144 ]), 145 ),
145 ], 146 ],
146 if let Some(thread_event_id) = thread_event_id { 147 if let Some(thread_event_id) = thread_event_id {
147 vec![Tag::from_standardized(nostr_sdk::TagStandard::Event { 148 vec![Tag::from_standardized(nostr_sdk::TagStandard::Event {
@@ -205,9 +206,10 @@ pub async fn generate_patch_event(
205 .collect(), 206 .collect(),
206 vec![ 207 vec![
207 // a fallback is now in place to extract this from the patch 208 // a fallback is now in place to extract this from the patch
208 Tag::custom(TagKind::Custom(std::borrow::Cow::Borrowed("commit")), vec![ 209 Tag::custom(
209 commit.to_string(), 210 TagKind::Custom(std::borrow::Cow::Borrowed("commit")),
210 ]), 211 vec![commit.to_string()],
212 ),
211 // this is required as patches cannot be relied upon to include the 'base 213 // this is required as patches cannot be relied upon to include the 'base
212 // commit' 214 // commit'
213 Tag::custom( 215 Tag::custom(