Skip to content

Commit b84abe0

Browse files
committed
Switch back to using @actions/github
1 parent 8f52e9e commit b84abe0

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"@actions/github": "^2.1.1"
2525
},
2626
"devDependencies": {
27-
"@octokit/rest": "^16.43.1",
2827
"@types/node": "^13.7.4",
2928
"@zeit/ncc": "^0.21.1",
3029
"typescript": "^3.7.2"

src/main.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
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";
43

54
export async function run() {
65
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 }));
97

108
const { data: { pull_request } } = await client.issues.get({
119
...context.repo,

0 commit comments

Comments
 (0)