diff --git a/action/index.cjs b/action/index.cjs index 1d5714b..ad0bd4b 100644 --- a/action/index.cjs +++ b/action/index.cjs @@ -188045,7 +188045,7 @@ const robot = (app) => { async function getAccountOwner(files) { const originalOwner = identity; let newOwner = ''; - const infoJsonFile = files.find(x => x.filename.endsWith(`/${identity}/info.json`)); + const infoJsonFile = files.find(x => x.filename.endsWith(`/${identity}.info.json`)); if (infoJsonFile) { const { data: infoFromPullRequest } = await axios_1.default.get(infoJsonFile.raw_url); if (infoFromPullRequest && typeof infoFromPullRequest === 'object') { @@ -188236,6 +188236,7 @@ const robot = (app) => { await fail('No owners identified'); return; } + console.log(`identity owners. check mode=${checkMode}. value=${owners}`); const invalidAddresses = await multiVerify(bodies, owners, commitShas); if (!invalidAddresses) { await fail('Failed to verify owners'); diff --git a/src/bot.ts b/src/bot.ts index 0b28cf2..83ba014 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -83,7 +83,7 @@ export const robot = (app: Probot) => { const originalOwner = identity; let newOwner: string = ''; - const infoJsonFile = files.find(x => x.filename.endsWith(`/${identity}/info.json`)); + const infoJsonFile = files.find(x => x.filename.endsWith(`/${identity}.info.json`)); if (infoJsonFile) { const { data: infoFromPullRequest } = await axios.get(infoJsonFile.raw_url); @@ -323,6 +323,7 @@ export const robot = (app: Probot) => { return; } + console.log(`identity owners. check mode=${checkMode}. value=${owners}`); const invalidAddresses = await multiVerify(bodies, owners, commitShas); if (!invalidAddresses) { await fail('Failed to verify owners');