mirror of https://github.com/PCSX2/pcsx2.git
CI: Update the announce-release script to use node-fetch
This commit is contained in:
parent
2dab8053ea
commit
35c2b847de
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue