From 4d9d6f74773b54dbed2c801cf00d9a9a7c5d52f3 Mon Sep 17 00:00:00 2001 From: Paolo Mainardi Date: Wed, 21 Aug 2024 11:36:33 +0200 Subject: [PATCH] fix: remove CI_MERGE_REQUEST_STATE as is not a Gitlab variable --- docs/docs/installation/gitlab.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/installation/gitlab.md b/docs/docs/installation/gitlab.md index 8529d7da..6df2abdb 100644 --- a/docs/docs/installation/gitlab.md +++ b/docs/docs/installation/gitlab.md @@ -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.