Skip to content

Commit 9f8cc75

Browse files
authored
Merge pull request #1250 from chapeupreto/improve-pipeline-gitlab
docs: improve GitLab installation instruction
2 parents 8a287f8 + 0668ccb commit 9f8cc75

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/docs/installation/gitlab.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ stages:
88

99
pr_agent_job:
1010
stage: pr_agent
11-
image:
11+
image:
1212
name: codiumai/pr-agent:latest
1313
entrypoint: [""]
1414
script:
1515
- cd /app
1616
- echo "Running PR Agent action step"
1717
- export MR_URL="$CI_MERGE_REQUEST_PROJECT_URL/merge_requests/$CI_MERGE_REQUEST_IID"
1818
- echo "MR_URL=$MR_URL"
19-
- export gitlab__PERSONAL_ACCESS_TOKEN=$GITLAB_PERSONAL_ACCESS_TOKEN
19+
- export gitlab__url=$CI_SERVER_PROTOCOL://$CI_SERVER_FQDN
20+
- export gitlab__PERSONAL_ACCESS_TOKEN=$GITLAB_PERSONAL_ACCESS_TOKEN
2021
- export config__git_provider="gitlab"
2122
- export openai__key=$OPENAI_KEY
2223
- python -m pr_agent.cli --pr_url="$MR_URL" describe
@@ -54,7 +55,7 @@ WEBHOOK_SECRET=$(python -c "import secrets; print(secrets.token_hex(10))")
5455
- Your OpenAI key.
5556
- In the [gitlab] section, fill in personal_access_token and shared_secret. The access token can be a personal access token, or a group or project access token.
5657
- Set deployment_type to 'gitlab' in [configuration.toml](https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/settings/configuration.toml)
57-
58+
5859
5. Create a webhook in GitLab. Set the URL to ```http[s]://<PR_AGENT_HOSTNAME>/webhook```. Set the secret token to the generated secret from step 2.
5960
In the "Trigger" section, check the ‘comments’ and ‘merge request events’ boxes.
6061

0 commit comments

Comments
 (0)