Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-rosianu committed Feb 16, 2024
1 parent a6862b3 commit 6693735
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions action/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -188050,7 +188050,6 @@ const robot = (app) => {
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') {
newOwner = identity ?? '';
}
Expand Down Expand Up @@ -188158,7 +188157,7 @@ const robot = (app) => {
const signature = /[0-9a-fA-F]{128}/.exec(body)?.at(0);
if (signature) {
const verifyResult = await verifySignature(signature, address, message);
console.log(`verifying signature for address ${address}, message ${message}, and signature ${signature}. Result=${verifyResult}`);
console.log(`Verifying signature for address ${address}, message ${message}, and signature ${signature}. Result=${verifyResult}`);
return verifyResult;
}
const txHash = /[0-9a-fA-F]{64}/.exec(body)?.at(0);
Expand Down Expand Up @@ -188220,7 +188219,6 @@ const robot = (app) => {
}
let checkMode = 'identity';
const changedFilesNames = changedFiles.map(x => x.filename);
console.log({ changedFiles });
const distinctStakingIdentities = getDistinctIdentities(changedFilesNames);
const distinctAccounts = getDistinctAccounts(changedFilesNames);
const distinctTokens = getDistinctTokens(changedFilesNames);
Expand Down
4 changes: 1 addition & 3 deletions src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export const robot = (app: Probot) => {
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') {
newOwner = identity ?? '';
}
Expand Down Expand Up @@ -225,7 +224,7 @@ export const robot = (app: Probot) => {
const signature = /[0-9a-fA-F]{128}/.exec(body)?.at(0);
if (signature) {
const verifyResult = await verifySignature(signature, address, message);
console.log(`verifying signature for address ${address}, message ${message}, and signature ${signature}. Result=${verifyResult}`);
console.log(`Verifying signature for address ${address}, message ${message}, and signature ${signature}. Result=${verifyResult}`);
return verifyResult;
}

Expand Down Expand Up @@ -306,7 +305,6 @@ export const robot = (app: Probot) => {

let checkMode = 'identity';
const changedFilesNames = changedFiles.map(x => x.filename);
console.log({ changedFiles });
const distinctStakingIdentities = getDistinctIdentities(changedFilesNames);
const distinctAccounts = getDistinctAccounts(changedFilesNames);
const distinctTokens = getDistinctTokens(changedFilesNames);
Expand Down

0 comments on commit 6693735

Please sign in to comment.