Policy Bot Versions Save

A GitHub App that enforces approval policies on pull requests

v1.27.2

1 year ago

Other Changes

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

Full Changelog: https://github.com/palantir/policy-bot/compare/v1.27.1...v1.27.2

v1.27.1

1 year ago

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: https://github.com/palantir/policy-bot/compare/v1.27.0...v1.27.1

v1.27.0

1 year ago

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: https://github.com/palantir/policy-bot/compare/v1.26.0...v1.27.0

v1.26.0

1 year ago

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: https://github.com/palantir/policy-bot/compare/v1.25.0...v1.26.0

v1.25.0

2 years ago

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: https://github.com/palantir/policy-bot/compare/v1.24.0...v1.25.0

v1.24.0

2 years ago

Add option to ignore edited comments (#357)

Set the ignore_edited_comments option on a rule to exclude all modified comments from influencing the rule state. This may be useful in environments with certain compliance requirements. Contributed by @devinburnette.

Add comment matching support for review comments (#361)

Set the github_review_comment_patterns approval method to require that reviews contain specific text in addition to having the correct type. This allows rules to distinguish between approving reviews that fulfill different purposes. Contributed by @devinburnette.

Post a successful status check on app installation (#370)

Policy Bot now posts a successful status check on the default branch of a repository when installed. This makes it possible to immediately require the policy-bot status check in the protected branch UI. Contributed by @devinburnette.

Other Changes

  • Support environment variables for additional server configuration options (#364)
  • Fix evaluation triggering when using the comment_patterns option (#365)
  • Fix spelling mistakes (#358)
  • Build with Go 1.17 (#374)
  • Fix possible panic when handling issue_comment events (#379)
  • Upgrade dependencies and build tooling

Full Changelog: https://github.com/palantir/policy-bot/compare/v1.23.3...v1.24.0

v1.23.3

2 years ago

Other Changes

  • Fix panic when processing commits with unverified or invalid signatures (#345)
  • Fix detection of PR open/closed state (#350)
  • Update google/go-github to v40 (#341)

v1.23.2

2 years ago

Other Changes

  • Update validate endpoint to check local and remote policies (#329)

v1.23.1

2 years ago

Other Changes

  • Support remote references in default config (updated go-githubapp to v0.9.1) (#328)

v1.23.0

2 years ago

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