Comments (8)
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:
- Go to your repository settings
- Go to Access tokens under Security
- Create an access token. Give it the following scopes:
pullrequest pullrequest:write repository repository:write
- In your terminal, save it as a environment variable.
BITBUCKET_BEARER_TOKEN=<put-token-here>
- Save your openai api key as a environment variable
OPENAI_API_KEY
- 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.
Add -e CONFIG.GIT_PROVIDER=bitbucket
from pr-agent.
Is this for bitbucket SERVER or cloud?
from pr-agent.
/similar_issue
from pr-agent.
Similar Issues:
from pr-agent.
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.
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.
from pr-agent.
Related Issues (20)
- AWS Lambda unhandled exception HOT 6
- Trigger condition improvement in github actions
- Add persistent_comment option for `/describe` HOT 6
- URL
- Failed to review PR: name 'is_valid_file' is not defined HOT 1
- No need to check OPENAI_KEY when using non OpenAI models HOT 1
- [GitHub Actions] How do I configure using `.pr_agent.toml` file? HOT 5
- Changelog commit includes option to start with "[skip ci]" > "[skip ci] Update CHANGELOG.md" HOT 4
- Can't log in to IntelliJ IDEA
- Can we use pr-agent with custom llm provider? HOT 7
- 'summarize_mode' is undefined HOT 5
- gpt-3.5-turbo context window is 16k HOT 3
- gitlab_provider asign personal_access_token to oauth_token may not work? HOT 5
- Clarifications on Azure Open AI configuration HOT 3
- /review broke - docker:latest HOT 3
- Replace 👀 with ❤️ when response is completed HOT 2
- Have `/config` print the working config as well as all the options HOT 1
- Do we take any benchmarks between different LLMs? HOT 1
- Add label base on pull request description. HOT 6
- PR-Agent Chrome Extension: AWS CodeCommit HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pr-agent.