Created
October 29, 2025 22:33
-
-
Save vlussenburg/d4695270e5f0d773957da4a3a078c7b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| manifest: | |
| version: 1.0 | |
| automations: | |
| linearb_ai_description: | |
| # Triggers only when PR is created or has new commits, see docs | |
| # https://docs.gitstream.cm/execution-model/#action-level-execution-control | |
| # Skip description for Draft PRs and PRs from bots | |
| if: | |
| - {{ not pr.draft }} | |
| - {{ not (is.bot_author or is.bot_branch) }} | |
| run: | |
| - action: describe-changes@v1 | |
| args: | |
| concat_mode: append | |
| linearb_ai_review: | |
| if: | |
| - {{ not pr.draft }} | |
| - {{ not (is.bot_author or is.bot_branch) }} | |
| run: | |
| - action: code-review@v1 | |
| tag_claude_in_pr: | |
| if: | |
| - {{ is.claude_author or is.claude_co_author }} | |
| run: | |
| - action: add-label@v1 | |
| args: | |
| label: 🤖 Claude Code | |
| tag_copilot_in_pr: | |
| if: | |
| - {{ is.copilot_author or is.copilot_co_author }} | |
| run: | |
| - action: add-label@v1 | |
| args: | |
| label: 🤖 GitHub Copilot | |
| tag_cursor_in_pr: | |
| if: | |
| - {{ is.cursor_author or is.cursor_co_author }} | |
| run: | |
| - action: add-label@v1 | |
| args: | |
| label: 🤖 Cursor AI | |
| tag_linearb_ai_in_pr: | |
| if: | |
| - {{ is.linearb_author or is.linearb_co_author }} | |
| run: | |
| - action: add-label@v1 | |
| args: | |
| label: 🤖 LinearB AI | |
| is: | |
| claude_author: {{ pr.author | lower | includes(regex=r/claude/) }} | |
| claude_co_author: {{ branch.commits.messages | match(regex=r/[Cc]o-[Aa]uthored-[Bb]y:.*[Cc]laude/) | some }} | |
| copilot_author: {{ pr.author | lower | includes(regex=r/copilot/) }} | |
| copilot_co_author: {{ branch.commits.messages | match(regex=r/[Cc]o-[Aa]uthored-[Bb]y:.*([Cc]opilot|[Gg]ithub.*[Cc]opilot)/) | some }} | |
| cursor_author: {{ pr.author | lower | includes(regex=r/cursor/) }} | |
| cursor_co_author: {{ branch.commits.messages | match(regex=r/[Cc]o-[Aa]uthored-[Bb]y:.*[Cc]ursor/) | some }} | |
| linearb_author: {{ pr.author | lower | includes(regex=r/^linearb/) and not (pr.author | lower | includes(regex=r/^linearbci$/)) }} | |
| linearb_co_author: {{ branch.commits.messages | match(regex=r/[Cc]o-[Aa]uthored-[Bb]y:.*(gitstream-cm|linearb).*\[bot\]/) | some }} | |
| bot_author: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | some }} | |
| bot_branch: {{ branch.name | match(list=['renovate/']) | some }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment