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

Bitbucket docs #207

Open
rickvandermeij-aanzee opened this issue Aug 14, 2023 · 8 comments
Open

Bitbucket docs #207

rickvandermeij-aanzee opened this issue Aug 14, 2023 · 8 comments

Comments

@rickvandermeij-aanzee
Copy link

How to setup bitbucket with docker. when running the command line, it says GITHUB.USER_TOKEN is required

@okotek
Copy link
Contributor

okotek commented Aug 14, 2023

Add -e CONFIG.GIT_PROVIDER=bitbucket

@anthonym21
Copy link

Is this for bitbucket SERVER or cloud?

@mrT23
Copy link
Collaborator

mrT23 commented Sep 12, 2023

/similar_issue

@nevotheless
Copy link

The docs could be clearer on if this applies to bitbucket cloud only or can be used for bitbucket server / datacenter as well.
On-premise usage in general is not very well explained in the documentation.

@mrT23
Copy link
Collaborator

mrT23 commented Mar 14, 2024

The docs could be clearer on if this applies to bitbucket cloud only or can be used for bitbucket server / datacenter as well. On-premise usage in general is not very well explained in the documentation.

You are welcome to open a PR to improve the docs.
There are many git providers and sub-frameworks, and we rely on the community to cover so many options.

@anthonym21
Copy link

anthonym21 commented Mar 15, 2024 via email

@calebAtIspot
Copy link

calebAtIspot commented Mar 15, 2024

I was also confused for a bit, because the documentation says it wants a "bearer token" but that name was not what I expected. After a bit I realized a repository access token will do.

If you use bitbucket cloud:

  1. Go to your repository settings
  2. Go to Access tokens under Security
  3. Create an access token. Give it the following scopes: pullrequest pullrequest:write repository repository:write
  4. In your terminal, save it as a environment variable. BITBUCKET_BEARER_TOKEN=<put-token-here>
  5. Save your openai api key as a environment variable OPENAI_API_KEY
  6. Run the bitbucket command listed in https://pr-agent-docs.codium.ai/installation/locally. I used docker run --rm -it -e CONFIG.GIT_PROVIDER=bitbucket -e OPENAI.KEY=$OPENAI_API_KEY -e BITBUCKET.BEARER_TOKEN=$BITBUCKET_BEARER_TOKEN codiumai/pr-agent:latest --pr_url=<pr_url> review , editing it to set the pr url.

You might get an error Failed to set review labels, error: 'NoneType' object is not iterable. Ignore that, you should still see a AI review comment in your PR.

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

No branches or pull requests

7 participants
@nevotheless @okotek @anthonym21 @mrT23 @rickvandermeij-aanzee @calebAtIspot and others