You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/bitbucket-cloud.md
+33-41Lines changed: 33 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -13,28 +13,20 @@ CodeRabbit integrates with Bitbucket Cloud to enhance code review and collaborat
13
13
14
14
This guide will assist you in effectively integrating CodeRabbit with Bitbucket Cloud.
15
15
16
-
##ConfigureApp Password
16
+
##ConfigureApi Token
17
17
18
-
To enable CodeRabbit to interact with your Bitbucket repositories, anapp password is required. This token grants the necessary permissions for interacting with the Merge Requests and Discussions APIs.
18
+
To enable CodeRabbit to interact with your Bitbucket repositories, anapi token is required. This token grants the necessary permissions for interacting with the Merge Requests and Discussions APIs.
19
19
20
20
1. Create a new Bitbucket account specifically for CodeRabbit and treat it as a service account.
21
21
2. Name the account "CodeRabbit".
22
22
3. If your Bitbucket workspace requires two-step verification, then you must also enable two-step verification on this new account.
23
-
4. Generate anApp Password to enable seamless integration between CodeRabbit and your Bitbucket repositories.
23
+
4. Generate anApi Token to enable seamless integration between CodeRabbit and your Bitbucket repositories.
24
24
25
-
We recommend creating a new user as a service account, associating this user to the workspace you'd like to install CodeRabbit on, and providing CodeRabbit with the app password to allow access. During the installation process, CodeRabbit will automatically configure the required webhook for seamless integration.
We recommend creating a new user as a service account, associating this user to the workspace you'd like to install CodeRabbit on, and providing CodeRabbit with the api token to allow access. During the installation process, CodeRabbit will automatically configure the required webhook for seamless integration.
34
26
35
27
:::note
36
28
37
-
If you wish to change the review user, you must provide theapp password for the new user who will post reviews and comments. However, this requires manually removing the previous user from the projects and associated webhooks. Once this is done, you will need to reinstall the CodeRabbit app for each project.
29
+
If you wish to change the review user, you must provide theapi token for the new user who will post reviews and comments. However, this requires manually removing the previous user from the projects and associated webhooks. Once this is done, you will need to reinstall the CodeRabbit app for each project.
38
30
39
31
:::
40
32
@@ -48,46 +40,46 @@ If you wish to change the review user, you must provide the app password for the
48
40
49
41
####Key Points to Remember
50
42
51
-
- Code reviews will be attributed to the owner of theapp password.
43
+
- Code reviews will be attributed to the owner of theapi token.
52
44
53
-
####Generating anApp password
45
+
####Generating anApi token
54
46
55
-
Bitbucket provides an option to generate anapp password for a new user. Follow these steps to generate thepassword:
47
+
Bitbucket provides an option to generate anapi token for a new user. Follow these steps to generate thetoken:
56
48
57
49
1. Log in using the user designated for CodeRabbit reviews. This user serves as a service account for managing reviews and related activities.
58
-
2. Go to"Personal Bitbucket Settings".
59
-
3.Choose**App passwords**.
60
-
4.Click**Create app password**.
61
-
5.Enter a label easily recognizable for this app passwords usage.
50
+
2. Go to["API Tokens Settings"](https://id.atlassian.com/manage-profile/security/api-tokens).
51
+
3.Click**Create API token with scopes**.
52
+
4.Enter a name easily recognizable for this api token usage and an expiration date based on your plan of using the product.
53
+
5.On next step select**Bitbucket**
62
54
6. Ensure the following scopes are selected:
63
-
1. Account - Read
64
-
2. Issues - Write
65
-
3. Workspace membership - Read
66
-
4. Projects - Write
67
-
5. Repositories - Write
68
-
6. Pull requests - Write
69
-
7. Webhooks - Read and write
70
-
8. Pipelines - Read
71
-
9. Runners - Read
55
+
1. read:account
56
+
2. read:user:bitbucket
57
+
3. write:issue:bitbucket
58
+
4. read:issue:bitbucket
59
+
5. read:workspace:bitbucket
60
+
6. admin:project:bitbucket
61
+
7. write:webhook:bitbucket
62
+
8. read:webhook:bitbucket
63
+
9. read:pipeline:bitbucket
64
+
10. read:runner:bitbucket
65
+
11. read:repository:bitbucket
66
+
12. write:repository:bitbucket
67
+
13. read:pullrequest:bitbucket
68
+
14. write:pullrequest:bitbucket
72
69
7. Click**Create**
73
-
8. Note down theapp password as it will only be displayed once.
70
+
8. Note down theapi token as it will only be displayed once.
By default, if noapp password is provided, CodeRabbit will prompt you to provide one during the installation process. However, if you wish to provide the token beforehand, you can do so by navigating to the**Organization Settings** tab, and selecting the**Bitbucket User** tab on the sidebar. Once entering theapp password, thepassword will be validated and saved for future use.
82
+
By default, if noapi token is provided, CodeRabbit will prompt you to provide one during the installation process. However, if you wish to provide the token beforehand, you can do so by navigating to the**Organization Settings** tab, and selecting the**Bitbucket User** tab on the sidebar. Once entering theapi token, thetoken will be validated and saved for future use.
91
83
92
84
You can confirm the correct user is being selected by verifying the user ID shown on the UI with the user ID of the service account user you created.
93
85
@@ -125,6 +117,6 @@ If you are experiencing issues with the webhook, such as CodeRabbit not being ab
125
117
126
118
Then refresh the repository page in the CodeRabbit app and you can reinstall the webhook.
127
119
128
-
If you cannot install the webhook please check that your Bitbucket user has the necessary permissions to install the webhook and theApp Password is properly configured.
120
+
If you cannot install the webhook please check that your Bitbucket user has the necessary permissions to install the webhook and theApi Token is properly configured.