From 733bb355b2fc30e80ffa79c332508da95cfacb80 Mon Sep 17 00:00:00 2001 From: lotorev vitaly Date: Mon, 12 Sep 2022 20:36:36 +0000 Subject: Clarify gerrit trigger approval can be dict or list of dicts Change-Id: I239c933c42b3298d85514055e49a586644972755 --- doc/source/drivers/gerrit.rst | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/doc/source/drivers/gerrit.rst b/doc/source/drivers/gerrit.rst index 7d052f946..4e7fc7cea 100644 --- a/doc/source/drivers/gerrit.rst +++ b/doc/source/drivers/gerrit.rst @@ -314,9 +314,10 @@ order to be enqueued into the pipeline. This requires that a certain kind of approval be present for the current patchset of the change (the approval could be added by - the event in question). It takes several sub-parameters, all of - which are optional and are combined together so that there must - be an approval matching all specified requirements. + the event in question). Approval is a dictionary or a list of + dictionaries with attributes listed below, all of which are + optional and are combined together so that there must be an approval + matching all specified requirements. .. attr:: username @@ -374,9 +375,9 @@ order to be enqueued into the pipeline. .. attr:: approval - This takes a list of approvals. If an approval matches the - provided criteria the change can not be entered into the - pipeline. It follows the same syntax as + This takes an approval or a list of approvals. If an approval + matches the provided criteria the change can not be entered + into the pipeline. It follows the same syntax as :attr:`pipeline.require..approval`. Example to reject a change with any negative vote: -- cgit v1.2.1