@@ -30,10 +30,6 @@ interface GitHubComment {
3030 updated_at : string ;
3131}
3232
33- interface GitHubPullRequestComments {
34- comments : GitHubComment [ ] ;
35- }
36-
3733const countFileLines = async ( filePath : string ) : Promise < number > => {
3834 try {
3935 const content = await fsPromises . readFile ( filePath , "utf-8" ) ;
@@ -577,23 +573,6 @@ export const detectSSHError = (output: string): string | undefined => {
577573 return `SSH test failed: ${ output . substring ( 0 , 200 ) } ` ;
578574} ;
579575
580- const getAllPullRequestComments = async (
581- directoryPath : string ,
582- prNumber : number ,
583- ) : Promise < GitHubPullRequestComments > => {
584- validatePullRequestNumber ( prNumber ) ;
585-
586- try {
587- const { stdout } = await execAsync (
588- `gh pr view ${ prNumber } --json comments` ,
589- { cwd : directoryPath } ,
590- ) ;
591- return JSON . parse ( stdout ) ;
592- } catch ( error ) {
593- throw new Error ( `Failed to fetch PR comments: ${ error } ` ) ;
594- }
595- } ;
596-
597576const getPullRequestReviewComments = async (
598577 directoryPath : string ,
599578 prNumber : number ,
@@ -1080,17 +1059,6 @@ export function registerGitIpc(
10801059 } ,
10811060 ) ;
10821061
1083- ipcMain . handle (
1084- "get-pr-comments" ,
1085- async (
1086- _event : IpcMainInvokeEvent ,
1087- directoryPath : string ,
1088- prNumber : number ,
1089- ) : Promise < GitHubPullRequestComments > => {
1090- return getAllPullRequestComments ( directoryPath , prNumber ) ;
1091- } ,
1092- ) ;
1093-
10941062 ipcMain . handle (
10951063 "get-pr-review-comments" ,
10961064 async (
0 commit comments