File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 24
24
"@actions/github" : " ^2.1.1"
25
25
},
26
26
"devDependencies" : {
27
- "@octokit/rest" : " ^16.43.1" ,
28
27
"@types/node" : " ^13.7.4" ,
29
28
"@zeit/ncc" : " ^0.21.1" ,
30
29
"typescript" : " ^3.7.2"
Original file line number Diff line number Diff line change 1
1
import { getInput , setFailed , setOutput } from "@actions/core" ;
2
- import { context } from "@actions/github" ;
3
- import { Octokit } from "@octokit/rest" ;
2
+ import { context , GitHub } from "@actions/github" ;
4
3
5
4
export async function run ( ) {
6
5
try {
7
- const token = getInput ( "repo_token" , { required : true } ) ;
8
- const client = new Octokit ( { auth : `token ${ token } ` } ) ;
6
+ const client = new GitHub ( getInput ( "repo_token" , { required : true } ) ) ;
9
7
10
8
const { data : { pull_request } } = await client . issues . get ( {
11
9
...context . repo ,
You can’t perform that action at this time.
0 commit comments