Skip to content

Commit

Permalink
Developer experience improvement on missing github token values (#1550)
Browse files Browse the repository at this point in the history
  • Loading branch information
daveoconnor committed Jan 10, 2025
1 parent c1c72f5 commit f0fb913
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/githubhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def __init__(
"cmake",
"more",
]
if not token:
raise ValueError("No GitHub token provided or set in environment.")

def initialize_api(self) -> GhApi:
"""
Expand Down
2 changes: 1 addition & 1 deletion env.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ DJANGO_DEBUG=1
# Don't use this secret key in production obviously
SECRET_KEY="top-secret"

GITHUB_TOKEN="top-secret"
GITHUB_TOKEN=

# AWS_ACCESS_KEY_ID="changeme"
# AWS_SECRET_ACCESS_KEY="changeme"
Expand Down

0 comments on commit f0fb913

Please sign in to comment.