Skip to content

Commit 31c6174

Browse files
authored
Merge pull request #700 from linear-b/add-triggers-to-code-experts
Add triggers to suggest-code-experts examples
2 parents 24c6838 + 73d8610 commit 31c6174

File tree

6 files changed

+29
-10
lines changed

6 files changed

+29
-10
lines changed

docs/automations/standard/explain-code-experts/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,17 @@ Post a comment that uses git blame and history to list the most relevant experts
1515
!!! info "Configuration Description"
1616
Conditions (all must be true):
1717

18-
* A PR is created or modified.
18+
* The PR has the 'suggest-reviewer' label.
19+
20+
Explicit Triggers:
21+
22+
* When a PR is created (`pr_created`)
23+
* When a PR becomes ready for review (`pr_ready_for_review`)
24+
* When a new commit is pushed to the PR (`commit`)
1925

2026
Automation Actions:
2127

22-
* Post a comment that identifies the people with the highest level of code expetise.
28+
* Post a comment that identifies the people with the highest level of code expertise.
2329

2430
</div>
2531
<div class="automationExample" markdown="1">

docs/downloads/automation-library/standard/explain_code_experts.cm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ manifest:
55

66
automations:
77
explain_code_experts:
8+
on:
9+
- pr_created
10+
- pr_ready_for_review
11+
- commit
812
if:
913
- {{ pr.labels | match(term='suggest-reviewer') | some }}
1014
run:
11-
- action: explain-code-experts@v1
15+
- action: explain-code-experts@v1
1216
args:
13-
gt: 10
17+
gt: 10

docs/downloads/gitStream-gl.cm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ automations:
5252
if:
5353
- true
5454
run:
55-
- action: explain-code-experts@v1
55+
- action: explain-code-experts@v1
5656
args:
57-
gt: 10
57+
gt: 10
5858

5959

6060
# +----------------------------------------------------------------------------+

docs/downloads/github/gitstream.cm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ automations:
4040
explain_code_experts:
4141
on:
4242
- pr_created
43+
- pr_ready_for_review
4344
- commit
4445
if:
4546
- true

docs/downloads/gitstream.cm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,16 @@ automations:
5555
Please add a Jira ticket reference to the title or description of this PR.
5656
# Post a comment that lists the best experts for the files that were modified.
5757
explain_code_experts:
58+
on:
59+
- pr_created
60+
- pr_ready_for_review
61+
- commit
5862
if:
5963
- true
6064
run:
61-
- action: explain-code-experts@v1
65+
- action: explain-code-experts@v1
6266
args:
63-
gt: 10
67+
gt: 10
6468

6569

6670
# +----------------------------------------------------------------------------+

docs/downloads/sales_demo.cm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,16 @@ automations:
4040
label: '🤖 Copilot'
4141
# Post a comment that lists the best experts for the files that were modified.
4242
explain_code_experts:
43+
on:
44+
- pr_created
45+
- pr_ready_for_review
46+
- commit
4347
if:
4448
- true
4549
run:
46-
- action: explain-code-experts@v1
50+
- action: explain-code-experts@v1
4751
args:
48-
gt: 10
52+
gt: 10
4953

5054

5155
# +----------------------------------------------------------------------------+

0 commit comments

Comments
 (0)