diff --git a/dist/index.js b/dist/index.js index c8e6b53..dafbbeb 100644 --- a/dist/index.js +++ b/dist/index.js @@ -25909,7 +25909,7 @@ function pullRequestLabels(payload) { } async function changedFiles(payload) { var _token = Core.getInput("token"); - var octokit = _token === "" ? new import_core.Octokit.plugin(import_plugin_paginate_rest.paginateRest)() : new import_core.Octokit.plugin(import_plugin_paginate_rest.paginateRest)({ auth: _token }); + var octokit = _token === "" ? new (import_core.Octokit.plugin(import_plugin_paginate_rest.paginateRest))() : new (import_core.Octokit.plugin(import_plugin_paginate_rest.paginateRest))({ auth: _token }); return await octokit.paginate("GET /repos/{owner}/{repo}/pulls/{pull_number}/files", { owner: payload.repository.owner.login, repo: payload.repository.name, diff --git a/src/GH.res b/src/GH.res index 607afbb..06512bf 100644 --- a/src/GH.res +++ b/src/GH.res @@ -47,9 +47,9 @@ let pullRequestLabels = payload => */ let changedFiles = async payload => { let octokit = switch getInput("token") { - | "" => %raw(`new Octokit.plugin(paginateRest)()`) + | "" => %raw(`new (Octokit.plugin(paginateRest))()`) // While marked as ignored, `_token` is used inside the %raw() call. - | _token => %raw(`new Octokit.plugin(paginateRest)({ auth: _token })`) + | _token => %raw(`new (Octokit.plugin(paginateRest))({ auth: _token })`) } await octokit->paginate(