pub struct ListenCfg {
pub interval: u64,
pub sweep: u64,
pub settle: u64,
pub max_wait: u64,
pub max_rechecks: u32,
pub on_review_requested: ReviewOrIgnore,
pub on_assigned: ReviewOrIgnore,
pub on_own_pr: OwnPr,
pub verdicts: bool,
}Expand description
What spar listen watches for and what it does about it. As with LoopCfg,
every field takes its value from ListenCfg::default() when a config does
not mention it.
Fields§
§interval: u64Seconds between polls of GitHub’s notifications for the repository. GitHub says how often it will answer, and the larger of the two is used.
sweep: u64Seconds between sweeps of the open pull requests. A push raises no notification for a reviewer, so the sweep is what notices a reviewed pull request moving.
settle: u64Seconds an item has to stay quiet before spar acts on it, so a push and three replies in the same minute cost one recheck rather than four.
max_wait: u64Most seconds an item may keep settling before it is acted on anyway.
max_rechecks: u32Rechecks one pull request gets before a person has to run spar review
on it again. A cap against two bots arguing, not a target. 0 turns
automatic rechecks off.
on_review_requested: ReviewOrIgnore§on_assigned: ReviewOrIgnore§on_own_pr: OwnPr§verdicts: boolWhether a review spar listen starts submits a formal verdict, approve
or request changes, rather than a comment. A recheck always does.