From ffa102d8a1a2a58f5d22412ada497d18a8ca951f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kry=C5=A1tof=20Korb?= Date: Tue, 24 Jan 2023 10:22:11 +0100 Subject: [PATCH] Remove outdated GitHub API preview (#39) --- dist/index.js | 4 +--- index.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index bc5c4e1..e35026f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -13518,9 +13518,7 @@ async function run() { try { const token = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('github-token', { required: true }); - const octokit = new _actions_github__WEBPACK_IMPORTED_MODULE_1__.GitHub(token, { - previews: ['mockingbird-preview'], - }); + const octokit = new _actions_github__WEBPACK_IMPORTED_MODULE_1__.GitHub(token); const epics = await getReferencedEpics({ octokit }); await updateEpics({ octokit, epics }); diff --git a/index.js b/index.js index 8d857da..685bc84 100644 --- a/index.js +++ b/index.js @@ -72,9 +72,7 @@ async function run() { try { const token = core.getInput('github-token', { required: true }); - const octokit = new github.GitHub(token, { - previews: ['mockingbird-preview'], - }); + const octokit = new github.GitHub(token); const epics = await getReferencedEpics({ octokit }); await updateEpics({ octokit, epics });