Skip to content

Commit

Permalink
only process commits on the current branch
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mansona committed May 16, 2024
1 parent 7e13349 commit a2007eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a2007eb

Please sign in to comment.