Skip to content

Commit 8a2ec50

Browse files
author
Howon Lee
committed
Merge branch 'main' into howon/utg
2 parents 0bbfe70 + 43b2d89 commit 8a2ec50

File tree

6 files changed

+185
-15
lines changed

6 files changed

+185
-15
lines changed

docs/getting-started/adding-organizations.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ This will grant CodeRabbit access to the selected organization, allowing it to:
2121
- Access user email addresses (read-only)
2222

2323
> Note: Organizations control which applications are allowed to access their private data. You may need organization admin approval to complete this process.
24+
25+
## What's next {#whats-next}
26+
27+
- [Manage your subscription](/getting-started/subscription-management)

docs/getting-started/subscription-management.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,7 @@ To modify the number of seats in your subscription:
5757
![Changing your plan](../../static/img/getting-started/edit-subscription.png)
5858

5959
![Changing your plan](../../static/img/getting-started/change-seats.png)
60+
61+
## What's next {#whats-next}
62+
63+
- [Control administrative access](/guides/roles)

docs/guides/roles.md

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
---
2+
title: Control administrative access
3+
description: Using the role-based authorization features of CodeRabbit
4+
---
5+
6+
You can control which CodeRabbit
7+
administrative features are available to your organization's user accounts by
8+
assigning and updating account roles.
9+
10+
## Overview of CodeRabbit roles {#overview}
11+
12+
Every CodeRabbit account has exactly one role for each organization
13+
that account is associated with.
14+
For example, if you belong to two GitHub-based organizations that use
15+
CodeRabbit, then you have one CodeRabbit role set for each of those two
16+
organizations.
17+
18+
CodeRabbit roles determine your ability to read or change various
19+
billing, account management, and other administrative functions related to
20+
an organization. The roles are as follows:
21+
22+
- **Admin**: allows full read/write access to all CodeRabbit administrative features.
23+
- **Member**: allows read-only access to a limited set of administrative settings. This role
24+
is appropriate for most developers in an organization.
25+
- **Billing Admin**: allows read/write access to features specific
26+
to a subscription and billing management, and limited access to other administrative features.
27+
28+
CodeRabbit users with the **Admin** role can modify the roles of other users in the
29+
organization.
30+
31+
For a complete list of the administrative functions available to each role, see
32+
[Role permissions](#permissions).
33+
34+
### CodeRabbit roles and Git platform roles {#and-upstream}
35+
36+
Modifying an account's CodeRabbit role doesn't have any "upstream"
37+
effect on that account's role or permissions in your organization's Git platform.
38+
Similarly, changes to an account's role on your organization's Git platform don't
39+
affect that account's CodeRabbit role.
40+
41+
For example, if you have CodeRabbit integrated with a GitHub organization, and you change an account's CodeRabbit role from **Member** to **Admin**, then that account's
42+
permission or ownership level with your GitHub organization doesn't change as a result.
43+
44+
### CodeRabbit roles and developer features {#and-features}
45+
46+
CodeRabbit roles affect only access to administrative features. Roles have no effect on using CodeRabbit developer features, such as automated code reviews.
47+
48+
For example, if an organization has a Pro-tier
49+
CodeRabbit account, then any user account with a seat assigned to it can use Pro-tier features with the organization's private repositories, regardless of that account's role.
50+
51+
For more information on seat and subscription management, see [Manage your subscription](/getting-started/subscription-management).
52+
53+
## Default roles {#defaults}
54+
55+
CodeRabbit assigns every user account in your organization a default role,
56+
using the following metrics:
57+
58+
- If a user has an ownership-level role with the Git platform organization—for example,
59+
**Admin** on GitHub, or **Owner** on Bitbucket—then that user receives the default
60+
CodeRabbit role of **Admin**.
61+
- Otherwise, the user receives the **Member** role by default.
62+
63+
You can update a user's role from its default setting by following the steps detailed in the next section. This requires that your own account
64+
has an **Admin** role with the organization.
65+
66+
CodeRabbit applies these defaults only when initially setting up for an
67+
account within an organization. Subsequent "upstream" role changes don't affect
68+
an account's CodeRabbit role.
69+
70+
## View or set roles {#how-to}
71+
72+
You can view and set roles from the CodeRabbit dashboard, as detailed in the
73+
following sections.
74+
75+
### View roles {#view-roles}
76+
77+
To view a list of your organization's role assignments, follow these steps:
78+
79+
1. Go to the [CodeRabbit dashboard](https://app.coderabbit.ai/settings/repositories).
80+
1. At the top of the sidebar, select the organization whose user roles you want to view.
81+
1. On the sidebar, click **Subscription**.
82+
83+
This displays a table of all of the CodeRabbit **Admin** and **Member** accounts associated with the selected
84+
organization. In this table, the **Role** column displays the CodeRabbit role for
85+
each account.
86+
87+
To view a list of accounts with the **Billing Admin** role, click the **Billing Admins** tab located above the table of user accounts.
88+
89+
### Set roles {#set-roles}
90+
91+
:::note
92+
To modify users' CodeRabbit accounts, your own account must have the **Admin** role within your organization.
93+
:::
94+
95+
To change a user account's CodeRabbit role, follow these steps:
96+
97+
1. Go to your organization's list of user accounts, as detailed in the previous section.
98+
If you have the **Admin** role within this organization, then the **Role** column in the user accounts table contains selectable menus.
99+
1. Click the menu in the user's **Role** column, and select the appropriate role from
100+
the list.
101+
102+
The only roles you can assign through this method are **Admin** and **Member**.
103+
You can't grant the **Billing Admin** role to an existing user account. To add an account with the **Billing Admin** role, see the next section.
104+
105+
### Add billing admin accounts {#billing}
106+
107+
:::note
108+
Billing Admin users don't require CodeRabbit seat licenses. You can add Billing Admin users regardless of how many seat licenses you have available.
109+
:::
110+
111+
To add a CodeRabbit user account with the **Billing Admin** role, follow these steps:
112+
113+
1. Go to your organization's list of user accounts, as detailed in [View roles](#view-roles).
114+
1. Click **Invite Billing Admin**.
115+
1. Enter the name and email address of the billing administrator who you want to invite to the organization.
116+
117+
This sends an email to the address that you specified. After the recipient completes the process of joining your organization in CodeRabbit, then their record appears in the user accounts list, under the **Billing Admins** tab.
118+
119+
## Role permissions {#permissions}
120+
121+
The following table lists the CodeRabbit administrative functionality
122+
available to each of the CodeRabbit roles.
123+
124+
| Resource | Admin | Member | Billing Admin |
125+
| ----------------------- | ---------- | --------- | ------------- |
126+
| Learning Resources | Read/Write | Read-only | No access |
127+
| Metrics/Dashboard | Read/Write | No access | No access |
128+
| Reports | Read/Write | Read-only | No access |
129+
| Integrations | Read/Write | Read-only | No access |
130+
| Repository Settings | Read/Write | Read-only | No access |
131+
| Organization Settings | Read/Write | Read-only | No access |
132+
| User Management | Read/Write | Read-only | Read-only |
133+
| Subscription Management | Read/Write | Read-only | Read/Write |
134+
| Billing Management | Read/Write | No access | Read/Write |
135+
136+
## What's next {#whats-next}
137+
138+
- [Manage your subscription](/getting-started/subscription-management)

docs/guides/setup-best-practices.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,23 +64,21 @@ works with your individual repositories.
6464

6565
CodeRabbit gives you two ways to configure how it works with your team's repositories:
6666

67-
- The [Repositories](https://app.coderabbit.ai/settings/repositories) page of the
68-
Dashboard
67+
- The **Organization Settings** and **Repositories** pages of [the
68+
CodeRabbit web interface](https://app.coderabbit.ai/login)
6969
- A [`coderabbit.yaml` file](/getting-started/configure-coderabbit/) in your repository
7070

71-
The graphical UI of the Repositories page lets you set up your per-repository
72-
preferences more rapidly, and can help you get familiar with CodeRabbit configuration options.
71+
The web interface lets you set up your organization's code review
72+
preferences rapidly, and can help you get familiar with CodeRabbit configuration options.
7373

74-
Once you are ready to fine-tune the ways that CodeRabbit works with your repositories,
75-
we recommend adding a `coderabbit.yaml` file to each one. This file has several
76-
advantages over using only the Dashboard:
74+
We recommend adding a `coderabbit.yaml` file to repositories, as well. Using this file has several advantages over using only the web interface:
7775

78-
- It applies version control to your repository's CodeRabbit settings.
76+
- It applies version control to your repository's CodeRabbit settings, letting you track changes, view configuration history, and revert to previous configurations as needed.
7977
- During code reviews, CodeRabbit loads the file along with rest of your repository. This means that you can include setting changes as part of a pull request, and CodeRabbit both analyzes and applies these settings during its review.
8078
- The file makes the repository's CodeRabbit settings transparent to all of the repository's contributors.
8179

8280
Repository-level settings defined by a `coderabbit.yaml` take precedence over the
83-
settings defined for that repository in the Dashboard.
81+
settings defined for that repository or for your organization using the CodeRabbit web interface.
8482

8583
For more information, see [Add a configuration file](/getting-started/configure-coderabbit/).
8684

@@ -89,14 +87,14 @@ For more information, see [Add a configuration file](/getting-started/configure-
8987
If your repository contains a lot of data or other content that CodeRabbit
9088
doesn't need for code review context, then you can include _path filters_ in
9189
your repository configuration. For example, a filter of `!dist/**` tells CodeRabbit
92-
to disregard everything in your reposistory's top-level `dist` directory when
90+
to disregard everything in your repository's top-level `dist` directory when
9391
preparing a code review.
9492

9593
Reducing the number of contextual files that CodeRabbit needs to read and analyze
9694
when preparing a code review can help make its code reviews faster.
9795

9896
You can define path filters using the CodeRabbit
99-
web interface, or with [a configuration file](/getting-started/configure-coderabbit/).
97+
web interface, or with [a `coderabbit.yaml` file](/getting-started/configure-coderabbit/).
10098

10199
### Trust the defaults {#defaults}
102100

@@ -108,7 +106,7 @@ CodeRabbit gives you control over a number of its core code-review features, let
108106
tools](/tools) that are available to it during code reviews. This helps CodeRabbit keep its reviews broad and flexible.
109107
- **Knowledge base**: CodeRabbit [knowledge base](/integrations/knowledge-base/) features, including learnings and issue tracking, can require data retention. If your organization needs to meet stricter data-retention policies, then you can opt out of using these features.
110108

111-
You can configure your use of the above features using the CodeRabbit web interface, or [a configuration file](/getting-started/configure-coderabbit/).
109+
You can configure your use of the above features using the CodeRabbit web interface, or [a `coderabbit.yaml` file](/getting-started/configure-coderabbit/).
112110

113111
### Write specific CI/CD error messages {#pipeline}
114112

sidebars.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ const sidebars: SidebarsConfig = {
6868
},
6969
],
7070
},
71+
{
72+
type: "category",
73+
collapsed: true,
74+
label: "Manage your account",
75+
items: ["getting-started/subscription-management", "guides/roles"],
76+
},
7177
{
7278
type: "category",
7379
collapsed: true,
@@ -77,6 +83,7 @@ const sidebars: SidebarsConfig = {
7783
"integrations/knowledge-base",
7884
"guides/review-instructions",
7985
"tools/tools",
86+
"guides/roles",
8087
],
8188
},
8289
{
@@ -198,7 +205,6 @@ const sidebars: SidebarsConfig = {
198205
label: "Resources",
199206
items: [
200207
"getting-started/support",
201-
"getting-started/subscription-management",
202208
"overview/why-coderabbit",
203209
"faq",
204210
"early-access",

static/schema/schema.v2.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,17 @@
9595
"de-LU",
9696
"fr-FR",
9797
"bg-BG",
98-
"bg"
98+
"bg",
99+
"he-IL",
100+
"he",
101+
"hi-IN",
102+
"hi",
103+
"vi-VN",
104+
"vi",
105+
"th-TH",
106+
"th",
107+
"bn-BD",
108+
"bn"
99109
],
100110
"default": "en-US",
101111
"description": "Set the language for reviews by using the corresponding ISO language code."
@@ -1196,7 +1206,17 @@
11961206
"de-LU",
11971207
"fr-FR",
11981208
"bg-BG",
1199-
"bg"
1209+
"bg",
1210+
"he-IL",
1211+
"he",
1212+
"hi-IN",
1213+
"hi",
1214+
"vi-VN",
1215+
"vi",
1216+
"th-TH",
1217+
"th",
1218+
"bn-BD",
1219+
"bn"
12001220
],
12011221
"default": "en-US",
12021222
"description": "Set the language for docstrings by using the corresponding ISO language code."

0 commit comments

Comments
 (0)