CI: Update the announce-release script to use node-fetch

This commit is contained in:
Ty 2025-02-15 12:30:36 -05:00
parent 2dab8053ea
commit 35c2b847de
No known key found for this signature in database
GPG Key ID: A0C3085FE2160BCF
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import { MessageEmbed, WebhookClient } from "discord.js";
import { Octokit } from "@octokit/rest";
import { throttling } from "@octokit/plugin-throttling";
import { retry } from "@octokit/plugin-retry";
import { fetch } from "node-fetch";
let owner = process.env.OWNER;
let repo = process.env.REPO;
@ -17,6 +18,9 @@ const octokit = new Octokit({
warn: console.warn,
error: console.error
},
request: {
fetch: fetch,
},
throttle: {
onRateLimit: (retryAfter, options) => {
octokit.log.warn(