Skip to content

Commit 07a6e65

Browse files
author
Alex
committed
fix(orchestrator): post adf/build commit status from handle_push dispatch
The build-runner spawned by handle_push had commit_status_post: None, so no terminal status (success/failure) was ever posted to Gitea. This meant branch protection context 'adf/build' never turned green and PRs could never auto-merge. Now sets commit_status_post to Some((after_sha, "adf/build")) and posts a pending status at spawn time, matching the behaviour of dispatch_build_runner_for_pr which already did this correctly.
1 parent e7aac2e commit 07a6e65

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

  • crates/terraphim_orchestrator/src

crates/terraphim_orchestrator/src/lib.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2753,10 +2753,19 @@ impl AgentOrchestrator {
27532753
mention_depth: None,
27542754
mention_parent_agent: None,
27552755
concurrency_permit: None,
2756-
commit_status_post: None,
2756+
commit_status_post: Some((after_sha.clone(), "adf/build".to_string())),
27572757
},
27582758
);
27592759

2760+
self.post_pending_status(
2761+
&after_sha,
2762+
0,
2763+
&project,
2764+
"adf/build",
2765+
"build-runner dispatched",
2766+
)
2767+
.await;
2768+
27602769
info!(
27612770
agent = %def.name,
27622771
project = %project,

0 commit comments

Comments
 (0)