in src/github/junie/new-prompt-formatter.ts [155:164]
private getCommitsInfo(fetchedData: FetchedData): string | undefined {
const commits = fetchedData.pullRequest?.commits?.nodes;
if (!commits || commits.length === 0) {
return undefined;
}
const commitsInfo = this.formatCommits(commits);
return commitsInfo ? `<commits>\n${commitsInfo}\n</commits>` : undefined;
}