Skip to content

Commit

Permalink
Include config in check output (#30)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Castaño Arteaga <[email protected]>
  • Loading branch information
tegioz authored Sep 5, 2024
1 parent 9efd803 commit f28d337
Show file tree
Hide file tree
Showing 2 changed files with 379 additions and 259 deletions.
2 changes: 2 additions & 0 deletions dco2/src/dco/check/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub(crate) struct CheckInput {
#[template(path = "output.md", whitespace = "suppress")]
pub(crate) struct CheckOutput {
pub commits: Vec<CommitCheckOutput>,
pub config: Config,
pub head_ref: String,
pub num_commits_with_errors: usize,
}
Expand Down Expand Up @@ -93,6 +94,7 @@ impl Display for CommitSuccessReason {
pub(crate) fn check(input: &CheckInput) -> CheckOutput {
let mut output = CheckOutput {
commits: Vec::new(),
config: input.config.clone(),
head_ref: input.head_ref.clone(),
num_commits_with_errors: 0,
};
Expand Down
Loading

0 comments on commit f28d337

Please sign in to comment.