File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
import fs from 'fs' ;
2
2
import path from 'path' ;
3
3
import { Context } from '@actions/github/lib/context' ;
4
- import { PaginateInterface } from '@octokit/plugin-paginate-rest' ;
5
4
import { OctokitResponse } from '@octokit/types' ;
6
5
import { components } from '@octokit/openapi-types' ;
7
6
import { exportVariable } from '@actions/core' ;
@@ -289,7 +288,7 @@ export default class ApiHelper {
289
288
* @param {PullsListParams } params params
290
289
* @return {AsyncIterable<Array<PullsListResponseData>> } pull request list
291
290
*/
292
- public pullsList = ( params : PullsListParams ) : Promise < Array < PullsListResponseData > > => ( this . octokit . paginate as PaginateInterface ) (
291
+ public pullsList = ( params : PullsListParams ) : Promise < Array < PullsListResponseData > > => this . octokit . paginate (
293
292
this . octokit . rest . pulls . list ,
294
293
Object . assign ( {
295
294
sort : 'created' ,
@@ -553,7 +552,7 @@ export default class ApiHelper {
553
552
/**
554
553
* @return {Promise<Array<string>> } tags
555
554
*/
556
- public getTags = async ( ) : Promise < Array < string > > => ( await ( this . octokit . paginate as PaginateInterface ) (
555
+ public getTags = async ( ) : Promise < Array < string > > => ( await this . octokit . paginate (
557
556
this . octokit . rest . git . listMatchingRefs ,
558
557
{
559
558
...this . context . repo ,
You can’t perform that action at this time.
0 commit comments