Skip to main content
Skip table of contents

Release Notes v8.4

We released DevSensei | Code Owners for Bitbucket 8.4 on 🎉

Download on the Atlassian Marketplace for Data Center

Features

🆕 Merge Checks for DevSensei Workflows

You can now configure a new merge-checks section to define extra rules, enforced while workflows are active, to protect your team's repository from merging invalid PRs.

You can write custom checks, that use the exact same conditions syntax and attributes as the workflow conditions. For example you can have a check to enforce branch naming conventions:

YAML
workflows:
- name: apply branch conventions
  conditions:
  merge-checks:
    - title: only allow specific branch names
      check:
        - or:
          - and:
            - destination=main
            - source~=develop/*
          - and:
            - destination~=release/*
            - source=main

To start, we are also introducing two alias checks that are shorthands for some custom conditions:

  • minimum-approvals

  • no-open-tasks

Compared to Bitbucket's own builtin merge checks, you can use DevSensei workflow conditions to customise exactly when checks should prevent a merge. For example here we can apply a branch filter to the minimum approvals check.

YAML
workflows:
- name: stricter minimum approvals
  conditions:
    - destination = 'main'
  merge-checks:
    - minimum-approvals: 2

🆕 DevSensei Attributes and Operators

In the conditions and merge-checks sections, you can now inspect additional attributes: open-tasks (the set of open tasks within a PR), and approved-by (the set of user slugs that approved the PR). These join the previously available attributes.

🆕 Revised syntax for expressions in conditions

The conditions parser becomes more flexible in order to support the new attributes.

You can now use the new function count(arg) that counts the number of elements within its argument. You can also compare number values with new operators >=, <, >, and <=. The existing operators = and != now also work with numbers.

The parser now also supports more kinds of values:

  • boolean literals true, false

  • integer literals -7, 0, 23

  • string literals 'develop/*' (quotes not necessary if there are no spaces)

  • whitespace around operators

Changelog

🐛 Bugfixes 8.4.0

  • Ensure that when the same reviewer is added by multiple Code Owners rules that it only counts once, preventing some warnings.

  • Fix a bug where the setting toggle for DevSensei workflows might not appear in the repository settings.

Previous: Release Notes v8.3

Do you have any questions, suggestions, or problems?

Let us know. We’re glad to help!

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.