Skip to content

Commit e41050d

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 5e98926 + a459e8c commit e41050d

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

docs/docs/installation/bitbucket.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,21 @@ You can use the Bitbucket Pipeline system to run PR-Agent on every pull request
66

77
```yaml
88
pipelines:
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
2018
2. 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

2625
You can get a Bitbucket token for your repository by following Repository Settings -> Security -> Access Tokens.
2726
For basic auth, you can generate a base64 encoded token from your username:password combination.

0 commit comments

Comments
 (0)