Skip to content

Commit 1f794c0

Browse files
author
Bastien Abadie
committed
bot: Publish all autoland issues on backend
1 parent 8f1c99e commit 1f794c0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bot/code_review_bot/workflow.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,14 @@ def ingest_autoland(self, revision):
140140
issues += task_issues
141141

142142
# Store the revision & diff in the backend
143-
# TODO: publish state (issues or not issues)
144143
self.backend_api.publish_revision(revision)
145144

145+
# Publish issues when there are some
146+
if issues:
147+
self.backend_api.publish_issues(issues, revision)
148+
else:
149+
logger.info("No issues for that autoland revision")
150+
146151
def publish(self, revision, issues, task_failures):
147152
"""
148153
Publish issues on selected reporters

0 commit comments

Comments
 (0)