Files
zuul/tests/fixtures/layouts/github-schema.yaml
Simon Westphahl 4680c58a27 Allow rerequested action for Github triggers
The 'requested' action is deprecated in favor of 'rerequested', but the
new schema did not permit the new action name.

Change-Id: I047d2676f44151e7569d38bc1df3d26ffee83202
2024-03-14 14:48:05 +01:00

55 lines
1.4 KiB
YAML

- pipeline:
name: check
manager: independent
trigger:
github:
# Valid
- event: pull_request
action: comment
comment: test me
# Valid
- event: pull_request
action:
- opened
- closed
# Valid
- event: pull_request
action: labeled
label: foobar
# Valid
- event: pull_request
action: unlabeled
label: barfoo
# Valid
- event: check_run
action: rerequested
# "extra keys not allowed @ data['check']"
- event: pull_request
action:
- opened
- closed
branch: ^master$
check: foo
# "extra keys not allowed @ data['branch']"
- event: check_run
branch: ^master$
# "as a list is deprecated"
- event:
- pull_request
- check_run
# "'require-status' trigger attribute"
# "extra keys not allowed @ data['require-status']"
- event: check_run
require-status: foo
# "'unlabel' trigger attribute"
# "extra keys not allowed @ data['unlabel']"
- event: check_run
unlabel: foo
# "Use 'rerequested' instead"
- event: check_run
action: requested
success:
github: {}
failure:
github: {}