Skip to content

Commit

Permalink
[github] Avoid deprecated parameter
Browse files Browse the repository at this point in the history
```
:param login_or_token: string deprecated, use auth=github.Auth.Login(...) or auth=github.Auth.Token(...) instead
```
  • Loading branch information
kwk committed Jan 29, 2025
1 parent bca94fd commit 8c31300
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snapshot_manager/snapshot_manager/github_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def __init__(self, config: config.Config, github_token: str = None, **kwargs):
self.config = config
if github_token is None:
github_token = os.getenv(self.config.github_token_env)
self.github = github.Github(login_or_token=github_token)
auth = github.Auth.Token(github_token)
self.github = github.Github(auth=auth)
self.gql = github_graphql.GithubGraphQL(token=github_token, raise_on_error=True)
self.__label_cache = None
self.__repo_cache = None
Expand Down

0 comments on commit 8c31300

Please sign in to comment.