From 5a30d26f440be8949b1813f3a392a1a91bb82f3b Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Tue, 16 Jul 2019 00:32:26 +0000 Subject: [PATCH] Complete hide logic for Zuul CI comments in Gerrit Apply the exclusion for trusted CI comments to the hide function's conditional case as well as the toggle function's. Change-Id: Ia4e5ec22a097a8b8cb564c237fd0aa48ab6f8724 --- modules/openstack_project/files/gerrit/hideci.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openstack_project/files/gerrit/hideci.js b/modules/openstack_project/files/gerrit/hideci.js index 5af1ea3734..012b2c9512 100644 --- a/modules/openstack_project/files/gerrit/hideci.js +++ b/modules/openstack_project/files/gerrit/hideci.js @@ -367,7 +367,7 @@ var ci_hide_ci_comments = function(comments) { comments = ci_parse_comments(); } $.each(comments, function(i, comment) { - if (comment.is_ci) { + if (comment.is_ci && !comment.is_trusted_ci) { $(comment.ref).hide(); } });