Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/github_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ def get_pull_request_dict_with_timestamp(
"""

for assignee in pr_dict['assignees']:
if event['assignee'] is None or assignee is None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kevintab95 Could you please add a comment explaining the circumstances here before we merge this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update -- I went ahead and made the change.

# This situation can arise if a PR was reviewed by a now-deleted
# user.
continue
if event['assignee']['login'] == assignee['login']:
assignee['created_at'] = parser.parse(event['created_at'])
return pr_dict
Expand Down