From ea0d3155e4879cea5e5080b659b817b75a01435a Mon Sep 17 00:00:00 2001 From: Parker Brown <17183625+parkerbxyz@users.noreply.github.com> Date: Thu, 19 Mar 2026 23:05:19 -0700 Subject: [PATCH] refactor: rename internal appId variable to clientId Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- dist/main.cjs | 10 +++++----- lib/main.js | 6 +++--- main.js | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dist/main.cjs b/dist/main.cjs index d2baf2c..683df24 100644 --- a/dist/main.cjs +++ b/dist/main.cjs @@ -23153,7 +23153,7 @@ async function pRetry(input, options = {}) { } // lib/main.js -async function main(appId, privateKey, owner, repositories, permissions, core, createAppAuth2, request2, skipTokenRevoke) { +async function main(clientId, privateKey, owner, repositories, permissions, core, createAppAuth2, request2, skipTokenRevoke) { let parsedOwner = ""; let parsedRepositoryNames = []; if (!owner && repositories.length === 0) { @@ -23188,7 +23188,7 @@ async function main(appId, privateKey, owner, repositories, permissions, core, c ); } const auth5 = createAppAuth2({ - appId, + appId: clientId, privateKey, request: request2 }); @@ -23307,8 +23307,8 @@ if (!process.env.GITHUB_REPOSITORY_OWNER) { } async function run() { ensureNativeProxySupport(); - const appId = getInput("client-id") || getInput("app-id"); - if (!appId) { + const clientId = getInput("client-id") || getInput("app-id"); + if (!clientId) { throw new Error("Either 'client-id' or 'app-id' input must be set"); } const privateKey = getInput("private-key"); @@ -23317,7 +23317,7 @@ async function run() { const skipTokenRevoke = getBooleanInput("skip-token-revoke"); const permissions = getPermissionsFromInputs(process.env); return main( - appId, + clientId, privateKey, owner, repositories, diff --git a/lib/main.js b/lib/main.js index 9ae9d78..8f5ef9a 100644 --- a/lib/main.js +++ b/lib/main.js @@ -2,7 +2,7 @@ import pRetry from "p-retry"; // @ts-check /** - * @param {string} appId + * @param {string} clientId * @param {string} privateKey * @param {string} owner * @param {string[]} repositories @@ -13,7 +13,7 @@ import pRetry from "p-retry"; * @param {boolean} skipTokenRevoke */ export async function main( - appId, + clientId, privateKey, owner, repositories, @@ -70,7 +70,7 @@ export async function main( } const auth = createAppAuth({ - appId, + appId: clientId, privateKey, request, }); diff --git a/main.js b/main.js index 03e6330..b685126 100644 --- a/main.js +++ b/main.js @@ -18,8 +18,8 @@ if (!process.env.GITHUB_REPOSITORY_OWNER) { async function run() { ensureNativeProxySupport(); - const appId = core.getInput("client-id") || core.getInput("app-id"); - if (!appId) { + const clientId = core.getInput("client-id") || core.getInput("app-id"); + if (!clientId) { throw new Error("Either 'client-id' or 'app-id' input must be set"); } const privateKey = core.getInput("private-key"); @@ -35,7 +35,7 @@ async function run() { const permissions = getPermissionsFromInputs(process.env); return main( - appId, + clientId, privateKey, owner, repositories,