Fix static type checker error

Error message:
    error: Argument of type "str | None" cannot be assigned to parameter
    "full_name_or_id" of type "int | str" in function "get_repo"
    (reportGeneralTypeIssues)
This commit is contained in:
Zach Borboa
2023-10-21 19:01:58 -07:00
parent 1c47fc9d02
commit 671b6ad1c6
+1 -1
View File
@@ -11,7 +11,7 @@ import git
from github import Github
# The owner and repository name. For example, octocat/Hello-World.
GITHUB_REPOSITORY = os.getenv("GITHUB_REPOSITORY")
GITHUB_REPOSITORY = os.getenv("GITHUB_REPOSITORY", "")
GITHUB_TOKEN = os.getenv("GITHUB_TOKEN")
GITHUB_REF_NAME = os.getenv("GITHUB_REF_NAME")