Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
milankomaj committed Aug 1, 2024
1 parent 3faf40a commit cab3b60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
permissions: read-all
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_owner: ${{ github.repository_owner }}
ACCESS_TOKEN: ${{secrets.ACCESS_TOKEN}}
GITHUB_owner: ${{github.repository_owner}}
defaults:
run:
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions src/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { retry } from "@octokit/plugin-retry";
import { paginateGraphQL } from "@octokit/plugin-paginate-graphql";
import { lang } from './github-lang-colors.js';
console.log("✅ Date:", util.color.magenta(new Date(Math.floor(Date.now())).toLocaleDateString())) // toLocaleString
const token = process.env.GITHUB_TOKEN //🔶 node and action
const token = process.env.ACCESS_TOKEN //🔶 node and action


const args = process.argv.slice(2); //🔶 Remove node and script paths
Expand All @@ -20,7 +20,7 @@ const ThrottleOctokit = Octokit.plugin(throttling, retry, paginateGraphQL);
const octokit = new ThrottleOctokit({
userAgent: 'stat-card',
auth: token,
retry: { request: { retries: 10, retryAfter: 1, } },
retry: { request: { retries: 1, retryAfter: 1, } },
log: {
debug: logs === 'debug' ? console.debug : () => { }, // () => { }🔶
info: logs === 'info' ? console.info : () => { },
Expand Down

0 comments on commit cab3b60

Please sign in to comment.