mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-13 19:35:17 +00:00
update install.md
This commit is contained in:
parent
56cc804fcf
commit
3e2e2d6c6e
1 changed files with 2 additions and 0 deletions
|
|
@ -379,6 +379,7 @@ You can use our pre-build Bitbucket-Pipeline docker image to run as Bitbucket-Pi
|
||||||
|
|
||||||
1. Add the following file in your repository bitbucket_pipelines.yml
|
1. Add the following file in your repository bitbucket_pipelines.yml
|
||||||
|
|
||||||
|
```yaml
|
||||||
pipelines:
|
pipelines:
|
||||||
pull-requests:
|
pull-requests:
|
||||||
'**':
|
'**':
|
||||||
|
|
@ -394,6 +395,7 @@ You can use our pre-build Bitbucket-Pipeline docker image to run as Bitbucket-Pi
|
||||||
- cd pr-agent
|
- cd pr-agent
|
||||||
- docker build -t bitbucket_runner:latest -f Dockerfile.bitbucket_pipeline .
|
- docker build -t bitbucket_runner:latest -f Dockerfile.bitbucket_pipeline .
|
||||||
- docker run -e OPENAI_API_KEY=$OPENAI_API_KEY -e BITBUCKET_BEARER_TOKEN=$BITBUCKET_BEARER_TOKEN -e BITBUCKET_PR_ID=$BITBUCKET_PR_ID -e BITBUCKET_REPO_SLUG=$BITBUCKET_REPO_SLUG -e BITBUCKET_WORKSPACE=$BITBUCKET_WORKSPACE bitbucket_runner:latest
|
- docker run -e OPENAI_API_KEY=$OPENAI_API_KEY -e BITBUCKET_BEARER_TOKEN=$BITBUCKET_BEARER_TOKEN -e BITBUCKET_PR_ID=$BITBUCKET_PR_ID -e BITBUCKET_REPO_SLUG=$BITBUCKET_REPO_SLUG -e BITBUCKET_WORKSPACE=$BITBUCKET_WORKSPACE bitbucket_runner:latest
|
||||||
|
```
|
||||||
|
|
||||||
2. Add the following secret to your repository under Repository settings > Pipelines > Repository variables.
|
2. Add the following secret to your repository under Repository settings > Pipelines > Repository variables.
|
||||||
OPENAI_API_KEY: <your key>
|
OPENAI_API_KEY: <your key>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue