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
7 changes: 4 additions & 3 deletions bot/code_review_bot/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ def run(self, revision):
# Analyze revision patch to get files/lines data
revision.analyze_patch()

# Store the revision in the backend
self.backend_api.publish_revision(revision)

# Find issues on remote tasks
issues = self.find_issues(revision)
if not issues:
Expand Down Expand Up @@ -221,6 +218,10 @@ def find_issues(self, revision):
# Update the local revision with tasks
revision.setup_try(tasks)

# Store the revision in the backend
# It needs to be after setup_try to have a repository value
self.backend_api.publish_revision(revision)

# Load task description
task = tasks.get(settings.try_task_id)
assert task is not None, "Missing task {}".format(settings.try_task_id)
Expand Down