Skip to content
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

add bitbucket docs #176

Merged
merged 9 commits into from
Dec 13, 2024
Merged

add bitbucket docs #176

merged 9 commits into from
Dec 13, 2024

Conversation

alexcoderabbitai
Copy link
Contributor

No description provided.

Copy link
Contributor

coderabbitai bot commented Dec 13, 2024

Warning

Rate limit exceeded

@alexcoderabbitai has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 6 minutes and 32 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 6e672ad and a26a251.

📒 Files selected for processing (1)
  • docs/platforms/platforms.md (1 hunks)

Walkthrough

This pull request introduces a new documentation file titled "Use Self-Hosted CodeRabbit With Bitbucket Datacenter." It provides detailed instructions for enterprise customers on integrating CodeRabbit with Bitbucket Datacenter. Key topics include creating a dedicated Bitbucket user, configuring permissions, generating a personal access token, setting up webhooks for pull request events, and configuring the .env file. The document also covers pulling the CodeRabbit Docker image and hosting instructions, emphasizing the need to expose port 8080.

Changes

File Path Change Summary
docs/self-hosted/bitbucket.md Added a new document detailing integration of CodeRabbit with Bitbucket Datacenter, including setup instructions, webhook configuration, and Docker hosting guidelines.

Possibly related PRs

  • Update platforms.md #174: The update clarifies the support status of Bitbucket Data Center, which is directly relevant to the main PR's focus on integrating CodeRabbit with Bitbucket Datacenter.

Suggested reviewers

  • aravindputrevu
  • nehal-a2z

🐇 In the meadow, where code does flow,
A guide for Bitbucket is ready to show.
With tokens and webhooks, it paves the way,
For self-hosted dreams to brighten the day.
So hop along, let’s integrate right,
CodeRabbit and Bitbucket, a joyful sight! 🌟


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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. (Experiment)
  • @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: 1

🧹 Outside diff range and nitpick comments (4)
docs/self-hosted/bitbucket.md (4)

8-12: Improve note formatting for better visibility

Consider using a more prominent callout style for this important enterprise requirement.

-:::note
+:::important

37-37: Replace localhost example with a production-like URL

The example URL uses localhost which might be misleading for production setups. Consider using a more realistic example.

-3. **Add Webhook URL**: Enter the URL pointing to the CodeRabbit service, followed by `/bitbucket_server_webhooks` (e.g., `http://127.0.0.1:8080/bitbucket_server_webhooks`).
+3. **Add Webhook URL**: Enter the URL pointing to the CodeRabbit service, followed by `/bitbucket_server_webhooks` (e.g., `https://coderabbit.your-domain.com/bitbucket_server_webhooks`).

113-113: Add production security note for Docker exposure

The current Docker command binds to localhost, which won't work in production. However, exposing the service needs careful consideration.

-docker run --env-file .env --publish 127.0.0.1:8080:8080 us-docker.pkg.dev/coderabbitprod/self-hosted/coderabbit-agent:latest
+# For development/testing
+docker run --env-file .env --publish 127.0.0.1:8080:8080 us-docker.pkg.dev/coderabbitprod/self-hosted/coderabbit-agent:latest
+
+# For production (ensure proper security measures are in place)
+docker run --env-file .env --publish 8080:8080 us-docker.pkg.dev/coderabbitprod/self-hosted/coderabbit-agent:latest

Consider adding a security note:

:::caution
When deploying to production, ensure proper security measures (e.g., reverse proxy, SSL/TLS, firewall rules) are in place before exposing the service to external traffic.
:::

114-114: Add a troubleshooting section

Consider adding a "Troubleshooting" section at the end of the document to help users diagnose and resolve common issues they might encounter during setup and operation.

Example topics to cover:

  • Common webhook configuration issues
  • Authentication problems
  • Docker container startup issues
  • Health check failures

Would you like me to help draft a troubleshooting section?

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 21e967f and 4ebcc0c.

📒 Files selected for processing (1)
  • docs/self-hosted/bitbucket.md (1 hunks)
🔇 Additional comments (1)
docs/self-hosted/bitbucket.md (1)

1-6: Verify sidebar position in documentation structure

Please confirm that position 4 is the correct placement in the sidebar navigation order.

✅ Verification successful

Sidebar position 4 is correctly placed in the documentation structure

The verification confirms that the sidebar position follows a logical order:

  1. GitHub (position 1)
  2. GitLab (position 2)
  3. Azure DevOps (position 3)
  4. Bitbucket Server (position 4)
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check other documentation files' sidebar positions
fd -e md . docs/self-hosted/ -x grep -l "sidebar_position" {} \; | xargs awk '/sidebar_position:/ {printf "%s: %s\n", FILENAME, $0}'

Length of output: 336

docs/self-hosted/bitbucket.md Outdated Show resolved Hide resolved
Copy link

cloudflare-workers-and-pages bot commented Dec 13, 2024

Deploying coderabbit-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: a26a251
Status: ✅  Deploy successful!
Preview URL: https://a8a47e1d.coderabbit-docs.pages.dev
Branch Preview URL: https://feat-bitbucket-docs.coderabbit-docs.pages.dev

View logs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
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: 3

🧹 Outside diff range and nitpick comments (2)
docs/self-hosted/bitbucket.md (2)

23-24: Consider adding specific permission levels

The current permissions list is quite high-level. Consider adding more specific details about the required permission levels (e.g., "Read" vs "Write" access) and any specific project roles that should be assigned.


110-110: Add HTTPS requirements for production deployments

The documentation should emphasize the importance of configuring HTTPS for production deployments. Consider adding a section about:

  • SSL/TLS certificate requirements
  • Reverse proxy configuration examples (e.g., nginx)
  • Security best practices for exposing the service
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 4ebcc0c and 78d723a.

📒 Files selected for processing (1)
  • docs/self-hosted/bitbucket.md (1 hunks)
🔇 Additional comments (1)
docs/self-hosted/bitbucket.md (1)

10-10: Verify the sales contact email address

Please ensure that [email protected] is the correct email address for enterprise sales inquiries.

✅ Verification successful

Sales email address is consistent across documentation

The email address [email protected] is consistently used across all self-hosted documentation files (GitHub, Bitbucket, Azure DevOps, and GitLab), indicating it is the correct contact email for enterprise sales inquiries.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for any other instances of sales email to ensure consistency
rg -i "sales@.*\.ai"

Length of output: 1019

docs/self-hosted/bitbucket.md Show resolved Hide resolved
docs/self-hosted/bitbucket.md Show resolved Hide resolved
docs/self-hosted/bitbucket.md Show resolved Hide resolved
[dependabot skip]
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: 1

🧹 Outside diff range and nitpick comments (2)
docs/self-hosted/bitbucket.md (2)

2-2: Fix double spaces in title and description

Remove the extra spaces in these lines:

-title: Use Self-Hosted CodeRabbit With  Bitbucket Datacenter
+title: Use Self-Hosted CodeRabbit With Bitbucket Datacenter
-description: Instructions to self-host CodeRabbit and integrate it with  Bitbucket Datacenter.
+description: Instructions to self-host CodeRabbit and integrate it with Bitbucket Datacenter.

Also applies to: 4-4


57-57: Fix typo in Azure deployment name variable

There's a typo in the Azure deployment name variable:

-AZURE_GPT4OMINI_DEPLOYMENT_NAME=<gpt-4o-mini-deployment-name>
+AZURE_GPT4O_MINI_DEPLOYMENT_NAME=<gpt-4o-mini-deployment-name>
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 78d723a and 6e672ad.

📒 Files selected for processing (1)
  • docs/self-hosted/bitbucket.md (1 hunks)
🔇 Additional comments (3)
docs/self-hosted/bitbucket.md (3)

37-37: Replace localhost URL with a production example

Using http://127.0.0.1:8080 as an example might be misleading for production setups. Consider using a more realistic example like https://coderabbit.your-company.com/bitbucket_server_webhooks.


69-70: Add security recommendations for sensitive values

For sensitive values like BITBUCKET_SERVER_WEBHOOK_SECRET and BITBUCKET_SERVER_BOT_TOKEN, consider adding recommendations for:

  • Minimum length/complexity requirements
  • Secure storage practices
  • Regular rotation policies

113-113: Review Docker networking configuration

The current Docker run command binds to 127.0.0.1, which only allows local connections. For production deployments, you might need to bind to 0.0.0.0 to allow external access. Consider adding a note about security implications and recommended network configurations for different environments.

docs/self-hosted/bitbucket.md Show resolved Hide resolved
@alexcoderabbitai alexcoderabbitai enabled auto-merge (squash) December 13, 2024 15:08
@aravindputrevu
Copy link
Collaborator

@alexcoderabbitai can you please add link to the the supported Git platforms section?

@alexcoderabbitai alexcoderabbitai merged commit d27da7d into main Dec 13, 2024
4 checks passed
@alexcoderabbitai alexcoderabbitai deleted the feat/bitbucket-docs branch December 13, 2024 15:27
@coderabbitai coderabbitai bot mentioned this pull request Jan 3, 2025
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