From ee79043bf43c70c996b7a161152819e2f5b0a9d3 Mon Sep 17 00:00:00 2001 From: Daniil Nedostup Date: Wed, 13 Nov 2024 12:14:32 +0200 Subject: [PATCH] chore: Disable GitLab trigger on reviewer change (#358) --- .../templates/triggers/gitlab/trigger-review.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/pipelines-library/templates/triggers/gitlab/trigger-review.yaml b/charts/pipelines-library/templates/triggers/gitlab/trigger-review.yaml index ae61ffa7..6c795ded 100644 --- a/charts/pipelines-library/templates/triggers/gitlab/trigger-review.yaml +++ b/charts/pipelines-library/templates/triggers/gitlab/trigger-review.yaml @@ -20,7 +20,7 @@ spec: name: "cel" params: - name: "filter" - value: "body.object_attributes.action in ['open', 'reopen', 'update'] || (body.object_kind == 'note' && has(body.merge_request))" + value: "body.object_attributes.action in ['open', 'reopen', 'update'] && !(has(body.changes.assignees) || has(body.changes.reviewers)) || (body.object_kind == 'note' && has(body.merge_request))" - ref: name: "edp" kind: NamespacedInterceptor