Watch
0
0
Fork
You've already forked hyperhive
0

an agent gets one todo when its pr starts conflicting with the target branch

This commit is contained in:
atlas 2026-11-11 04:36:28 +01:00 • committed by mara
commit 11eb7dac9c

View file

@ -406,6 +406,9 @@ pub(super) enum DeliveryKind {
/// hook: that one is repo-scoped to the knowledge repo alone, and this
/// one is instance-wide (registered via `admin_create_hook`, not
/// `repo_create_hook`) — different scope, same event name.
///
/// A push to a branch also starts the check of the PRs that target it
/// (`crate::pr_conflicts`).
#[strum(serialize = "vcs-activity")]
VcsActivity,
/// `pull_request_review_request` events on every repo in the instance,
@ -647,6 +650,7 @@ pub(super) async fn post_webhook_forge(
tokio::spawn(crate::vcs_metrics::count_default_branch_push(
activity, forge,
));
crate::pr_conflicts::on_push(&state, &body);
} else {
tracing::warn!("webhook: vcs-activity delivery did not parse as a push payload");
}