Skip to content

Commit

Permalink
Update issues sync
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Sep 16, 2024
1 parent 2aaab3a commit 30857bb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions backend/apps/github/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ def sync_repository(gh_repository, organization=None, user=None):
if gh_issue.pull_request:
continue

# GitHub issue author.
if gh_issue.user is not None:
author = User.update_data(gh_issue.user)

author = (
User.update_data(gh_issue.user)
if gh_issue.user and gh_issue.user.type != "Bot"
else None
)
issue = Issue.update_data(gh_issue, author=author, repository=repository)

# Assignees.
Expand Down

0 comments on commit 30857bb

Please sign in to comment.