You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[plan] Add oneOf constraints for mutually exclusive field pairs #7576
Add JSON Schema oneOf constraints to prevent mutually exclusive fields from being specified together.
Context
Currently, the schema allows users to specify both branches and branches-ignore, or both paths and paths-ignore, which the compiler correctly rejects. Users only discover this error at compile time instead of during editing.
Field Pairs to Constrain
branches vs branches-ignore (in on.push and on.pull_request)
paths vs paths-ignore (in on.push and on.pull_request)
slash_command vs label events (in on)
command vs label events (in on)
MCP command vs container (in tools.(tool))
Approach
For each pair, add a oneOf constraint that ensures only one can be present:
Activity