From ccd525149aaeed2e171a268eb7727f50ff8812da Mon Sep 17 00:00:00 2001 From: Ofer Affias Date: Wed, 7 May 2025 18:30:48 +0100 Subject: [PATCH 1/2] update bot match for gitlab default CM --- docs/downloads/gitStream-gl.cm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/downloads/gitStream-gl.cm b/docs/downloads/gitStream-gl.cm index c56a2eae8..f23bed214 100644 --- a/docs/downloads/gitStream-gl.cm +++ b/docs/downloads/gitStream-gl.cm @@ -10,7 +10,7 @@ automations: linearb_ai_review: if: - {{ not pr.draft }} - - {{ pr.author | match(list=['github-actions', 'dependabot', '[bot]']) | nope }} + - {{ IS_NOT_A_BOT }} run: - action: code-review@v1 @@ -18,7 +18,7 @@ automations: linearb_ai_description: if: - {{ not pr.draft }} - - {{ pr.author | match(list=['github-actions', 'dependabot', '[bot]']) | nope }} + - {{ IS_NOT_A_BOT }} run: - action: describe-changes@v1 args: @@ -73,3 +73,5 @@ colors: red: 'b60205' yellow: 'fbca04' green: '0e8a16' + +IS_NOT_A_BOT: {{ pr.author | match(list=['_bot_', '[bot]', 'dependabot']) | nope }} From 2282779b95a2541f2ff363f47fc771f03436ff2a Mon Sep 17 00:00:00 2001 From: Ofer Affias Date: Wed, 7 May 2025 18:32:25 +0100 Subject: [PATCH 2/2] update github defition for matching bots in default CM --- docs/downloads/gitstream.cm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/downloads/gitstream.cm b/docs/downloads/gitstream.cm index f67a268d0..9a8626702 100644 --- a/docs/downloads/gitstream.cm +++ b/docs/downloads/gitstream.cm @@ -13,7 +13,7 @@ automations: - commit if: - {{ not pr.draft }} - - {{ pr.author | match(list=['github-actions', 'dependabot', '[bot]']) | nope }} + - {{ IS_NOT_A_BOT }} run: - action: code-review@v1 @@ -24,7 +24,7 @@ automations: - commit if: - {{ not pr.draft }} - - {{ pr.author | match(list=['github-actions', 'dependabot', '[bot]']) | nope }} + - {{ IS_NOT_A_BOT }} run: - action: describe-changes@v1 args: @@ -83,3 +83,5 @@ colors: red: 'b60205' yellow: 'fbca04' green: '0e8a16' + +IS_NOT_A_BOT: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | nope }}