Coder Social home page Coder Social logo

Comments (8)

calebAtIspot avatar calebAtIspot commented on May 14, 2024 1

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.

from pr-agent.

okotek avatar okotek commented on May 14, 2024

Add -e CONFIG.GIT_PROVIDER=bitbucket

from pr-agent.

anthonym21 avatar anthonym21 commented on May 14, 2024

Is this for bitbucket SERVER or cloud?

from pr-agent.

mrT23 avatar mrT23 commented on May 14, 2024

/similar_issue

from pr-agent.

github-actions avatar github-actions commented on May 14, 2024

Similar Issues:

  1. [GITLAB] Installation Guide for GitLab please?

  2. how to deal with token limitation

  3. [Feature Request] - Ability to configure GitHub App

  4. Support for other git providers like Azure Repos

from pr-agent.

nevotheless avatar nevotheless commented on May 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.

from pr-agent.

mrT23 avatar mrT23 commented on May 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.

from pr-agent.

anthonym21 avatar anthonym21 commented on May 14, 2024

from pr-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.