Description:
After upgrading PyGithub to 2.8.0, IssueComment.user is no longer deserialized for bot accounts. This causes BadAttributeException when trying to access the comment.
Repro:
from github import Github
g = Github("token")
repo = g.get_repo("owner/repo")
pr = repo.get_pull(1234)
comments = pr.get_issue_comments()
print(comments[0]) # crashes if comment is from a bot
Traceback:
github.GithubException.BadAttributeException: (
{'login': '...[bot]', 'type': 'Bot', ...},
<class 'type'>,
None
)
Description:
After upgrading PyGithub to 2.8.0,
IssueComment.useris no longer deserialized for bot accounts. This causesBadAttributeExceptionwhen trying to access the comment.Repro:
Traceback: