Struct git_checks::checks::ReleaseBranch
source · pub struct ReleaseBranch { /* private fields */ }Expand description
A check which checks for release branch eligibility.
Implementations§
source§impl ReleaseBranch
impl ReleaseBranch
sourcepub fn new<B, C>(branch: B, commit: C) -> Selfwhere
B: ToString,
C: ToString,
pub fn new<B, C>(branch: B, commit: C) -> Selfwhere
B: ToString,
C: ToString,
Create a check which checks that a branch is eligible for a release branch.
By default, it only messages that a branch is eligible.
sourcepub fn set_required(&mut self, required: bool) -> &mut Self
pub fn set_required(&mut self, required: bool) -> &mut Self
Set whether the eligibility is required.
Use this for release branches to check that they do not bring in unwanted history.