We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c1b4b2 commit dd05b5dCopy full SHA for dd05b5d
.github/scripts/validate-and-merge.mjs
@@ -46,22 +46,6 @@ async function validateAndMerge() {
46
console.log('PR does not modify only the target JSON file');
47
return;
48
}
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
65
const { data: diff } = await octokit.pulls.get({
66
owner,
67
repo,
0 commit comments