# gardener/recipes/chicken-egg-ci.toml — PR introduces CI step that fails on pre-existing code
#
# Trigger: New .woodpecker/*.yml in PR + lint/check step + failures on unchanged files
# Playbook: make step non-blocking, create per-file issues, create follow-up to remove bypass

name        = "chicken-egg-ci"
description = "PR introduces a CI pipeline/linting step that fails on pre-existing code"
priority    = 10

[trigger]
pr_files              = '\.woodpecker/.*\.yml$'
step_name             = '(?i)(lint|shellcheck|check)'
failures_on_unchanged = true

[[playbook]]
action      = "make-step-non-blocking"
description = "Make failing step non-blocking (|| true) in the PR"

[[playbook]]
action      = "lint-per-file"
description = "Create per-file fix issues for pre-existing violations (generic linter support)"

[[playbook]]
action      = "create-followup-remove-bypass"
description = "Create follow-up issue to remove || true once fixes land"
