From dd05b5def2a349a056cdfa5f74ba964c61393926 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 14 Oct 2024 12:48:46 -0700 Subject: [PATCH] remove json validation --- .github/scripts/validate-and-merge.mjs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.github/scripts/validate-and-merge.mjs b/.github/scripts/validate-and-merge.mjs index f230bd3..f9d3e28 100644 --- a/.github/scripts/validate-and-merge.mjs +++ b/.github/scripts/validate-and-merge.mjs @@ -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,