Skip to content

Commit

Permalink
add some debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinsgoodman committed Mar 31, 2024
1 parent 7f279af commit 9ce63b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/system/src/github-util/get-contributors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ interface ContributorApiData {
export const getContributorsData = async (): Promise<ContributorData[]> => {
const runFetch = async () => {
const abortError = new AbortError('Failed to fetch contributors');
if (process.env.GITHUB_API_ACCESS_TOKEN) {
console.log('Using GitHub API access token');
}
const response = process.env.GITHUB_API_ACCESS_TOKEN
? await fetch(
'https://api.github.com/repos/thisdot/framework.dev/contributors?anon=1',
Expand Down

0 comments on commit 9ce63b5

Please sign in to comment.