Struct git_checks::checks::ReleaseBranch
[−]
[src]
pub struct ReleaseBranch { /* fields omitted */ }A check which checks for release branch eligibility.
Methods
impl ReleaseBranch[src]
fn new<B, C>(branch: B, commit: C) -> Self where
B: ToString,
C: ToString, [src]
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.
fn set_required(&mut self, required: bool) -> &mut Self[src]
Set whether the eligibility is required.
Use this for release branches to check that they do not bring in unwanted history.
Trait Implementations
impl Debug for ReleaseBranch[src]
impl BranchCheck for ReleaseBranch[src]
fn name(&self) -> &str[src]
The name of the check.
fn check(&self, ctx: &CheckGitContext, commit: &CommitId) -> Result<CheckResult>[src]
Run the check.