feat: add conditional rule logic via <code>when:</code> block (issue #73, PR 1/3)#75
Conversation
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
feat: add conditional rule logic via
when:block (issue #73, PR 1/3)Part of #73
Summary
Rules in
.watchflow/rules.yamlcan now declare awhen:block that gates evaluation. If the predicates don't match, the rule is skipped before any validator or LLM work runs (skip reason is logged).Supported Predicates (v1)
All optional. Multiple predicates combine with AND.
Expression parser (
and/or/ comparisons) and extended predicates (risk.level,contributor.role, …) are deferred to PRs 2/3 and 3/3.