Skip to content

Commit

Permalink
omit merge commits from next changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Apr 7, 2020
1 parent a5c98b0 commit 6ed13e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/core/src/auto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,14 @@ export default class Auto {

await this.setGitUser();

this.hooks.onCreateLogParse.tap("Omit merges from master", (logParse) => {
logParse.hooks.omitCommit.tap("Omit merges from master", (commit) => {
if (commit.subject.includes(`Merge origin/${this.baseBranch}`)) {
return true;
}
});
});

const currentBranch = getCurrentBranch();
const initialForkCommit = (
(
Expand Down

0 comments on commit 6ed13e1

Please sign in to comment.