7447292b57
New exclude features added to Gerrit Trigger plugin version 2.12.0. Exclude Features: - Drafts - Trivial Rebase - No Code Change This patch still supports the old trigger non-dict format yaml config: - patchset-created-event Using the old configuration (non-dict) works in the new Gerrit Trigger v2.12.0 as well as the previous versions. In addition the newer configuration (dict) format also works in old <2.12.0 and new >2.12.0 versions of Gerrit Trigger. Added additional unit tests to verify old and new formats working. Change-Id: I923b0be47085dc50da48f5ed271a13eae7e1dfa0 Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
34 lines
996 B
YAML
34 lines
996 B
YAML
triggers:
|
|
- gerrit:
|
|
trigger-on:
|
|
- patchset-created-event
|
|
- comment-added-event:
|
|
approval-category: 'APRV'
|
|
approval-value: 1
|
|
projects:
|
|
- project-compare-type: 'PLAIN'
|
|
project-pattern: 'test-project'
|
|
branches:
|
|
- branch-compare-type: 'PLAIN'
|
|
branch-pattern: 'master'
|
|
- branch-compare-type: 'PLAIN'
|
|
branch-pattern: 'stable'
|
|
file-paths:
|
|
- compare-type: ANT
|
|
pattern: subdirectory/**
|
|
topics:
|
|
- compare-type: ANT
|
|
pattern: refactor-xy**
|
|
skip-vote:
|
|
successful: true
|
|
failed: true
|
|
unstable: true
|
|
notbuilt: true
|
|
silent: false
|
|
escape-quotes: false
|
|
no-name-and-email: false
|
|
dynamic-trigger-enabled: true
|
|
dynamic-trigger-url: http://myhost/mytrigger
|
|
trigger-for-unreviewed-patches: true
|
|
server-name: my-server
|