Skip to content

Commit

Permalink
Merge pull request #302 from miri64/github/enh/fix-deprecated-param
Browse files Browse the repository at this point in the history
testutils: Avoid deprecated parameter
  • Loading branch information
miri64 committed Jan 31, 2024
2 parents 9a659f7 + cdf7acc commit fc597cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testutils/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import urllib.parse

from bs4 import BeautifulSoup
from github import Github, GithubException, InputFileContent
from github import Auth, Github, GithubException, InputFileContent

from testutils.git import Git, GitError

Expand Down Expand Up @@ -80,7 +80,7 @@ def get_github():
access_token = get_access_token()
if not access_token:
return None
return Github(access_token, base_url=API_URL)
return Github(auth=Auth.Token(access_token), base_url=API_URL)


def get_repo(github):
Expand Down

0 comments on commit fc597cc

Please sign in to comment.