From b7f48324a02093d0214b6788e8d7005569a08145 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 15 Aug 2025 15:14:39 +0100 Subject: 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. --- tests/git_remote_nostr/list.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tests/git_remote_nostr') 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 { FEATURE_BRANCH_NAME_2, FEATURE_BRANCH_NAME_3, ] { - pr_refs.push(format!( - "{} refs/heads/{}", - proposal_creation_repo.get_tip_of_local_branch(name)?, - get_proposal_branch_name_from_events(&r55.events, name)?, - )); + let tip = proposal_creation_repo.get_tip_of_local_branch(name)?; + let branch_name = get_proposal_branch_name_from_events(&r55.events, name)?; + pr_refs.push(format!("{tip} refs/heads/{branch_name}")); + pr_refs.push(format!("{tip} refs/{branch_name}")); } assert_eq!( -- cgit v1.2.3