Struct git_checks::checks::ReleaseBranch [−][src]
pub struct ReleaseBranch { /* fields omitted */ }A check which checks for release branch eligibility.
Methods
impl ReleaseBranch[src]
impl ReleaseBranchpub fn new<B, C>(branch: B, commit: C) -> Self where
B: ToString,
C: ToString, [src]
pub fn new<B, C>(branch: B, commit: C) -> Self where
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.
ⓘImportant traits for &'a mut Rpub fn set_required(&mut self, required: bool) -> &mut Self[src]
ⓘImportant traits for &'a mut R
pub fn set_required(&mut self, required: bool) -> &mut SelfSet 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 Debug for ReleaseBranchfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl BranchCheck for ReleaseBranch[src]
impl BranchCheck for ReleaseBranchfn name(&self) -> &str[src]
fn name(&self) -> &strThe name of the check.
fn check(&self, ctx: &CheckGitContext, commit: &CommitId) -> Result<CheckResult>[src]
fn check(&self, ctx: &CheckGitContext, commit: &CommitId) -> Result<CheckResult>Run the check.
Auto Trait Implementations
impl Send for ReleaseBranch
impl Send for ReleaseBranchimpl Sync for ReleaseBranch
impl Sync for ReleaseBranch