upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/sub_commands/prs/create.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2023-11-01 00:00:00 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2023-11-01 00:00:00 +0000
commit9a00d130b05d1e8e762c1e5df12c709c5c38890c (patch)
treea2a365cfd7fb0280710be0c961aa2f4106a950ac /src/sub_commands/prs/create.rs
parent7d91161fbacbf2a488bf24754793f2897aae9199 (diff)
build(deps) update nostr nostr-sdk
fix breaking changes
Diffstat (limited to 'src/sub_commands/prs/create.rs')
-rw-r--r--src/sub_commands/prs/create.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sub_commands/prs/create.rs b/src/sub_commands/prs/create.rs
index 0249488..5986235 100644
--- a/src/sub_commands/prs/create.rs
+++ b/src/sub_commands/prs/create.rs
@@ -90,7 +90,7 @@ pub async fn launch(
90 let keys = login::launch(&cli_args.nsec, &cli_args.password, None).await?; 90 let keys = login::launch(&cli_args.nsec, &cli_args.password, None).await?;
91 91
92 let events = 92 let events =
93 generate_pr_and_patch_events(&title, &description, &to_branch, &git_repo, &ahead, keys)?; 93 generate_pr_and_patch_events(&title, &description, &to_branch, &git_repo, &ahead, &keys)?;
94 94
95 let my_write_relays: Vec<String> = vec![ 95 let my_write_relays: Vec<String> = vec![
96 "ws://localhost:8051".to_string(), 96 "ws://localhost:8051".to_string(),
@@ -318,7 +318,7 @@ fn generate_pr_and_patch_events(
318 to_branch: &str, 318 to_branch: &str,
319 git_repo: &Repo, 319 git_repo: &Repo,
320 commits: &Vec<Sha1Hash>, 320 commits: &Vec<Sha1Hash>,
321 keys: nostr::Keys, 321 keys: &nostr::Keys,
322) -> Result<Vec<nostr::Event>> { 322) -> Result<Vec<nostr::Event>> {
323 let root_commit = git_repo 323 let root_commit = git_repo
324 .get_root_commit(to_branch) 324 .get_root_commit(to_branch)
@@ -337,7 +337,7 @@ fn generate_pr_and_patch_events(
337 // TODO: people tag maintainers 337 // TODO: people tag maintainers
338 // TODO: add relay tags 338 // TODO: add relay tags
339 ) 339 )
340 .to_event(&keys) 340 .to_event(keys)
341 .context("failed to create pr event")?; 341 .context("failed to create pr event")?;
342 342
343 let pr_event_id = pr_event.id; 343 let pr_event_id = pr_event.id;
@@ -375,7 +375,7 @@ fn generate_pr_and_patch_events(
375 // TODO: add relay tags 375 // TODO: add relay tags
376 ], 376 ],
377 ) 377 )
378 .to_event(&keys)?, 378 .to_event(keys)?,
379 ); 379 );
380 } 380 }
381 Ok(events) 381 Ok(events)