File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -281,12 +281,13 @@ export default class ApiHelper {
281
281
* @return {AsyncIterable<PullsListResponseData> } pull request list
282
282
*/
283
283
public pullsList = ( params : PullsListParams ) : Promise < PullsListResponseData > => ( this . octokit . paginate as PaginateInterface ) (
284
- ( this . octokit as RestEndpointMethods ) . pulls . list . endpoint . merge ( Object . assign ( {
284
+ ( this . octokit as RestEndpointMethods ) . pulls . list ,
285
+ Object . assign ( {
285
286
sort : 'created' ,
286
287
direction : 'asc' ,
287
288
} , params , {
288
289
...this . context . repo ,
289
- } ) ) ,
290
+ } ) ,
290
291
) ;
291
292
292
293
/**
@@ -546,10 +547,11 @@ export default class ApiHelper {
546
547
* @return {Promise<Array<string>> } tags
547
548
*/
548
549
public getTags = async ( ) : Promise < Array < string > > => ( await ( this . octokit . paginate as PaginateInterface ) (
549
- ( this . octokit as RestEndpointMethods ) . git . listMatchingRefs . endpoint . merge ( {
550
+ ( this . octokit as RestEndpointMethods ) . git . listMatchingRefs ,
551
+ {
550
552
...this . context . repo ,
551
553
ref : 'tags/' ,
552
- } ) ,
554
+ } ,
553
555
) ) . map ( ( item ) : string => trimRef ( ( item as GitListMatchingRefsResponseData [ number ] ) . ref ) ) ;
554
556
555
557
/**
You can’t perform that action at this time.
0 commit comments