From 28a37393ee62e3b53dad69d58810f72151bd58c2 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 15 Aug 2025 15:17:39 +0100 Subject: 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/() + // get as refs/pr/() and refs/pr-by-id/ get_all_proposals_state(git_repo, repo_ref).await?, ); @@ -248,11 +248,13 @@ async fn get_all_proposals_state( { if let Ok(tip) = tag_value(pr_or_pr_update, "c") { state.insert(format!("refs/{branch_name}"), tip.clone()); + state.insert(format!("refs/pr-by-id/{}", proposal.id), tip); } } else if let Ok(tip) = make_commits_for_proposal(git_repo, repo_ref, &events_to_apply) { state.insert(format!("refs/{branch_name}"), tip.clone()); + state.insert(format!("refs/pr-by-id/{}", proposal.id), tip); } } } -- cgit v1.2.3