Merge pull request #2963 from DanApollo/fix-github-rate-limit

Fix:  GitHub rate limit
This commit is contained in:
PopeyeTheSai10r
2025-12-26 19:22:23 -08:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -32,6 +32,8 @@ jobs:
run: npm run channels:lint
- name: update sites.md
run: npm run sites:update
env:
GH_TOKEN: ${{ steps.create-app-token.outputs.token }}
- run: git status
- name: commit changes to sites.md
if: ${{ !env.ACT && github.ref == 'refs/heads/master' }}

View File

@@ -80,7 +80,9 @@ export async function loadJs(filepath: string) {
export async function loadIssues(props?: { labels: string[] | string }) {
const CustomOctokit = Octokit.plugin(paginateRest, restEndpointMethods)
const octokit = new CustomOctokit()
const octokit = new CustomOctokit({
auth: process.env.GH_TOKEN
})
let labels = ''
if (props && props.labels) {