Skip to content

Releases: palantir/policy-bot

v1.30.0

11 Jul 17:07
efb7629
Compare
Choose a tag to compare

Add a server option to avoid loading pushed dates (#599)

In Github 2023-07-01, the Github.com V4 API no longer returns pushedDate for commits. Policy bot now supports an option do_not_load_commit_pushed_date to avoid loading data that is no longer returned.

See #598 for more details

Other Changes

  • Exclude policy-bot pages from search indexing (#588)
  • Update dependencies and build tools

v1.29.0

16 May 23:58
ab4bc76
Compare
Choose a tag to compare

Add support for SSH signatures (#504)

The has_valid_signatures and has_valid_signatures_by predicates now check the validity of SSH commit signatures. Contributed by @fpoussin.

Other Changes

  • Improve review dismissal behavior for policies where only some rules set invalidate_on_push to true (#577)
  • Update dependencies and build tools

Compatibility ⚠️

If you use Policy Bot with GitHub Enterprise, we now require GitHub Enterprise 3.7 or later due to the use of GraphQL queries that select SSH signature fields. Version v1.28.0 is the last release that supports GitHub Enterprise 3.6 and older.

v1.28.0

20 Apr 17:39
00420ac
Compare
Choose a tag to compare

Add support for merge queues (#554)

Policy Bot now responds to the webhook events used by GitHub merge queues. If the repository defines a policy, all pull requests in the merge queue are automatically approved. Contributed by @devinburnette.

Other Changes

  • Build distributions for linux/arm64 (#556)
  • Fix regression with status updates for comments and reviews that disapprove a pull request (#567)
  • Build with Go 1.20 (#540)
  • Update dependencies and build tools

v1.27.4

16 Feb 23:33
41da81c
Compare
Choose a tag to compare

Other Changes

  • Support setting logging configuration with environment variables (#523)
  • Hide skipped rules in the details UI by default (#536 by @kmark)
  • Update dependencies and build tools

Full Changelog: v1.27.3...v1.27.4

v1.27.3

05 Dec 21:38
2cbbcd4
Compare
Choose a tag to compare

Other Changes

  • Increase maximum retry delay when loading commit pushed dates (#509)
  • Update dependencies

Full Changelog: v1.27.2...v1.27.3

v1.27.2

01 Dec 21:59
d7f49ba
Compare
Choose a tag to compare

Other Changes

  • Retry commit loading when pushed dates are missing, fixing errors for large merge commits (#500)
  • Update dependencies and build tools

Full Changelog: v1.27.1...v1.27.2

v1.27.1

08 Nov 23:56
982c90f
Compare
Choose a tag to compare

Other Changes

  • Skip review dismissal for reviews that do not match comment patterns (#485 by @devinburnette)
  • Include rule approval methods in details view (#485 by @devinburnette)
  • Improve formatting of required approvals in details view (#494)
  • Fix pushed date loading for PRs with large merge commits (#493)
  • Upgrade dependencies and build tooling

Full Changelog: v1.27.0...v1.27.1

v1.27.0

30 Sep 17:53
2d3f595
Compare
Choose a tag to compare

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

v1.26.0

06 Jul 22:05
30d816f
Compare
Choose a tag to compare

Fix issue with method defaults (#447)

Matched approval method defaults to documentation specifications so that when 'github_review' or 'comments' is specified, it doesn't interfere with the default value of the non-specified attribute.

Other Changes

Dependency Upgrades

Full Changelog: v1.25.0...v1.26.0

v1.25.0

02 May 20:48
1eb0e44
Compare
Choose a tag to compare

Display details about predicates and approval requirements in the UI (#407, #413, #414)

Each rule in the UI now has an expandable "Details" section that includes information about why a rule was selected or skipped as well as details about the users, teams, or organizations required to approve the rule. This makes it easier to understand why certain approval is required and who needs to approve without having to find and read the policy YAML file. Contributed by @yiweny.

Other Changes

  • When debug logging is enabled, include GraphQL query bodies in GitHub request logs (#391)
  • Build with Go 1.18.1 (#386, #409)
  • Fix typo in rule description (#406)
  • Upgrade dependencies and build tooling

Full Changelog: v1.24.0...v1.25.0