From 4dc0ed66a0bd3b4b00804bb13adf93b207bb5fc4 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 7 Jan 2026 23:27:55 +0000 Subject: fix: refs/nostr/ gets removed after 30m if no event arrives we forgot to add the placeholder entry --- src/git/authorization.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/git/authorization.rs b/src/git/authorization.rs index e7ea99b..fbddb98 100644 --- a/src/git/authorization.rs +++ b/src/git/authorization.rs @@ -134,8 +134,13 @@ pub async fn authorize_push( e ))); } + + // Create placeholder for git-data-first scenario + // This allows cleanup if the PR event never arrives + purgatory.add_pr_placeholder(event_id_hex.to_string(), new_oid.clone()); + debug!( - "No purgatory entry for {} - validated against database", + "Created placeholder for {} - awaiting PR event (will expire in 30min if event doesn't arrive)", event_id_hex ); } -- cgit v1.2.3