What differentiates the app from the native Code Owners feature of Bitbucket Cloud?
As of March 2024, Bitbucket Cloud includes a native Code Owners feature.
The following table aims at providing users with a clear understanding of the feature set available for the native Bitbucket Code Owners feature and our Code Owners app:Β
Feature | ||
---|---|---|
| β π /features/FeatureCode.java @developer | β /features/FeatureCode.java @developer |
| β π *.css @developer | β *.css @developer |
| β π frontend/* @frontend-team # no mandatory review for tests !frontend/*/tests/** | β |
| β π src/{main/**,test/**} @devs **.{ts,js} @web-devs | β |
| β π
NOT supported:
foo.py @"Michael Foo" | β foo.py individual@example.com bar.py @individual-username baz.py @workspace-slug/group-name |
| β π src/** @@developers
@@@<newgroupname> <members> | β
backend: contributors: - individual1@example.com - individual2@example.com |
| β π CODEOWNERS.toplevel.assignment_routing random 2 | β *.scala @workspace-slug/reviewer-group:random(2) |
| β | β *.scala @workspace-slug/reviewer-group:least_busy(2) |
| β π # At least a senior and two code owners in total must approve. OverallCheck(2) Check(@@Seniors >= 1) | β |
| @@@FallbackOwners @paul @monica | β |
| β π | β |
| β π | β |
I encounter rate limits while using the app. How can avoid this from happening?
Use separate user account for installing the app, so that the calls to Bitbucket API are isolated for Code Owners app and independent to other installed apps.
If using same user account to install multiple apps, you risk to hit API rate limit, as the calls the installed apps make count towards the same, shared limit.
This user must be able to:
access the repo,
add reviewers and comments to PRs and
access the workspace member endpoint: GET /2.0/workspaces/{workspace}/members , to resolve the Code Owner identifiers.