Skip to content

Commit

Permalink
fix(utils): miss Merge pull request analysising
Browse files Browse the repository at this point in the history
  • Loading branch information
buns committed Jan 11, 2021
1 parent ce2eea6 commit 34a6445
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/utils/lib/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ export type GroupedCommitsItem = Commit & {
userEmail: string;
time: string;
};
pullId?: string;
pullSource?: string;
breaking: boolean;
};

Expand Down Expand Up @@ -140,7 +142,10 @@ export function getGroupedCommits(
.filter(commit => commit.trim())
.reduce(
(prev, commit) => {
const node = parser.sync(commit);
const node = parser.sync(commit, {
mergePattern: /^(Merge) pull request #(\d+) from (.*)$/,
mergeCorrespondence: ["type", "pullId", "pullSource"]
});
const extra = node.extra.split("\n");

const breaking =
Expand Down

0 comments on commit 34a6445

Please sign in to comment.