Skip to content

Update Bitbucket docs with latest api token changes #426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

petrisorcoderabbit
Copy link
Contributor

No description provided.

Copy link
Contributor

coderabbitai bot commented Jul 2, 2025

Caution

Review failed

Failed to post review comments.

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7bfeea9 and 27b244a.

📒 Files selected for processing (1)
  • docs/platforms/bitbucket-cloud.md (2 hunks)
🧰 Additional context used
🧠 Learnings (1)
docs/platforms/bitbucket-cloud.md (2)
Learnt from: aravindputrevu
PR: coderabbitai/coderabbit-docs#402
File: docs/guides/setup-best-practices.md:21-21
Timestamp: 2025-06-18T09:22:07.198Z
Learning: The word "CodeRabbit" should always have both C and R capitalized (not "coderabbit", "Coderabbit", or "CoderabbitAI"). The correct format is "CodeRabbit" and "CodeRabbitAI" for the service account. Proactively correct this capitalization in review comments when contributors mistype it.
Learnt from: aravindputrevu
PR: coderabbitai/coderabbit-docs#121
File: docs/guides/delete-account.md:46-47
Timestamp: 2024-10-31T16:33:25.070Z
Learning: In the CodeRabbit documentation, image paths in markdown files should reference the `/img/` directory, not `/static/img/`.
🪛 LanguageTool
docs/platforms/bitbucket-cloud.md

[style] ~45-~45: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...easy identification and management. - **Use the CodeRabbit logo as the profile pict...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[typographical] ~137-~137: It seems that a comma is missing.
Context: ...hook. If you cannot install the webhook please check that your Bitbucket user has the ...

(IF_PLEASE_COMMA)


[style] ~137-~137: Try using a more formal synonym for ‘check’.
Context: ...f you cannot install the webhook please check that your Bitbucket user has the necess...

(VERIFY)

🔇 Additional comments (1)
docs/platforms/bitbucket-cloud.md (1)

65-78: Verify scope names match Bitbucket’s API-token nomenclature.

Bitbucket’s new API-token UI may use consolidated scopes (e.g., repository:write, pipeline:read) rather than the fine-grained read:repository:bitbucket pattern listed here. Double-check against the latest Atlassian docs to avoid onboarding failures.

Walkthrough

The documentation for Bitbucket Cloud integration was updated to replace all mentions of "App Password" with "API Token." Instructions, navigation steps, permission scopes, images, and troubleshooting sections were revised to reflect the current API token creation and usage process. No code or logic changes were made.

Changes

File(s) Change Summary
docs/platforms/bitbucket-cloud.md Updated all references from "App Password" to "API Token," revised creation steps, scopes, images, and troubleshooting details to match Bitbucket's current API token process.

Poem

A hop and a skip, the docs are anew,
"App Password" is gone, "API Token" shines through!
With scopes set just right and instructions so clear,
Bitbucket Cloud bunnies have nothing to fear.
🐇✨

✨ Finishing Touches
🧪 Generate Unit Tests
  • Create PR with Unit Tests
  • Post Copyable Unit Tests in a Comment
  • Commit Unit Tests in branch update-bitbucket-docs-after-password-changes

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (6)
docs/platforms/bitbucket-cloud.md (6)

16-18: Standardize “API token” capitalization

The section header and the first sentence mix “Api”/“api” with “API”. For consistency with industry terminology and the rest of our docs, use “API token” (all-caps “API”, lower-case “token”).

-## Configure Api Token
+## Configure API Token

-To enable CodeRabbit to interact with your Bitbucket repositories, an api token is required.
+To enable CodeRabbit to interact with your Bitbucket repositories, an API token is required.

23-30: Fix mixed capitalisation & minor wording

Multiple occurrences still use “Api token / api token”. Align them with “API token”. While you’re here, tighten the wording slightly.

-4. Generate an Api Token to enable seamless integration between CodeRabbit and your Bitbucket repositories.
+4. Generate an API token to enable seamless integration between CodeRabbit and your Bitbucket repositories.

-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.
+We recommend creating a new user as a service account, associating this user with the workspace you'd like to install CodeRabbit on, and providing CodeRabbit with the API token to allow access.

-If you wish to change the review user, you must provide the api token for the new user who will post reviews and comments.
+If you wish to change the review user, you must provide the API token for the new user who will post reviews and comments.

43-47: Heading & body: keep “API token” consistent

The heading says “Api token”, while the paragraph below mixes cases again. Suggest:

-#### Generating an Api token
+#### Generating an API token

-Bitbucket provides an option to generate an api token for a new user.
+Bitbucket lets you generate an API token for a new user.

55-68: Replace hard tabs with spaces to satisfy markdownlint (MD010)

The nested-numbered list is indented with tab characters, triggering MD010 warnings. Convert the tabs to four spaces (or two—pick one house style) so CI passes.

Example for the first few lines:

-	1. read:account
-	2. read:user:bitbucket
+    1. read:account
+    2. read:user:bitbucket

70-82: Last lingering “Api / api token” instances

Two more occurrences need the same update:

-8. Note down the api token as it will only be displayed once.
+8. Note down the API token as it will only be displayed once.

-### Where to Provide CodeRabbit the Api Token
+### Where to Provide CodeRabbit the API Token

-By default, if no api token is provided, CodeRabbit will prompt you to provide one …
+By default, if no API token is provided, CodeRabbit will prompt you to provide one …

120-120: Add comma & use “verify” for a more formal tone

-If you cannot install the webhook please check that your Bitbucket user has the necessary permissions to install the webhook and the Api Token is properly configured.
+If you cannot install the webhook, please verify that your Bitbucket user has the necessary permissions and that the API token is properly configured.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5b85004 and 7bfeea9.

⛔ Files ignored due to path filters (1)
  • static/img/integrations/bitbucket-api-token-scopes.png is excluded by !**/*.png, !**/*.png
📒 Files selected for processing (1)
  • docs/platforms/bitbucket-cloud.md (3 hunks)
🧰 Additional context used
🧠 Learnings (1)
docs/platforms/bitbucket-cloud.md (2)
Learnt from: aravindputrevu
PR: coderabbitai/coderabbit-docs#402
File: docs/guides/setup-best-practices.md:21-21
Timestamp: 2025-06-18T09:22:07.198Z
Learning: The word "CodeRabbit" should always have both C and R capitalized (not "coderabbit", "Coderabbit", or "CoderabbitAI"). The correct format is "CodeRabbit" and "CodeRabbitAI" for the service account. Proactively correct this capitalization in review comments when contributors mistype it.
Learnt from: aravindputrevu
PR: coderabbitai/coderabbit-docs#121
File: docs/guides/delete-account.md:46-47
Timestamp: 2024-10-31T16:33:25.070Z
Learning: In the CodeRabbit documentation, image paths in markdown files should reference the `/img/` directory, not `/static/img/`.
🪛 markdownlint-cli2 (0.17.2)
docs/platforms/bitbucket-cloud.md

55-55: Hard tabs
Column: 1

(MD010, no-hard-tabs)


56-56: Hard tabs
Column: 1

(MD010, no-hard-tabs)


57-57: Hard tabs
Column: 1

(MD010, no-hard-tabs)


58-58: Hard tabs
Column: 1

(MD010, no-hard-tabs)


59-59: Hard tabs
Column: 1

(MD010, no-hard-tabs)


60-60: Hard tabs
Column: 1

(MD010, no-hard-tabs)


61-61: Hard tabs
Column: 1

(MD010, no-hard-tabs)


62-62: Hard tabs
Column: 1

(MD010, no-hard-tabs)


63-63: Hard tabs
Column: 1

(MD010, no-hard-tabs)


64-64: Hard tabs
Column: 1

(MD010, no-hard-tabs)


65-65: Hard tabs
Column: 1

(MD010, no-hard-tabs)


66-66: Hard tabs
Column: 1

(MD010, no-hard-tabs)


67-67: Hard tabs
Column: 1

(MD010, no-hard-tabs)


68-68: Hard tabs
Column: 1

(MD010, no-hard-tabs)

🪛 LanguageTool
docs/platforms/bitbucket-cloud.md

[typographical] ~120-~120: It seems that a comma is missing.
Context: ...hook. If you cannot install the webhook please check that your Bitbucket user has the ...

(IF_PLEASE_COMMA)


[style] ~120-~120: Try using a more formal synonym for ‘check’.
Context: ...f you cannot install the webhook please check that your Bitbucket user has the necess...

(VERIFY)

Copy link

cloudflare-workers-and-pages bot commented Jul 2, 2025

Deploying coderabbit-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: df531ba
Status: ✅  Deploy successful!
Preview URL: https://6b69bd0d.coderabbit-docs.pages.dev
Branch Preview URL: https://update-bitbucket-docs-after.coderabbit-docs.pages.dev

View logs

@aravindputrevu aravindputrevu requested a review from jmacdotorg July 2, 2025 08:32
Copy link
Contributor

@jmacdotorg jmacdotorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! My comments are many but minor, mainly about the capitalization of "API".

@@ -13,90 +13,98 @@ CodeRabbit integrates with Bitbucket Cloud to enhance code review and collaborat

This guide will assist you in effectively integrating CodeRabbit with Bitbucket Cloud.

## Configure App Password
## Configure Api Token
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API, not Api


To enable CodeRabbit to interact with your Bitbucket repositories, an app password is required. This token grants the necessary permissions for interacting with the Merge Requests and Discussions APIs.
To enable CodeRabbit to interact with your Bitbucket repositories, an api token is required. This token grants the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API, not api.


To enable CodeRabbit to interact with your Bitbucket repositories, an app password is required. This token grants the necessary permissions for interacting with the Merge Requests and Discussions APIs.
To enable CodeRabbit to interact with your Bitbucket repositories, an api token is required. This token grants the
necessary permissions for interacting with the Merge Requests and Discussions APIs.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whose APIs are these, Bitbucket's? I think it would be good to be specific about that, just to clarify that these aren't CodeRabbit APIs that you should know about.

How about rephrasing to "[...] interacting with the Bitbucket merge request and discussion APIs"

4. Generate an App Password to enable seamless integration between CodeRabbit and your Bitbucket repositories.
3. If your Bitbucket workspace requires two-step verification, then you must also enable two-step verification on this
new account.
4. Generate an Api Token to enable seamless integration between CodeRabbit and your Bitbucket repositories.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API token


:::note

If you wish to change the review user, you must provide the app 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.
If you wish to change the review user, you must provide the api token for the new user who will post reviews and
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API

19. read:pullrequest:bitbucket
20. write:pullrequest:bitbucket
21. Click **Create**
22. Note down the api token as it will only be displayed once.

<div class="center-image">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's drop this screenshot entirely. It just repeats the list of scopes from above, except it's harder to read.

/>
</div>

### Where to Provide CodeRabbit the App Password
### Where to Provide CodeRabbit the Api Token
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provide CodeRabbit with the API Token


By default, if no app 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 the app password, the password will be validated and saved for future use.
By default, if no api token is provided, CodeRabbit will prompt you to provide one during the installation process.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API

By default, if no app 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 the app password, the password will be validated and saved for future use.
By default, if no api 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 the api token, the token will be validated and
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API


Then refresh the repository page in the CodeRabbit app and you can reinstall the webhook.

If you cannot install the webhook please check that your Bitbucket user has the necessary permissions to install the webhook and the App Password is properly configured.
If you cannot install the webhook please check that your Bitbucket user has the necessary permissions to install the
webhook and the Api Token is properly configured.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants