From 056c400c5eb6cd8b105f38eea43922f71b0204dc Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 1 Aug 2025 15:55:01 +0100 Subject: fix: use new gitworkshop.dev url format where just the nevent will do --- src/bin/ngit/sub_commands/send.rs | 3 +-- src/lib/repo_ref.rs | 2 +- tests/ngit_list.rs | 2 +- tests/ngit_send.rs | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/bin/ngit/sub_commands/send.rs b/src/bin/ngit/sub_commands/send.rs index 34965a1..9f1857f 100644 --- a/src/bin/ngit/sub_commands/send.rs +++ b/src/bin/ngit/sub_commands/send.rs @@ -225,8 +225,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs, no_fetch: bool) -> Re println!( "{}", dim.apply_to(format!( - "view in gitworkshop.dev: https://gitworkshop.dev/repo/{}/proposal/{}", - repo_ref.coordinate_with_hint().to_bech32()?, + "view in gitworkshop.dev: https://gitworkshop.dev/{}", &event_bech32, )) ); diff --git a/src/lib/repo_ref.rs b/src/lib/repo_ref.rs index bca4a3b..a3e1317 100644 --- a/src/lib/repo_ref.rs +++ b/src/lib/repo_ref.rs @@ -448,7 +448,7 @@ async fn get_repo_coordinate_from_user_prompt( println!( "{}", dim.apply_to( - "hint: https://gitworkshop.dev/repos lists repositories and their nostr address" + "hint: https://gitworkshop.dev/search lists repositories and their nostr address" ), ); let git_repo_path = git_repo.get_path()?; diff --git a/tests/ngit_list.rs b/tests/ngit_list.rs index 0547ad4..39385d6 100644 --- a/tests/ngit_list.rs +++ b/tests/ngit_list.rs @@ -79,7 +79,7 @@ mod cannot_find_repo_event { test_repo.populate()?; let mut p = CliTester::new_from_dir(&test_repo.dir, ["list"]); p.expect( - "hint: https://gitworkshop.dev/repos lists repositories and their nostr address\r\n", + "hint: https://gitworkshop.dev/search lists repositories and their nostr address\r\n", )?; if invalid_input { let mut input = p.expect_input("nostr repository")?; diff --git a/tests/ngit_send.rs b/tests/ngit_send.rs index 9a46469..ec72667 100644 --- a/tests/ngit_send.rs +++ b/tests/ngit_send.rs @@ -158,7 +158,7 @@ fn expect_msgs_first(p: &mut CliTester, include_cover_letter: bool) -> Result<() } fn expect_msgs_after(p: &mut CliTester) -> Result<()> { - p.expect_after_whitespace("view in gitworkshop.dev: https://gitworkshop.dev/repo")?; + p.expect_after_whitespace("view in gitworkshop.dev: https://gitworkshop.dev/")?; p.expect_eventually("\r\n")?; p.expect("view in another client: https://njump.me/")?; p.expect_eventually("\r\n")?; -- cgit v1.2.3