upleb.uk

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

summaryrefslogtreecommitdiff
path: root/tests/git_remote_nostr/list.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-08-15 15:14:39 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2025-08-15 15:36:05 +0100
commitb7f48324a02093d0214b6788e8d7005569a08145 (patch)
tree119851dc1d1a84b01e75a7dd8269ac6ac3f15b39 /tests/git_remote_nostr/list.rs
parentb404cfa7b622297b30ec509dde2aa4b14a4beac3 (diff)
feat(remote): list all proposals as `refs/pr/*`
here we can list Pull Requests whose data aren't on the repo relays without causing `git clone nostr://` to fail. we can also list proposals of all statuses so that can review closed proposals.
Diffstat (limited to 'tests/git_remote_nostr/list.rs')
-rw-r--r--tests/git_remote_nostr/list.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/git_remote_nostr/list.rs b/tests/git_remote_nostr/list.rs
index c201054..a2dfe8c 100644
--- a/tests/git_remote_nostr/list.rs
+++ b/tests/git_remote_nostr/list.rs
@@ -323,11 +323,10 @@ mod with_state_announcement {
323 FEATURE_BRANCH_NAME_2, 323 FEATURE_BRANCH_NAME_2,
324 FEATURE_BRANCH_NAME_3, 324 FEATURE_BRANCH_NAME_3,
325 ] { 325 ] {
326 pr_refs.push(format!( 326 let tip = proposal_creation_repo.get_tip_of_local_branch(name)?;
327 "{} refs/heads/{}", 327 let branch_name = get_proposal_branch_name_from_events(&r55.events, name)?;
328 proposal_creation_repo.get_tip_of_local_branch(name)?, 328 pr_refs.push(format!("{tip} refs/heads/{branch_name}"));
329 get_proposal_branch_name_from_events(&r55.events, name)?, 329 pr_refs.push(format!("{tip} refs/{branch_name}"));
330 ));
331 } 330 }
332 331
333 assert_eq!( 332 assert_eq!(