Struct git_checks::GitCheckConfiguration
[−]
[src]
pub struct GitCheckConfiguration<'a> { /* fields omitted */ }
Configuration for checks to run against a repository.
Methods
impl<'a> GitCheckConfiguration<'a>
[src]
fn new() -> Self
Create a new check configuration.
fn add_check(&mut self, check: &'a Check) -> &mut Self
Add a check to be run on every commit.
fn add_branch_check(&mut self, check: &'a BranchCheck) -> &mut Self
Add a check to be once for the entire branch.
fn run_commit(&self,
ctx: &GitContext,
commit: &CommitId,
owner: &Identity)
-> Result<CheckResult>
ctx: &GitContext,
commit: &CommitId,
owner: &Identity)
-> Result<CheckResult>
Run checks over a given topic.
fn run_topic<R>(&self,
ctx: &GitContext,
reason: R,
base_branch: &CommitId,
topic: &CommitId,
owner: &Identity)
-> Result<TopicCheckResult> where R: AsRef<str>
ctx: &GitContext,
reason: R,
base_branch: &CommitId,
topic: &CommitId,
owner: &Identity)
-> Result<TopicCheckResult> where R: AsRef<str>
Run checks over a given topic and collect results from the checks.
Trait Implementations
impl<'a> Default for GitCheckConfiguration<'a>
[src]
fn default() -> GitCheckConfiguration<'a>
Returns the "default value" for a type. Read more