Prevent rate limite in CI by authenticating

This commit is contained in:
garronej
2022-06-01 05:51:33 +02:00
parent 6b57b1c720
commit 9bdb224631
2 changed files with 2 additions and 7 deletions

View File

@ -1,7 +0,0 @@
import { Octokit } from "@octokit/rest";
export function createOctokit(params: { github_token: string }) {
const { github_token } = params;
return new Octokit({ ...(github_token !== "" ? { "auth": github_token } : {}) });
}