Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 4 additions & 13 deletions docs/automation-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,6 @@ This action, once triggered, reviews the code in the PR, and generates a comment
```yaml+jinja title="example - inline guidelines"
automations:
linearb_ai_review:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐞 Bug - Incomplete Examples: Either move the on triggers inside each automation block (consistent with the run_workflow_dispatch pattern) or provide clear documentation explaining when triggers are needed vs when they're optional.

Suggested change
linearb_ai_review:
linearb_ai_review:
on:
- pull_request

on:
- pr_created
- commit
if:
- {{ not pr.draft }}
- {{ not (is.bot_author or is.bot_branch) }}
Expand All @@ -322,9 +319,6 @@ is:
```yaml+jinja title="example - guidelines from file"
automations:
linearb_ai_review:
on:
- pr_created
- commit
if:
- {{ not pr.draft }}
- {{ not (is.bot_author or is.bot_branch) }}
Expand Down Expand Up @@ -427,10 +421,6 @@ manifest:

automations:
linearb_ai_description:
# trigger it only when PR is created or has new commits
on:
- pr_created
- commit
# skip description for Draft PRs and PRs from bots
if:
- {{ not pr.draft }}
Expand Down Expand Up @@ -501,7 +491,7 @@ automations:
For more information about the `codeExperts` filter function, see the [filter functions documentation](https://docs.gitstream.cm/filter-functions/#codeexperts).

!!! tip "Limit git history for code experts"

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.

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

```yaml+jinja title="example"
on:
- commit


automations:
run_workflow_dispatch:
on:
- commit
if:
- {{ has.fe_code_changes }}
run:
Expand Down