Skip to content

Commit

Permalink
add a fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
dandlezzz committed Oct 14, 2024
1 parent 3f1deae commit c5a8666
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/scripts/validate-and-merge.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ const requiredKeys = [

async function validateAndMerge() {
const { Octokit } = await import('@octokit/rest');
const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
const fetch = await import("node-fetch");

const octokit = new Octokit({
auth: process.env.GITHUB_TOKEN,
request: {
fetch: fetch,
},
});
try {
const { data: pr } = await octokit.pulls.get({
owner,
Expand Down

0 comments on commit c5a8666

Please sign in to comment.