Skip to content

v1.27.0

Compare
Choose a tag to compare
@bluekeyes bluekeyes released this 30 Sep 17:53
· 299 commits to develop since this release
2d3f595

Add option to allow non-author contributors (#457)

The new allow_non_author_contributor option allows approvals from contributors who are not the PR author. This avoids confusing behavior with the existing options, where allow_contributor also allows self-approval by the PR author. Contributed by @devinburnette.

Add repository predicate (#461)

The repository predicate allows enabling rules based on the repository that contains the pull request. This makes it easier to share policies between multiple repositories that may have slightly different rules. Contributed by @devinburnette.

Add option to use PR bodies for approval (#454)

The body_patterns approval method looks for matches in the pull request body, counting them as approvals from the PR author. In situations where self-approval is required, it may be more convenient to provide this when opening the PR instead of as a separate comment. Body approvals respect the existing ignore_edited_comments option. Contributed by @agirlnamedsophia.

Dismiss stale reviews (#463)

Policy Bot now attempts to dismiss stale GitHub reviews when they no longer apply to any rules. This can happen in several situations:

  • invalidate_on_push is true and a new commit is pushed
  • ignore_edited_comments is true and a review was edited
  • github_review_comment_patterns is set and a review does not match any of the patterns

Contributed by @devinburnette.

Other Changes

  • Fix detection of edited reviews and comments (#459 by @devinburnette)
  • Build with Go 1.19 (#478)
  • Upgrade dependencies and build tooling

Full Changelog: v1.26.0...v1.27.0