Releases: palantir/policy-bot
v1.23.2
v1.23.1
v1.23.0
Add support for shared organization policies (#321)
Refactor configuration loading to use the go-githubapp/appconfig
package. This mostly adds support for shared organization policies (in the .github
repository by default), but should also make error messages more accurate.
It also changes the policy link in the details view to point to the resolved policy, instead of the local policy file.
Other Changes
- Update google/go-github to v38 (#326)
- Upgrade build dependencies
v1.22.1
v1.22.0
Add signature verification predicates (#285)
Policies can now use the has_valid_signatures
, has_valid_signatures_by
, and has_valid_signatures_by_key
to enable rules based on the GPG signatures of commits in the pull requests.
Add support for triage
and maintain
permissions (#294)
Policies can use the requires.permissions
option to specify the minimum permission a collaborator must have to approve a rule. This option replaces the existing admins
and write_collaborators
options, which are now deprecated.
As a result of this change, policies that still use the admins
and write_collaborators
options will behave slightly differently:
- Rules that set
write_collaborators: true
can also be approved by users withmaintain
andadmin
permissions - Rules that set
admins: true
and enable review requests will now request direct admins in addition members of admin teams
Other Changes
v1.21.4
v1.21.3
Avoid updating state on closed PRs (#270)
- Skips updating the status check for evaluations on pull requests that are not in an "open" state. This will avoid the situation where policy-bot attempts to update the status for a PR which has been closed/merged, causing errors or confusion if successful.
Other Changes
v1.21.2
Update status check on details page evaluation (#265)
- When the detail page is opened and evaluation is run the status check will now be updated. This resolves a class of issues where the triggered evaluation fails due to a temporary error, yet loading the details page results in a success message once the error is resolved (and the failed status check remains).
- Increased detail in logging around missing commits error message.
v1.21.1
v1.21.0
Add support for enforcing regex rules on PR Title (#256)
Adds functionality for disapproving pull requests which do not comply by defined title formatting requirements as mentioned in #244.
- A new predicate
title
is added for defining allowed (not_match
) and disallowed (match
) regex patterns on a pull request title. - The
disapproval
policy is extended to allow predicates just as individualapproval_rules
do. However, whereas an approval rule may only allow approvals subject to passing predicates, thedisapproval
policy will only allow disapprovals subject to its own predicates all failing. Passing predicates on thedisapproval
policy will trigger a default disapproval, just as failing predicates on an approval rule will implicitly approve (pass).
Add support for handling review comments (#257)
Adds support for handling review comments like regular comments, thus allowing users to approve or disapprove without switching back to the "Conversation" tab of the pull request whilst reviewing the changes. Fixes #51.