Add file creation and deletion predicates (#935, #938)
The file_added, file_not_added, file_deleted, and file_not_deleted predicates allow writing policies that change when the PR introduces or removes specific files. Contributed by @dblinkhorn.
Add server option for strict review dismissals (#942)
By default, Policy Bot only dismisses a review if it no longer satisfies all rules. When rules have different invalidate_on_push settings, this means a review may remain because it still satisfies one rule while no longer satisfying another. If the new strict_review_dismissal option is enabled in the server configuration, Policy Bot will dismiss a review if it no longer satisfies any rule. This may be more intuitive for users, depending on how policies are constructed. Contributed by @devinburnette.
Other Changes
- Support marshaling Policy Bot configuration types to YAML (#796, by @iainlane)
Note that these Go types are not part of Policy Bot's public API and may change in any version - Add debug logging for
check_runevents (#966) - Minor dependency and build tool updates
Full Changelog: v1.36.5...v1.37.0