Skip to content

Commit

Permalink
remove json validation
Browse files Browse the repository at this point in the history
  • Loading branch information
dandlezzz committed Oct 14, 2024
1 parent 7c1b4b2 commit dd05b5d
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/scripts/validate-and-merge.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,6 @@ async function validateAndMerge() {
console.log('PR does not modify only the target JSON file');
return;
}

const { data: fileContent } = await octokit.repos.getContent({
owner,
repo,
path: jsonFile.filename,
ref: pr.head.ref,
});

const content = Buffer.from(fileContent.content, 'base64').toString('utf-8');
const jsonContent = JSON.parse(content);

if (!Array.isArray(jsonContent)) {
console.log('JSON content is not an array');
return;
}

const { data: diff } = await octokit.pulls.get({
owner,
repo,
Expand Down

0 comments on commit dd05b5d

Please sign in to comment.