File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -6,22 +6,21 @@ You can use the Bitbucket Pipeline system to run PR-Agent on every pull request
66
77``` yaml
88pipelines :
9- pull-requests :
10- " ** " :
11- - step :
12- name : PR Agent Review
13- image : python:3.12
14- services :
15- - docker
16- script :
17- - docker run -e CONFIG.GIT_PROVIDER=bitbucket -e OPENAI.KEY=$OPENAI_API_KEY -e BITBUCKET.BEARER_TOKEN=$BITBUCKET_BEARER_TOKEN codiumai/pr-agent:latest --pr_url=https://bitbucket.org/$BITBUCKET_WORKSPACE/$BITBUCKET_REPO_SLUG/pull-requests/$BITBUCKET_PR_ID review
9+ pull-requests :
10+ ' ** ' :
11+ - step :
12+ name : PR Agent Review
13+ image : codiumai/pr-agent:latest
14+ script :
15+ - pr-agent --pr_url=https://bitbucket.org/$BITBUCKET_WORKSPACE/$BITBUCKET_REPO_SLUG/pull-requests/$BITBUCKET_PR_ID review
1816` ` `
1917
20182. Add the following secure variables to your repository under Repository settings > Pipelines > Repository variables.
21- OPENAI_API_KEY: ` <your key>`
22- BITBUCKET.AUTH_TYPE : ` basic` or `bearer` (default is `bearer`)
23- BITBUCKET.BEARER_TOKEN : ` <your token>` (required when auth_type is bearer)
24- BITBUCKET.BASIC_TOKEN : ` <your token>` (required when auth_type is basic)
19+ CONFIG__GIT_PROVIDER: ` bitbucket`
20+ OPENAI__KEY : ` <your key>`
21+ BITBUCKET__AUTH_TYPE : ` basic` or `bearer` (default is `bearer`)
22+ BITBUCKET__BEARER_TOKEN : ` <your token>` (required when auth_type is bearer)
23+ BITBUCKET__BASIC_TOKEN : ` <your token>` (required when auth_type is basic)
2524
2625You can get a Bitbucket token for your repository by following Repository Settings -> Security -> Access Tokens.
2726For basic auth, you can generate a base64 encoded token from your username:password combination.
You can’t perform that action at this time.
0 commit comments