From c6c46930484d82d66f887a383f393a2d41a470a9 Mon Sep 17 00:00:00 2001 From: AvrAlexandra Date: Thu, 14 Nov 2024 16:48:08 +0200 Subject: [PATCH] Skip merge commits --- src/commands/history/history.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/history/history.ts b/src/commands/history/history.ts index c0b573c..3682762 100644 --- a/src/commands/history/history.ts +++ b/src/commands/history/history.ts @@ -34,7 +34,9 @@ export async function analyseHistory(folders: string[], options: AnalyseOptions, continue; } for (const commit of commits) { - await processCommitForPlugins(commit, folder, selectedPlugins, commitProjectsMap); + if(commit.commit.parent.length < 2) { // Skip merge commits + await processCommitForPlugins(commit, folder, selectedPlugins, commitProjectsMap); + } } }