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
[src]
Create a new check configuration.
fn add_check(&mut self, check: &'a Check) -> &mut Self
[src]
Add a check to be run on every commit.
fn add_branch_check(&mut self, check: &'a BranchCheck) -> &mut Self
[src]
Add a check to be once for the entire branch.
fn add_topic_check(&mut self, check: &'a TopicCheck) -> &mut Self
[src]
Add a check to be once for the entire topic.
fn run_commit(
&self,
ctx: &GitContext,
commit: &CommitId,
owner: &Identity
) -> Result<CheckResult>
[src]
&self,
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>,
[src]
&self,
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>
[src]
Returns the "default value" for a type. Read more