Neutron review tool use message instead of topics for bugs

After the upgrade of Gerrit the message field works as expected
so the review tool can use it instead of filtering using the
topic. This implies that having the bug number in the commit
message is enough for the patch to be included in the dashboard.

Change-Id: I6e61643fe862f842d731abaacfd1b18881e0c45e
This commit is contained in:
rossella 2016-01-26 11:52:24 +00:00
parent cc5876693e
commit f585662a8d

View File

@ -34,7 +34,7 @@ def _search_task(project, **kwargs):
return return
gerrit_query = "(" gerrit_query = "("
for b in bugs: for b in bugs:
gerrit_query += ("topic:bug/%d OR " % b.bug.id) gerrit_query += ("message:%d OR " % b.bug.id)
gerrit_query = gerrit_query[:-4] gerrit_query = gerrit_query[:-4]
gerrit_query += ")\n\n" gerrit_query += ")\n\n"
return gerrit_query return gerrit_query