Struct git_checks::checks::ReleaseBranch [−][src]
pub struct ReleaseBranch { /* fields omitted */ }
A check which checks for release branch eligibility.
Methods
impl ReleaseBranch
[src]
impl ReleaseBranch
pub 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 Self
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 Debug for ReleaseBranch
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl BranchCheck for ReleaseBranch
[src]
impl BranchCheck for ReleaseBranch
fn name(&self) -> &str
[src]
fn name(&self) -> &str
The 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 ReleaseBranch
impl Sync for ReleaseBranch
impl Sync for ReleaseBranch