Struct git_checks::GitCheckConfiguration
source · pub struct GitCheckConfiguration<'a> { /* private fields */ }
Expand description
Configuration for checks to run against a repository.
Implementations§
source§impl<'a> GitCheckConfiguration<'a>
impl<'a> GitCheckConfiguration<'a>
sourcepub fn add_check(&mut self, check: &'a dyn Check) -> &mut Self
pub fn add_check(&mut self, check: &'a dyn Check) -> &mut Self
Add a check to be run on every commit.
sourcepub fn add_branch_check(&mut self, check: &'a dyn BranchCheck) -> &mut Self
pub fn add_branch_check(&mut self, check: &'a dyn BranchCheck) -> &mut Self
Add a check to be once for the entire branch.
sourcepub fn add_topic_check(&mut self, check: &'a dyn TopicCheck) -> &mut Self
pub fn add_topic_check(&mut self, check: &'a dyn TopicCheck) -> &mut Self
Add a check to be once for the entire topic.
sourcepub fn run_commit(
&self,
ctx: &GitContext,
commit: &CommitId,
owner: &Identity
) -> Result<CheckResult>
pub fn run_commit(
&self,
ctx: &GitContext,
commit: &CommitId,
owner: &Identity
) -> Result<CheckResult>
Run checks over a given commit.
Trait Implementations§
source§impl<'a> Debug for GitCheckConfiguration<'a>
impl<'a> Debug for GitCheckConfiguration<'a>
source§impl<'a> Default for GitCheckConfiguration<'a>
impl<'a> Default for GitCheckConfiguration<'a>
source§fn default() -> GitCheckConfiguration<'a>
fn default() -> GitCheckConfiguration<'a>
Returns the “default value” for a type. Read more