From f9419f637efaefc1c287a65d53b11ccb6984901a Mon Sep 17 00:00:00 2001 From: Warren Seymour Date: Thu, 13 Oct 2022 11:14:41 +0100 Subject: [PATCH] Use `getOctokit` directly --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 5fb86ed..c4002fb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,5 @@ import * as core from '@actions/core' -import github, {context} from '@actions/github' +import {getOctokit, context} from '@actions/github' import {poll} from './poll' async function run(): Promise { @@ -7,7 +7,7 @@ async function run(): Promise { const token = core.getInput('token', {required: true}) const result = await poll({ - client: github.getOctokit(token), + client: getOctokit(token), log: msg => core.info(msg), checkName: core.getInput('checkName', {required: true}),