Skip to content

Commit

Permalink
Update backend/apps/github/common.py by cr
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
abhayymishraa and coderabbitai[bot] authored Mar 1, 2025
1 parent 00da50e commit ce609ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/apps/github/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def sync_issue(issue_link):
raise ValidationError(INVALID_ISSUE_LINK_FORMAT)

github_token = os.getenv("GITHUB_TOKEN")
if not github_token:
raise ValidationError("GitHub token not found in environment variables.")
github_client = Github(github_token)

issue_number = int(path_parts[3])
Expand Down

0 comments on commit ce609ba

Please sign in to comment.