Releases: palantir/policy-bot
1.12.5
Add policy validation endpoint (#142)
The new /api/validate
endpoint allows users to upload policy files for validation prior to committing them to a repository. Please see the README for more details.
Add has_successful_status
predicate (#141)
The has_successful_status
predicate makes approval rules conditional on specific status checks passing. This can be useful to change approval based on CI checks or other dynamic information that may change between pull requests.
Other Changes
- Fix team lookups for reviewer assignment (#143)
1.12.4
1.12.3
Add option for requesting all possible reviewers (#130)
Users can now modify how to request users by setting the option "mode". By default policy-bot will request random users. However, when set to "all-users", policy-bot will request everyone who may approval.
Other Changes
1.12.2
Improved handling for requesting reviewers (#127)
Reduce the number of events that trigger the request reviewer flow.
Check for assigned reviewers just before requesting (#126)
Previously we only checked once, performed lookups, and possibly requested reviewers after a human had already done so. Instead, we can check a second time just before making the last API call.
1.12.1
1.12.0
1.11.0
Add only_has_contributors_in
predicate (#114)
The new only_has_contributors_in
predicate is similar to has_contributor_in
, but applies to all contributors on a pull request, including the pull request author. This is useful to enable special approval conditions when a mix of trusted users and/or automated bots have contributed to a pull request.
Add ability to read some configuration values from the environment (#113)
All GitHub options and certain sensitive Policy Bot options can be defined or overridden by environment variables. The exact properties and environment variable names are described in the sample configuration file.
Fix caching when a pull request contains no changed files (#105)
Previously, if a pull request had no files, the file cache for a request was never initialized. When a policy has many file-based rules, this can lead to a huge number of unnecessary API requests and delay evaluation.
Other Changes
1.10.1
Order rules by status on the details page (#96)
When viewing the details of a pull requests, rules are now ordered by status, with approved rules at the top, then pending rules, and finally skipped rules. This makes it easier to see which rules are still required when the policy contains many different rules.
Other Changes
1.10.0
Add client caching for GitHub REST requests (#91)
GitHub responses to v3 REST API requests are now cached and requests are made conditionally when possible. This reduces the request load Policy Bot places on GitHub and avoids rate limiting. Cached requests are always re-validated with GitHub to avoid working with stale data. The maximum size of the cache is also configurable by administrators.
Other Changes
- Increase the number of retries when the
pushedDate
of a commit is not loaded (#92)