Add ability to filter patchset comments.
Zuul layouts can now specify that jobs get run when comments match
a filter. Trigger layouts would look like:
trigger:
- event: comment-added
comment_filter:
- reverify
- recheck
This would trigger a job whenever comments containing the string
"reverify" or "recheck" are added to a change.
Change-Id: I3dd75abbf75686b3929dd2bb412b02740911d6ee
diff --git a/doc/source/zuul.rst b/doc/source/zuul.rst
index d962edb..0b06ffb 100644
--- a/doc/source/zuul.rst
+++ b/doc/source/zuul.rst
@@ -148,6 +148,14 @@
``code-review: 2`` matches a ``+2`` vote on the code review category.
Multiple approvals may be listed.
+ *comment_filter*
+ This is only used for ``comment-added`` events. It accepts a list of
+ regexes that are searched for in the comment string. If any of these
+ regexes matches a portion of the comment string the trigger is
+ matched. ``comment_filter: retrigger`` will match when comments
+ containing 'retrigger' somewhere in the comment text are added to a
+ change.
+
**success**
Describes what Zuul should do if all the jobs complete successfully.
This section is optional; if it is omitted, Zuul will run jobs and