diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-08-01 15:55:01 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-08-01 15:55:01 +0100 |
| commit | 056c400c5eb6cd8b105f38eea43922f71b0204dc (patch) | |
| tree | a0af17993e72584dee6a2cf4e4781f90736902d2 | |
| parent | a23efd79edb59be0e9c84f1fbeea45664dd63515 (diff) | |
fix: use new gitworkshop.dev url format
where just the nevent will do
| -rw-r--r-- | src/bin/ngit/sub_commands/send.rs | 3 | ||||
| -rw-r--r-- | src/lib/repo_ref.rs | 2 | ||||
| -rw-r--r-- | tests/ngit_list.rs | 2 | ||||
| -rw-r--r-- | 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 | |||
| 225 | println!( | 225 | println!( |
| 226 | "{}", | 226 | "{}", |
| 227 | dim.apply_to(format!( | 227 | dim.apply_to(format!( |
| 228 | "view in gitworkshop.dev: https://gitworkshop.dev/repo/{}/proposal/{}", | 228 | "view in gitworkshop.dev: https://gitworkshop.dev/{}", |
| 229 | repo_ref.coordinate_with_hint().to_bech32()?, | ||
| 230 | &event_bech32, | 229 | &event_bech32, |
| 231 | )) | 230 | )) |
| 232 | ); | 231 | ); |
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( | |||
| 448 | println!( | 448 | println!( |
| 449 | "{}", | 449 | "{}", |
| 450 | dim.apply_to( | 450 | dim.apply_to( |
| 451 | "hint: https://gitworkshop.dev/repos lists repositories and their nostr address" | 451 | "hint: https://gitworkshop.dev/search lists repositories and their nostr address" |
| 452 | ), | 452 | ), |
| 453 | ); | 453 | ); |
| 454 | let git_repo_path = git_repo.get_path()?; | 454 | 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 { | |||
| 79 | test_repo.populate()?; | 79 | test_repo.populate()?; |
| 80 | let mut p = CliTester::new_from_dir(&test_repo.dir, ["list"]); | 80 | let mut p = CliTester::new_from_dir(&test_repo.dir, ["list"]); |
| 81 | p.expect( | 81 | p.expect( |
| 82 | "hint: https://gitworkshop.dev/repos lists repositories and their nostr address\r\n", | 82 | "hint: https://gitworkshop.dev/search lists repositories and their nostr address\r\n", |
| 83 | )?; | 83 | )?; |
| 84 | if invalid_input { | 84 | if invalid_input { |
| 85 | let mut input = p.expect_input("nostr repository")?; | 85 | 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<() | |||
| 158 | } | 158 | } |
| 159 | 159 | ||
| 160 | fn expect_msgs_after(p: &mut CliTester) -> Result<()> { | 160 | fn expect_msgs_after(p: &mut CliTester) -> Result<()> { |
| 161 | p.expect_after_whitespace("view in gitworkshop.dev: https://gitworkshop.dev/repo")?; | 161 | p.expect_after_whitespace("view in gitworkshop.dev: https://gitworkshop.dev/")?; |
| 162 | p.expect_eventually("\r\n")?; | 162 | p.expect_eventually("\r\n")?; |
| 163 | p.expect("view in another client: https://njump.me/")?; | 163 | p.expect("view in another client: https://njump.me/")?; |
| 164 | p.expect_eventually("\r\n")?; | 164 | p.expect_eventually("\r\n")?; |