Skip to content

Commit

Permalink
update variable
Browse files Browse the repository at this point in the history
  • Loading branch information
madjin committed Dec 4, 2024
1 parent 263a54c commit 66ae4b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/fetch_contributors.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def get_contributor_data(repo_owner, repo_name, output_dir, headers, force=False
print(f"Saved data for {username}")

if __name__ == "__main__":
GITHUB_TOKEN = os.getenv("GITHUB_TOKEN")
GITHUB_TOKEN = os.getenv("GH_ACCESS_TOKEN")
if not GITHUB_TOKEN:
print("Error: Please set the GITHUB_TOKEN environment variable.")
sys.exit(1)
Expand All @@ -201,6 +201,6 @@ def get_contributor_data(repo_owner, repo_name, output_dir, headers, force=False
args.repo_owner,
args.repo_name,
args.output,
{"Authorization": f"Bearer {GITHUB_TOKEN}"},
{"Authorization": f"Bearer {GH_ACCESS_TOKEN}"},
args.force
)

0 comments on commit 66ae4b4

Please sign in to comment.