This repository was archived by the owner on Nov 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ export interface GitHub {
27
27
28
28
issues ( owner : string , repo : string , parameters ?: IssuesParameters ) : Promise < GitHubResponse < Issue [ ] > > ;
29
29
30
+ getPullRequestComments ( owner : string , repo : string , number : number ) : Promise < GitHubResponse < PullRequestComment [ ] > > ;
31
+
30
32
}
31
33
32
34
export interface GitHubResponse < T > {
@@ -35,6 +37,13 @@ export interface GitHubResponse<T> {
35
37
body : T ;
36
38
}
37
39
40
+ export interface PullRequestComment {
41
+ diff_hunk : string ;
42
+ path : string ;
43
+ position : number ;
44
+ body : string ;
45
+ }
46
+
38
47
export interface Issue {
39
48
html_url : string ;
40
49
number : number ;
@@ -210,7 +219,7 @@ namespace impl {
210
219
211
220
@Headers ( 'Accept: application/vnd.github.polaris-preview' )
212
221
@Get ( '/repos/:owner/:repo' )
213
- public getRepository ( _owner : string , _repo : string ) : any { /* */ }
222
+ public getRepository ( ) : any { /* */ }
214
223
215
224
@Get ( '/repos/:owner/:repo/pulls/:number' )
216
225
public getPullRequest ( ) : any { /* */ }
@@ -245,5 +254,8 @@ namespace impl {
245
254
@Get ( '/repos/:owner/:repo/issues' , true )
246
255
public issues ( ) : any { /* */ }
247
256
257
+ @Get ( '/repos/:owner/:repo/pulls/:number/comments' )
258
+ public getPullRequestComments ( ) : any { /* */ }
259
+
248
260
}
249
261
}
You can’t perform that action at this time.
0 commit comments