diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-08-15 15:17:39 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-08-15 15:53:59 +0100 |
| commit | 28a37393ee62e3b53dad69d58810f72151bd58c2 (patch) | |
| tree | 834224a4b2c3965878a03fd7ffc5fcccc223918e /tests/git_remote_nostr/list.rs | |
| parent | b7f48324a02093d0214b6788e8d7005569a08145 (diff) | |
feat(remote): list proposals as `refs/pr-by-id/*`
This branch name cannot be attacked by brute forcing a
shorthand event id like refs/pr/<branch-name(<shorthand-event-id)
can.
Diffstat (limited to 'tests/git_remote_nostr/list.rs')
| -rw-r--r-- | tests/git_remote_nostr/list.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/git_remote_nostr/list.rs b/tests/git_remote_nostr/list.rs index a2dfe8c..50ea350 100644 --- a/tests/git_remote_nostr/list.rs +++ b/tests/git_remote_nostr/list.rs | |||
| @@ -327,6 +327,8 @@ mod with_state_announcement { | |||
| 327 | let branch_name = get_proposal_branch_name_from_events(&r55.events, name)?; | 327 | let branch_name = get_proposal_branch_name_from_events(&r55.events, name)?; |
| 328 | pr_refs.push(format!("{tip} refs/heads/{branch_name}")); | 328 | pr_refs.push(format!("{tip} refs/heads/{branch_name}")); |
| 329 | pr_refs.push(format!("{tip} refs/{branch_name}")); | 329 | pr_refs.push(format!("{tip} refs/{branch_name}")); |
| 330 | let proposal_id = get_proposal_id_from_branch_name(&r55.events, name)?; | ||
| 331 | pr_refs.push(format!("{tip} refs/pr-by-id/{proposal_id}")); | ||
| 330 | } | 332 | } |
| 331 | 333 | ||
| 332 | assert_eq!( | 334 | assert_eq!( |