Billy Keyes

Results 209 comments of Billy Keyes

Policy Bot will [dismiss or disqualify approvals after push](https://github.com/palantir/policy-bot?tab=readme-ov-file#invalidating-approval-on-push-) for rules that have `invalidate_on_push: true`. This is not enabled by default, so you should only see this behavior if it...

Thanks for the update, I'm glad you found a solution for your issue. That said, I'm kind of confused about why it worked. Policy Bot does not define an event...

Policy Bot reads the policy file from the target branch of a pull request. If you have two completely independent branches, you can add a different policy to each branch....

Yes, if any condition in the predicate section (`if` block) is not satisfied, the rule will show as skipped. However, as your screenshot shows, it's an error if _all_ of...

In your example, the `ignore` patterns are not doing anything. The `changed_files` rule only considers changes in files matching the patterns in the `paths` key and ignores all other changes...

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: ```yaml policy:...

I've also thought about some kind of shared cache, but have so far been avoiding it, mostly to keep things as simple as possible. While an optional remote cache for...

Historically, we were opposed to adding `not` because we thought it would make policies harder to understand and we believed it was possible to write most policies in the positive...

If I understand the behavior your are looking for, this is not directly possible today. We usually use one of the following patterns to implement logic like this. When the...

PRs for new predicates are generally welcome and these seem like reasonable things to add. Can you share an example of a policy you are trying to implement where these...