Skip to content

Commit 6841402

Browse files
authored
Remove duplicate on trigger from automation examples (#765)
1 parent 170725b commit 6841402

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

docs/automation-actions.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,6 @@ This action, once triggered, reviews the code in the PR, and generates a comment
293293
```yaml+jinja title="example - inline guidelines"
294294
automations:
295295
linearb_ai_review:
296-
on:
297-
- pr_created
298-
- commit
299296
if:
300297
- {{ not pr.draft }}
301298
- {{ not (is.bot_author or is.bot_branch) }}
@@ -322,9 +319,6 @@ is:
322319
```yaml+jinja title="example - guidelines from file"
323320
automations:
324321
linearb_ai_review:
325-
on:
326-
- pr_created
327-
- commit
328322
if:
329323
- {{ not pr.draft }}
330324
- {{ not (is.bot_author or is.bot_branch) }}
@@ -427,10 +421,6 @@ manifest:
427421
428422
automations:
429423
linearb_ai_description:
430-
# trigger it only when PR is created or has new commits
431-
on:
432-
- pr_created
433-
- commit
434424
# skip description for Draft PRs and PRs from bots
435425
if:
436426
- {{ not pr.draft }}
@@ -501,7 +491,7 @@ automations:
501491
For more information about the `codeExperts` filter function, see the [filter functions documentation](https://docs.gitstream.cm/filter-functions/#codeexperts).
502492

503493
!!! tip "Limit git history for code experts"
504-
494+
505495
Use the [`config.git_history_since`](./cm-file.md#configgit_history_since) configuration to limit the git history analysis to commits after a specific date. This is useful for team transitions or when you want to focus on recent contributors only.
506496

507497
#### `merge` :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
@@ -615,11 +605,12 @@ This action, once triggered, will start a workflow dispatch automation with the
615605
</div>
616606

617607
```yaml+jinja title="example"
618-
on:
619-
- commit
608+
620609
621610
automations:
622611
run_workflow_dispatch:
612+
on:
613+
- commit
623614
if:
624615
- {{ has.fe_code_changes }}
625616
run:

0 commit comments

Comments
 (0)