We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40af94a commit f970f83Copy full SHA for f970f83
packages/agent/src/git-manager.ts
@@ -592,4 +592,15 @@ Generated by PostHog Agent`;
592
return false;
593
}
594
595
+
596
+ async getAllPullRequestComments(prNumber: number): Promise<string> {
597
+ try {
598
+ const output = await this.runCommand(
599
+ `gh pr view ${prNumber} --comments --json comments`,
600
+ );
601
+ return output;
602
+ } catch (error) {
603
+ throw new Error(`Failed to fetch PR comments: ${error}`);
604
+ }
605
606
0 commit comments