an agent gets one todo when its pr starts conflicting with the target branch
This commit is contained in:
parent
32155f70aa
commit
11eb7dac9c
1 changed files with 963 additions and 21 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue