Triggers
Triggers define when a skill runs. Each skill can have one or more triggers. Triggers can override output settings and the main agent model.
Fields
Section titled “Fields”typepull_request,local, orschedule.actions- Event actions for
pull_requesttriggers. draft- Draft state for
pull_requesttriggers. Setfalseto run only on non-draft PRs. labels- Pull request labels that can also match the trigger. Use with
draft = falseto let a label opt draft PRs into a run. failOn- Override failure threshold.
reportOn- Override reporting threshold.
maxFindings- Override maximum findings.
reportOnSuccess- Override report-on-success behavior.
requestChanges- Override
REQUEST_CHANGESbehavior. failCheck- Override check failure behavior.
model- Override the main agent model for this trigger. See Models and Runtimes.
maxTurns- Override max agentic turns.
Pull Request Actions
Section titled “Pull Request Actions”| Action | Meaning |
|---|---|
opened | PR created. |
synchronize | New commits pushed. |
reopened | PR reopened. |
closed | PR closed or merged. |
[[skills]]name = "security-review"
[[skills.triggers]]type = "pull_request"actions = ["opened", "synchronize"]draft = falseLabel Opt-In
Section titled “Label Opt-In”Add the labeled pull request action in both GitHub Actions and
warden.toml when labels should trigger Warden.
on: pull_request: types: [opened, synchronize, reopened, labeled][[skills]]name = "security-review"
[[skills.triggers]]type = "pull_request"actions = ["opened", "synchronize", "reopened", "labeled"]draft = falselabels = ["Warden"]This runs on non-draft PRs as usual. Draft PRs stay quiet unless the
Warden label is present.
Schedule Triggers
Section titled “Schedule Triggers”Schedule triggers run on cron workflows instead of PR events. They require
paths so Warden knows which files to scan.
issueTitle- Title for the tracking issue. Default:
Warden: {name}. createFixPR- Create a PR with fixes when available. Default:
false. fixBranchPrefix- Branch prefix for fix PRs. Default:
warden-fix.
[[skills]]name = "security-review"paths = ["src/**/*.ts"]
[[skills.triggers]]type = "schedule"createFixPR = true