Skip to content

Commit

Permalink
Handle deleted user in the assignee list
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Thomas committed Feb 1, 2025
1 parent 48e428b commit e5e4f30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/github_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ def get_pull_request_dict_with_timestamp(
"""

for assignee in pr_dict['assignees']:
if 'login' not in [event['assignee'], assignee]:
continue
if event['assignee']['login'] == assignee['login']:
assignee['created_at'] = parser.parse(event['created_at'])
return pr_dict
Expand Down

0 comments on commit e5e4f30

Please sign in to comment.