47 lines
1.9 KiB
YAML
47 lines
1.9 KiB
YAML
# Example EDA playbook document (t2db.15 slice).
|
|
#
|
|
# Installed as an archipelago package, it applies without a restart. A
|
|
# malformed playbook, a mixed workflow/module action shape, or a `when`/args
|
|
# compile failure refuses the install: a partially-valid set never runs.
|
|
#
|
|
# This file is the workflow playbook shape: exactly one action, position:
|
|
# workflow. Action playbooks (one or more module actions) load and type-check
|
|
# but do not execute yet.
|
|
#
|
|
# A trigger matches on either axis, and both are checked when both are given:
|
|
#
|
|
# kind: the closed workintake routing vocabulary -- bug, feature,
|
|
# bootstrap, default. It is closed because a kind also addresses the
|
|
# task's NATS subject; anything else is rejected at load. Set it
|
|
# when you want the rule to follow archie's own classification.
|
|
# labels: any labels you like, including ones no kind recognises
|
|
# ("ops::security-review"). All of them must be present on the
|
|
# issue. This is the axis an instance defines for itself: it binds
|
|
# your own taxonomy to a workflow with no code change. See
|
|
# label-trigger.yaml. The `when` condition is a CEL
|
|
# expression over `event`.
|
|
#
|
|
# A matching playbook decides the task's workflow ahead of the kind/label
|
|
# binding files, and a workflow it names that is not defined parks the task
|
|
# rather than falling back. For a forge-discovered task, `event` carries:
|
|
#
|
|
# kind routing kind the labels produced (bug/feature/bootstrap/default)
|
|
# labels the issue's labels, as a list
|
|
# owner repo owner
|
|
# repo repo name
|
|
# number issue number
|
|
# title issue title
|
|
# body issue body
|
|
# source "forge" or "chat"
|
|
#
|
|
# Reading a field that is not in that set is an evaluation error, which the
|
|
# coordinator treats as the condition being false (the playbook is skipped).
|
|
|
|
trigger:
|
|
kind: bug
|
|
|
|
actions:
|
|
- position: workflow
|
|
workflow: tdd
|
|
when: '"regression" in event.labels'
|