Skip to content

Commit

Permalink
fix account extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-rosianu committed Feb 15, 2024
1 parent 66f656c commit cbf248e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion action/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -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');
Expand Down
3 changes: 2 additions & 1 deletion src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit cbf248e

Please sign in to comment.