Skip to content

Releases: palantir/policy-bot

1.4.0

13 Dec 23:05
c137b46
Compare
Choose a tag to compare

Use GraphQL for some API operations (#37)

To access additional information, policy-bot now uses GitHub's v4 GraphQL API. As a result, the v4_api_url configuration option is required.

Add the ability to ignore update merges (#39)

If the ignore_update_merges option is true, any merge commit that was (1) created via the web UI or API and (2) includes changes from the target branch is ignored for the purpose of the computing contributors and evaluating the invalidate_on_push option. This means you can use the "Update branch" button in the GitHub UI without invalidating existing approval. See the README for more information about this feature.

Fixes

  • Use push time instead of commit time when evaluating the invalidate_on_push option (#37)
  • Correctly update statuses after a GitHub review is dismissed (#38)

Other Changes

  • Show the total number of required reviews in the details for a rule (#36)
  • Include a link to the policy file from the details UI (#40)

1.3.2

27 Nov 00:05
065aab8
Compare
Choose a tag to compare

Prevent users from approving a change multiple times (#35)

Prior to this, a single user could satisfy a policy that required more than one approval. Now, only the most recent event from each user is considered when computing approval.

Other Changes

  • Make Datadog configuration optional (#26)
  • Improve README

1.3.1

19 Oct 13:02
79f5c6e
Compare
Choose a tag to compare

Use only branch name in status check context (#23)

The new status check contexts added in 1.3.0 used the full branch label (which included the organization, similar to what it looks like when merging in a fork). Now, only use the branch name as originally intended.

1.3.0

19 Oct 03:16
1505863
Compare
Choose a tag to compare

Improved Status Check Context

This release is mainly focused on modifying the context value used for the status check. Originally it was the same value for all PRs. To improve policy-bot's ability to protect branches, we've changed the default behavior to produce a context using the following template: <configured-context>: <target-branch-of-pr>. For example, if the PR is targeting the master branch, the context would be: policy-bot: master.

You can still use the legacy context by turning on the config flag post_insecure_status_checks. For more information, see the godoc.

Other Changes

  • Publish snapshot Docker images (#6)
  • Improve README

1.2.0

11 Oct 21:51
ad282d0
Compare
Choose a tag to compare

Initial open source release! 🎉