diff --git a/lib/main.js b/lib/main.js index 11fb325e..6c3a82da 100644 --- a/lib/main.js +++ b/lib/main.js @@ -18,7 +18,7 @@ var __importStar = (this && this.__importStar) || function (mod) { Object.defineProperty(exports, "__esModule", { value: true }); const core = __importStar(require("@actions/core")); const Github = require('@actions/github'); -const { Octokit } = require('@octokit/rest').plugin(require('@octokit/plugin-retry')); +const Octokit = require('@octokit/rest').plugin(require('@octokit/plugin-retry')); const githubToken = core.getInput('github_token', { required: true }); const context = Github.context; const octokit = new Octokit({ auth: githubToken }); diff --git a/package-lock.json b/package-lock.json index 4f802c08..7f57b6ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "fork-sync", - "version": "1.1.9", + "version": "1.1.10", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 67c64775..3c5ba7d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fork-sync", - "version": "1.1.9", + "version": "1.1.10", "private": true, "description": "Keep your fork up to date", "main": "lib/main.js", diff --git a/src/main.ts b/src/main.ts index b51a261e..0ddd537a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import * as core from '@actions/core'; const Github = require('@actions/github'); -const { Octokit } = require('@octokit/rest').plugin(require('@octokit/plugin-retry')); +const Octokit = require('@octokit/rest').plugin(require('@octokit/plugin-retry')); const githubToken = core.getInput('github_token', { required: true }); const context = Github.context; const octokit = new Octokit({auth: githubToken});