Skip to content

Commit

Permalink
add the missing method filed for disapproval (#885)
Browse files Browse the repository at this point in the history
  • Loading branch information
admin822 authored Dec 10, 2024
1 parent 9143443 commit 182a8ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/policy-examples/team-with-disapproval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ policy:

disapproval:
requires:
organization:
organizations:
- "palantir"

approval_rules:
Expand Down
2 changes: 1 addition & 1 deletion policy/disapproval/disapprove.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (p *Policy) Evaluate(ctx context.Context, prctx pull.Context) (res common.R
Count: 1,
Actors: p.Requires.Actors,
}

res.Methods = p.Options.GetRevokeMethods()
var predicateResults []*common.PredicateResult

for _, p := range p.Predicates.Predicates() {
Expand Down

0 comments on commit 182a8ba

Please sign in to comment.