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
Could you share an example of the policy you'd write if this predicate existed? I think it should be possible to implement what you described with existing features:
policy:
approval:
- dev changes are approved by dev
- dev changes are approved by admin
- admin changes are approved by adminapproval_rules:
- name: dev changes are approved by devif:
has_author_in:
teams: ["org/dev-team"]requires:
count: 1teams: ["org/dev-team"]
- name: dev changes are approved by adminif:
has_author_in:
teams: ["org/dev-team"]requires:
count: 1teams: ["org/admin-team"]
- name: admin changes are approved by adminif:
has_author_in:
teams: ["org/admin-team"]requires:
count: 1teams: ["org/admin-team"]
Can we have something like
not_has_author_in
so rule is not needed as long as author not in list I provide.the case I have :
if pr is by dev team, so need two approval one from dev team and one from admin team, but if author is admin , we need admin team approval only.
The text was updated successfully, but these errors were encountered: