Skip to content

Commit

Permalink
Merge pull request #1161 from paolomainardi/patch-1
Browse files Browse the repository at this point in the history
fix: remove CI_MERGE_REQUEST_STATE as is not a Gitlab variable
  • Loading branch information
mrT23 authored Aug 21, 2024
2 parents 2591a5d + 4d9d6f7 commit 91a7c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/installation/gitlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pr_agent_job:
- python -m pr_agent.cli --pr_url="$MR_URL" review
- python -m pr_agent.cli --pr_url="$MR_URL" improve
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_STATE == "opened"'
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
```
This script will run PR-Agent on every new merge request. You can modify the `rules` section to run PR-Agent on different events.
You can also modify the `script` section to run different PR-Agent commands, or with different parameters by exporting different environment variables.
Expand Down

0 comments on commit 91a7c08

Please sign in to comment.