Skip to content

Commit

Permalink
fix: restore previous ignore_merge_commits behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
the-wondersmith authored and oknozor committed Aug 17, 2023
1 parent 5ca2772 commit c160f7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ async fn pull_request(_event: PullRequestEventType, body: Json<PullRequestEvent>

// Parse the config file into Cocogitto `Settings` (falling
// back to the default if the target repo doesn't have a `cog.toml`)
let cog_config = Settings::try_from(cog_file).unwrap_or_else(|_| Settings::default());
let cog_config = Settings::try_from(cog_file).unwrap_or_else(|_| Settings {
ignore_merge_commits: true,
..Settings::default()
});

// Turn them into conventional commits report
let reports: Vec<CommitReport> = commits
Expand Down

0 comments on commit c160f7a

Please sign in to comment.