Testing Watchflow rules in feature branches #12
Unanswered
dkargatzis
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion follows an observation by @dimeloper in Issue #9, where he highlighted the lack of a safe and traceable workflow for testing
.watchflow/rules.yaml
before pushing to production branches.We observed a critical limitation:
We want to define a testing workflow that supports iterative development of governance logic without introducing production risk.
Current workflow friction
main
Potential solutions
Option 1:
rules-test.yaml
+ Draft PRsBehavior:
.watchflow/rules-test.yaml
in the branchmain
's.watchflow/rules.yaml
rules-test.yaml
still existsSecurity: Test rules cannot override production rules in ready PRs
Pros:
Cons:
Example workflow:
.watchflow/rules-test.yaml
Option 2: local CLI rule simulator
Command:
Purpose: Allows local testing of rules against any live PR (via GitHub API)
Pros:
Cons:
Have thoughts? Drop them below. We're looking for an approach that will help your team iterate on governance rules without fear of breaking production?
Beta Was this translation helpful? Give feedback.
All reactions