method GitOperations.prototype.getCommitsInPR
GitOperations.prototype.getCommitsInPR(mergeCommit: string): Promise<ConventionalCommit[]>

Get commits that were part of a PR Returns commits between merge base and the second parent of merge commit

Parameters

mergeCommit: string
  • SHA of the merge commit

Return Type

Array of commits in the PR

Usage

import { GitOperations } from ".";