Skip to content

Commit

Permalink
Merge pull request #4 from Uninett/update-pygithub-dependency
Browse files Browse the repository at this point in the history
Update PyGithub dependency
  • Loading branch information
johannaengland authored Apr 25, 2024
2 parents 8edb447 + 0254cbb commit 446563f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readme = "README.md"
dependencies = [
"argus-server>=1.15",
"markdownify>=0.11",
"PyGithub>=1.58",
"PyGithub>=1.59",
"requests>=2.14",
]
requires-python = ">=3.8"
Expand Down
4 changes: 2 additions & 2 deletions src/argus_ticket_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get_labels(
missing_fields = []

for field in labels_mapping:
if type(field) is dict:
if type(field).isinstance(dict):
# Information can be found in tags
label = incident_tags.get(field["tag"], None)
if label:
Expand All @@ -87,7 +87,7 @@ def create_client(endpoint, authentication):

try:
client = github.Github(
base_url=base_url, login_or_token=authentication["token"]
base_url=base_url, auth=github.Auth.Token(authentication["token"])
)
except Exception:
client_error = "Github: Client could not be created."
Expand Down

0 comments on commit 446563f

Please sign in to comment.