diff options
author | lotorev vitaly <lotorev@gmail.com> | 2022-09-12 20:36:36 +0000 |
---|---|---|
committer | lotorev vitaly <lotorev@gmail.com> | 2022-09-12 22:40:03 +0000 |
commit | 733bb355b2fc30e80ffa79c332508da95cfacb80 (patch) | |
tree | 7005f3124b46aa81bc0e987dd5be0c99707e8f33 /doc | |
parent | 76ec804a893253755c794e8271f56e567b0c1f3d (diff) | |
download | zuul-733bb355b2fc30e80ffa79c332508da95cfacb80.tar.gz |
Clarify gerrit trigger approval can be dict or list of dicts
Change-Id: I239c933c42b3298d85514055e49a586644972755
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/drivers/gerrit.rst | 13 |
1 files 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.<gerrit source>.approval`. Example to reject a change with any negative vote: |