upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/git_remote_helper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/git_remote_helper.rs')
-rw-r--r--src/git_remote_helper.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/git_remote_helper.rs b/src/git_remote_helper.rs
index a03c6cf..cb13e8c 100644
--- a/src/git_remote_helper.rs
+++ b/src/git_remote_helper.rs
@@ -715,6 +715,7 @@ async fn push(
715 events.push(new_repo_state.event); 715 events.push(new_repo_state.event);
716 716
717 for event in get_merged_status_events( 717 for event in get_merged_status_events(
718 &term,
718 repo_ref, 719 repo_ref,
719 git_repo, 720 git_repo,
720 nostr_remote_url, 721 nostr_remote_url,
@@ -1128,6 +1129,7 @@ fn generate_updated_state(
1128} 1129}
1129 1130
1130async fn get_merged_status_events( 1131async fn get_merged_status_events(
1132 term: &console::Term,
1131 repo_ref: &RepoRef, 1133 repo_ref: &RepoRef,
1132 git_repo: &Repo, 1134 git_repo: &Repo,
1133 remote_nostr_url: &str, 1135 remote_nostr_url: &str,
@@ -1171,7 +1173,14 @@ async fn get_merged_status_events(
1171 let (proposal_id, revision_id) = 1173 let (proposal_id, revision_id) =
1172 get_proposal_and_revision_root_from_patch(git_repo, commit_event) 1174 get_proposal_and_revision_root_from_patch(git_repo, commit_event)
1173 .await?; 1175 .await?;
1174 // TODO: write to terminal to tell user 1176 term.write_line(
1177 format!(
1178 "merge commit {}: create nostr proposal status event",
1179 &commit.id().to_string()[..7],
1180 )
1181 .as_str(),
1182 )?;
1183
1175 events.push( 1184 events.push(
1176 create_merge_status( 1185 create_merge_status(
1177 signer, 1186 signer,