diff --git a/action/index.cjs b/action/index.cjs index a58dfd3..2b77df3 100644 --- a/action/index.cjs +++ b/action/index.cjs @@ -188045,11 +188045,11 @@ 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}.json`)); if (infoJsonFile) { const { data: infoFromPullRequest } = await axios_1.default.get(infoJsonFile.raw_url); + console.log(`typeof infoFromPullRequest = ${typeof infoFromPullRequest}. infoJsonFile=${infoJsonFile}. infoFromPullRequest=${infoFromPullRequest}`); if (infoFromPullRequest && typeof infoFromPullRequest === 'object') { - console.log(`typeof infoFromPullRequest = ${typeof infoFromPullRequest}. infoJsonFile=${infoJsonFile}. infoFromPullRequest=${infoFromPullRequest}`); newOwner = identity ?? ''; } } diff --git a/src/bot.ts b/src/bot.ts index 780afd4..618a4b4 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -83,12 +83,12 @@ 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}.json`)); if (infoJsonFile) { const { data: infoFromPullRequest } = await axios.get(infoJsonFile.raw_url); + console.log(`typeof infoFromPullRequest = ${typeof infoFromPullRequest}. infoJsonFile=${infoJsonFile}. infoFromPullRequest=${infoFromPullRequest}`); if (infoFromPullRequest && typeof infoFromPullRequest === 'object') { - console.log(`typeof infoFromPullRequest = ${typeof infoFromPullRequest}. infoJsonFile=${infoJsonFile}. infoFromPullRequest=${infoFromPullRequest}`); newOwner = identity ?? ''; } }