From d2db48d6f2466d1606492155785e76e7f72267bb Mon Sep 17 00:00:00 2001 From: Zach <4138103+zdxn@users.noreply.github.com> Date: Mon, 28 Mar 2022 16:50:59 -0400 Subject: [PATCH 1/2] update to shortcutclient --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a8e812d..2969a10 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ const core = require('@actions/core'); const github = require('@actions/github'); -const Shortcut = require('@useshortcut/client'); +const { ShortcutClient } = require('@useshortcut/client'); function formatMatches(matches) { const values = []; @@ -111,7 +111,7 @@ async function fetchStoryAndUpdatePr(params) { repository, dryRun, } = params; - const client = new Shortcut(chToken); + const client = new ShortcutClient(chToken); const storyIds = getStoryIds(pullRequest); const story = await getShortcutStory(client, storyIds); const newTitle = getTitle( From 7047068e6b5381af1dd0a08f2ab70c8dd8c50c53 Mon Sep 17 00:00:00 2001 From: Zach <4138103+zdxn@users.noreply.github.com> Date: Mon, 28 Mar 2022 16:51:46 -0400 Subject: [PATCH 2/2] built version --- dist/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 772dd9f..fbea508 100644 --- a/dist/index.js +++ b/dist/index.js @@ -15690,7 +15690,7 @@ __nccwpck_require__.r(__webpack_exports__); /* harmony export */ }); const core = __nccwpck_require__(2186); const github = __nccwpck_require__(5438); -const Shortcut = __nccwpck_require__(5914); +const { ShortcutClient } = __nccwpck_require__(5914); function formatMatches(matches) { const values = []; @@ -15801,7 +15801,7 @@ async function fetchStoryAndUpdatePr(params) { repository, dryRun, } = params; - const client = new Shortcut(chToken); + const client = new ShortcutClient(chToken); const storyIds = getStoryIds(pullRequest); const story = await getShortcutStory(client, storyIds); const newTitle = getTitle(