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
|
|
@ -24,6 +24,12 @@ pub const MAX_AGE: Duration = Duration::from_hours(7 * 24);
|
|||
/// The router's durable consumer on [`STREAM`].
|
||||
pub const ROUTER_CONSUMER: &str = "notify-router";
|
||||
|
||||
/// The event type swarm-controller publishes, on [`subject`], for a pull request
|
||||
/// it has checked against its target branch after a push there. Forgejo sends
|
||||
/// no such delivery. The body is a `pull_request` delivery whose `action` is
|
||||
/// `conflicting` or `mergeable`.
|
||||
pub const MERGEABILITY_EVENT: &str = "pull_request_mergeability";
|
||||
|
||||
/// The subject a delivery of Forgejo event type `event_type` is kept under.
|
||||
#[must_use]
|
||||
pub fn subject(event_type: &str) -> String {
|
||||
|
|
|
|||
Loading…
Reference in a new issue