Skip to content

Commit

Permalink
Use getOctokit directly
Browse files Browse the repository at this point in the history
  • Loading branch information
wms committed Oct 13, 2022
1 parent 100c2e0 commit 3815f88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Expand Up @@ -36,14 +36,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const core = __importStar(__nccwpck_require__(2186));
const github_1 = __importStar(__nccwpck_require__(5438));
const github_1 = __nccwpck_require__(5438);
const poll_1 = __nccwpck_require__(5498);
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
const token = core.getInput('token', { required: true });
const result = yield (0, poll_1.poll)({
client: github_1.default.getOctokit(token),
client: (0, github_1.getOctokit)(token),
log: msg => core.info(msg),
checkName: core.getInput('checkName', { required: true }),
owner: core.getInput('owner') || github_1.context.repo.owner,
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
@@ -1,13 +1,13 @@
import * as core from '@actions/core'
import github, {context} from '@actions/github'
import {context, getOctokit} from '@actions/github'
import {poll} from './poll'

async function run(): Promise<void> {
try {
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}),
Expand Down

0 comments on commit 3815f88

Please sign in to comment.