Skip to content

Commit e7c964d

Browse files
authored
Merge pull request #706 from linear-b/bot-detection-ai-cm
Bot detection ai cm
2 parents 415fd45 + 2282779 commit e7c964d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/downloads/gitStream-gl.cm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ automations:
1010
linearb_ai_review:
1111
if:
1212
- {{ not pr.draft }}
13-
- {{ pr.author | match(list=['github-actions', 'dependabot', '[bot]']) | nope }}
13+
- {{ IS_NOT_A_BOT }}
1414
run:
1515
- action: code-review@v1
1616

1717
# Use LinearB's AI service to add a description to the PR
1818
linearb_ai_description:
1919
if:
2020
- {{ not pr.draft }}
21-
- {{ pr.author | match(list=['github-actions', 'dependabot', '[bot]']) | nope }}
21+
- {{ IS_NOT_A_BOT }}
2222
run:
2323
- action: describe-changes@v1
2424
args:
@@ -73,3 +73,5 @@ colors:
7373
red: 'b60205'
7474
yellow: 'fbca04'
7575
green: '0e8a16'
76+
77+
IS_NOT_A_BOT: {{ pr.author | match(list=['_bot_', '[bot]', 'dependabot']) | nope }}

docs/downloads/gitstream.cm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ automations:
1313
- commit
1414
if:
1515
- {{ not pr.draft }}
16-
- {{ pr.author | match(list=['github-actions', 'dependabot', '[bot]']) | nope }}
16+
- {{ IS_NOT_A_BOT }}
1717
run:
1818
- action: code-review@v1
1919

@@ -24,7 +24,7 @@ automations:
2424
- commit
2525
if:
2626
- {{ not pr.draft }}
27-
- {{ pr.author | match(list=['github-actions', 'dependabot', '[bot]']) | nope }}
27+
- {{ IS_NOT_A_BOT }}
2828
run:
2929
- action: describe-changes@v1
3030
args:
@@ -83,3 +83,5 @@ colors:
8383
red: 'b60205'
8484
yellow: 'fbca04'
8585
green: '0e8a16'
86+
87+
IS_NOT_A_BOT: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | nope }}

0 commit comments

Comments
 (0)