Skip to content

Commit dd05b5d

Browse files
committed
remove json validation
1 parent 7c1b4b2 commit dd05b5d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

.github/scripts/validate-and-merge.mjs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,6 @@ async function validateAndMerge() {
4646
console.log('PR does not modify only the target JSON file');
4747
return;
4848
}
49-
50-
const { data: fileContent } = await octokit.repos.getContent({
51-
owner,
52-
repo,
53-
path: jsonFile.filename,
54-
ref: pr.head.ref,
55-
});
56-
57-
const content = Buffer.from(fileContent.content, 'base64').toString('utf-8');
58-
const jsonContent = JSON.parse(content);
59-
60-
if (!Array.isArray(jsonContent)) {
61-
console.log('JSON content is not an array');
62-
return;
63-
}
64-
6549
const { data: diff } = await octokit.pulls.get({
6650
owner,
6751
repo,

0 commit comments

Comments
 (0)