Trait git_checks::BranchCheck
[−]
[src]
pub trait BranchCheck: Send + Sync { fn name(&self) -> &str; fn check(&self,
ctx: &CheckGitContext,
commit: &CommitId)
-> Result<CheckResult>; }
Interface for checks which runs once for the entire branch.
Required Methods
fn name(&self) -> &str
The name of the check.
fn check(&self, ctx: &CheckGitContext, commit: &CommitId) -> Result<CheckResult>
Run the check.
Implementors
impl BranchCheck for AllowRobot
impl BranchCheck for ReleaseBranch
impl BranchCheck for ValidName