pub struct CouplingConfig {
pub bypass_prefixes: Vec<String>,
pub waiver_keyword: String,
pub auto_waive_dependency_only: bool,
}Expand description
[coupling]: the PR-time gate’s exemptions and waiver keyword.
Fields§
§bypass_prefixes: Vec<String>Additional paths exempt from the gate, on top of the always-applied
hardcoded floor (spec_spine_core::DEFAULT_BYPASS_PREFIXES). Match rules:
trailing / ⇒ dir prefix; leading **/ ⇒ tail-suffix anywhere; else
exact file. This list is additive: it adds to the floor and can never
remove a floor entry. The default is empty: the floor is the single
built-in source, so an adopter declares only their own additions rather
than restating (and seeming able to override) the floor.
waiver_keyword: StringThe PR-body waiver keyword; the free-text reason follows the colon.
auto_waive_dependency_only: boolOpt-in mechanical auto-waiver for dependency-only diffs (spec 005
§3.5). When true and no PR-body waiver is present, the CLI compares
the parsed base/head JSON of every non-bypassed changed path: if all
are package.json manifests whose only differences are version
strings inside the standard dependency tables (same package keys),
the gate self-waives: the path dependabot-class PRs cannot take
(they can edit neither specs nor PR bodies). Anything beyond a
version string (a new package, a scripts edit, spec-binding
metadata) refuses the auto-waiver, fail-closed. Default false.
Trait Implementations§
Source§impl Clone for CouplingConfig
impl Clone for CouplingConfig
Source§fn clone(&self) -> CouplingConfig
fn clone(&self) -> CouplingConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CouplingConfig
impl Debug for CouplingConfig
Source§impl Default for CouplingConfig
impl Default for CouplingConfig
Source§impl<'de> Deserialize<'de> for CouplingConfigwhere
CouplingConfig: Default,
impl<'de> Deserialize<'de> for CouplingConfigwhere
CouplingConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for CouplingConfig
impl PartialEq for CouplingConfig
Source§fn eq(&self, other: &CouplingConfig) -> bool
fn eq(&self, other: &CouplingConfig) -> bool
self and other values to be equal, and is used by ==.