Skip to content

Commit

Permalink
fix: update token name in update_about.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kowyo authored Jul 24, 2024
1 parent c40d6ef commit bf85152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/update_about.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import requests
import os

ACCESS_TOKEN = os.getenv('ACCESS_TOKEN')
ACCESS_TOKEN = os.getenv('PERSONAL_ACCESS_TOKEN')
ORG_NAME = 'HITSZ-OpenAuto'

def get_repos(org_name, access_token):
Expand All @@ -13,7 +13,7 @@ def get_repos(org_name, access_token):
response = requests.get(url, headers=headers)
response.raise_for_status()
data = response.json()
repos.extend(repo['name'] for repo in data if repo['name'] != '.github' and repo['name'] != 'hoa.moe' and not repo['private'])
repos.extend(repo['name'] for repo in data if repo['name'] != '.github' and not repo['private'])
url = response.links.get('next', {}).get('url')

return repos
Expand Down

0 comments on commit bf85152

Please sign in to comment.