fix: restore original environment variable name for GitHub token

This commit is contained in:
Peter M. Elias 2024-12-28 03:48:07 -08:00
commit 339a7b6708

View file

@ -34,8 +34,8 @@ export async function githubRequest(
...options.headers,
};
if (process.env.GITHUB_TOKEN) {
headers["Authorization"] = `Bearer ${process.env.GITHUB_TOKEN}`;
if (process.env.GITHUB_PERSONAL_ACCESS_TOKEN) {
headers["Authorization"] = `Bearer ${process.env.GITHUB_PERSONAL_ACCESS_TOKEN}`;
}
const response = await fetch(url, {