From a2007ebfbb4f3971ee3c7a5072c3d6b992c6e7b3 Mon Sep 17 00:00:00 2001 From: Chris Manson Date: Thu, 16 May 2024 11:08:40 +0100 Subject: [PATCH] only process commits on the current branch This is to cater for the situation where people do a number of PRs (maybe from forks) to a PR before it is merged. In that situation it's not exactly clear what the PR number means so ignoring those commits is simpler for everyone --- src/git.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/git.ts b/src/git.ts index d7b04e1..edc0a39 100644 --- a/src/git.ts +++ b/src/git.ts @@ -55,6 +55,7 @@ export function listCommits(from: string, to: string = ""): CommitListItem[] { "--oneline", "--pretty=hash<%h> ref<%D> message<%s> date<%cd>", "--date=short", + "--first-parent", `${from}..${to}`, ]) .stdout.split("\n")