diff --git a/docs/automation-actions.md b/docs/automation-actions.md index 7bf675e40..5afd1ff5a 100644 --- a/docs/automation-actions.md +++ b/docs/automation-actions.md @@ -298,7 +298,7 @@ automations: - commit if: - {{ not pr.draft }} - - {{ pr.author | match(list=['github-actions', '_bot_', 'dependabot', '[bot]']) | nope }} + - {{ not (is.bot_author or is.bot_branch) }} run: - action: code-review@v1 args: @@ -313,6 +313,10 @@ guidelines: | - In Javascript - Make sure camelCase is used for variable names - Make sure PascalCase is used for class names +is: + bot_author: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | some }} + bot_branch: {{ branch.name | match(list=['renovate/']) | some }} + ``` ```yaml+jinja title="example - guidelines from file" @@ -323,12 +327,16 @@ automations: - commit if: - {{ not pr.draft }} - - {{ pr.author | match(list=['github-actions', '_bot_', 'dependabot', '[bot]']) | nope }} + - {{ not (is.bot_author or is.bot_branch) }} run: - action: code-review@v1 args: approve_on_LGTM: false guidelines: {{ "./REVIEW_RULES.md" | readFile() | dump }} + +is: + bot_author: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | some }} + bot_branch: {{ branch.name | match(list=['renovate/']) | some }} ``` !!! tip "Loading Guidelines from Files" @@ -421,7 +429,7 @@ automations: # skip description for Draft PRs and PRs from bots if: - {{ not pr.draft }} - - {{ pr.author | match(list=['github-actions', '_bot_', 'dependabot', '[bot]']) | nope }} + - {{ not (is.bot_author or is.bot_branch) }} run: - action: describe-changes@v1 args: @@ -436,6 +444,10 @@ guidelines: | # Load the PR template content from a file in the repository TEMPLATE: {{ ".github/PULL_REQUEST_TEMPLATE.md" | readFile() | dump }} + +is: + bot_author: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | some }} + bot_branch: {{ branch.name | match(list=['renovate/']) | some }} ``` !!! tip "Excluded Files" diff --git a/docs/downloads/automation-library/integrations/LinearBAI/code-review-bb.cm b/docs/downloads/automation-library/integrations/LinearBAI/code-review-bb.cm index e7e0f8e62..7ae83ee6e 100644 --- a/docs/downloads/automation-library/integrations/LinearBAI/code-review-bb.cm +++ b/docs/downloads/automation-library/integrations/LinearBAI/code-review-bb.cm @@ -4,7 +4,7 @@ manifest: automations: linearb_ai_review: if: - - {{ pr.author | match(list=['github-actions', '_bot_', 'dependabot', '[bot]']) | nope }} + - {{ not (is.bot_author or is.bot_branch) }} run: - action: code-review@v1 args: @@ -20,3 +20,7 @@ approve_pr_on_lgtm: false # the team repo. # Note: To when the file is in the `cm` repo, use this example: `../cm/REVIEW_RULES.md` guidelines: {{ "./REVIEW_RULES.md" | readFile() | dump }} + +is: + bot_author: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | some }} + bot_branch: {{ branch.name | match(list=['renovate/']) | some }} diff --git a/docs/downloads/automation-library/integrations/LinearBAI/code-review-gl.cm b/docs/downloads/automation-library/integrations/LinearBAI/code-review-gl.cm index a2a0548fc..8e3c0cb3b 100644 --- a/docs/downloads/automation-library/integrations/LinearBAI/code-review-gl.cm +++ b/docs/downloads/automation-library/integrations/LinearBAI/code-review-gl.cm @@ -5,7 +5,7 @@ automations: linearb_ai_review: if: - {{ not pr.draft }} - - {{ pr.author | match(list=['github-actions', '_bot_', 'dependabot', '[bot]']) | nope }} + - {{ not (is.bot_author or is.bot_branch) }} run: - action: code-review@v1 args: @@ -21,3 +21,7 @@ approve_pr_on_lgtm: false # the team repo. # Note: To when the file is in the `cm` repo, use this example: `../cm/REVIEW_RULES.md` guidelines: {{ "./REVIEW_RULES.md" | readFile() | dump }} + +is: + bot_author: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | some }} + bot_branch: {{ branch.name | match(list=['renovate/']) | some }} diff --git a/docs/downloads/automation-library/integrations/LinearBAI/code-review.cm b/docs/downloads/automation-library/integrations/LinearBAI/code-review.cm index 1bbb59123..028c52312 100644 --- a/docs/downloads/automation-library/integrations/LinearBAI/code-review.cm +++ b/docs/downloads/automation-library/integrations/LinearBAI/code-review.cm @@ -9,7 +9,7 @@ automations: - commit if: - {{ not pr.draft }} - - {{ pr.author | match(list=['github-actions', '_bot_', 'dependabot', '[bot]']) | nope }} + - {{ not (is.bot_author or is.bot_branch) }} run: - action: code-review@v1 args: @@ -26,3 +26,7 @@ approve_pr_on_lgtm: false # - For team-specific guidelines: Place the file in the team repository root # The `dump` filter ensures proper YAML formatting when the file content is inserted guidelines: {{ "./REVIEW_RULES.md" | readFile() | dump }} + +is: + bot_author: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | some }} + bot_branch: {{ branch.name | match(list=['renovate/']) | some }} diff --git a/docs/downloads/automation-library/integrations/LinearBAI/describe-pr-bb.cm b/docs/downloads/automation-library/integrations/LinearBAI/describe-pr-bb.cm index 703acce0d..c86a1a505 100644 --- a/docs/downloads/automation-library/integrations/LinearBAI/describe-pr-bb.cm +++ b/docs/downloads/automation-library/integrations/LinearBAI/describe-pr-bb.cm @@ -5,8 +5,12 @@ automations: linearb_ai_description: # skip description for Draft PRs and PRs from bots if: - - {{ pr.author | match(list=['github-actions', '_bot_', 'dependabot', '[bot]']) | nope }} + - {{ not (is.bot_author or is.bot_branch) }} run: - action: describe-changes@v1 args: concat_mode: append + +is: + bot_author: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | some }} + bot_branch: {{ branch.name | match(list=['renovate/']) | some }} diff --git a/docs/downloads/automation-library/integrations/LinearBAI/describe-pr-gl.cm b/docs/downloads/automation-library/integrations/LinearBAI/describe-pr-gl.cm index d51ac49a6..9cacd6fef 100644 --- a/docs/downloads/automation-library/integrations/LinearBAI/describe-pr-gl.cm +++ b/docs/downloads/automation-library/integrations/LinearBAI/describe-pr-gl.cm @@ -6,8 +6,12 @@ automations: # skip description for Draft PRs and PRs from bots if: - {{ not pr.draft }} - - {{ pr.author | match(list=['github-actions', '_bot_', 'dependabot', '[bot]']) | nope }} + - {{ not (is.bot_author or is.bot_branch) }} run: - action: describe-changes@v1 args: concat_mode: append + +is: + bot_author: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | some }} + bot_branch: {{ branch.name | match(list=['renovate/']) | some }} diff --git a/docs/downloads/automation-library/integrations/LinearBAI/describe-pr.cm b/docs/downloads/automation-library/integrations/LinearBAI/describe-pr.cm index bc4dd3d55..80a351e10 100644 --- a/docs/downloads/automation-library/integrations/LinearBAI/describe-pr.cm +++ b/docs/downloads/automation-library/integrations/LinearBAI/describe-pr.cm @@ -11,8 +11,13 @@ automations: # skip description for Draft PRs and PRs from bots if: - {{ not pr.draft }} - - {{ pr.author | match(list=['github-actions', '_bot_', 'dependabot', '[bot]']) | nope }} + - {{ not (is.bot_author or is.bot_branch) }} run: - action: describe-changes@v1 args: concat_mode: append + + +is: + bot_author: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | some }} + bot_branch: {{ branch.name | match(list=['renovate/']) | some }} diff --git a/docs/downloads/gitStream-gl.cm b/docs/downloads/gitStream-gl.cm index 1aad79ddb..2557eeba0 100644 --- a/docs/downloads/gitStream-gl.cm +++ b/docs/downloads/gitStream-gl.cm @@ -20,7 +20,7 @@ automations: linearb_ai_description: if: - {{ not pr.draft }} - - {{ not is.bot }} + - {{ not (is.bot_author or is.bot_branch) }} run: - action: describe-changes@v1 args: @@ -82,4 +82,5 @@ is: docs: {{ files | allDocs }} tests: {{ files | allTests }} image: {{ files | allImages }} - bot: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | some }} + bot_author: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | some }} + bot_branch: {{ branch.name | match(list=['renovate/']) | some }} diff --git a/docs/downloads/gitstream-bb.cm b/docs/downloads/gitstream-bb.cm index aadc8a2f8..974ef637c 100644 --- a/docs/downloads/gitstream-bb.cm +++ b/docs/downloads/gitstream-bb.cm @@ -58,4 +58,5 @@ is: docs: {{ files | allDocs }} tests: {{ files | allTests }} image: {{ files | allImages }} - bot: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | some }} + bot_author: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | some }} + bot_branch: {{ branch.name | match(list=['renovate/']) | some }} diff --git a/docs/downloads/gitstream.cm b/docs/downloads/gitstream.cm index e86f0c5ec..f246fcaaf 100644 --- a/docs/downloads/gitstream.cm +++ b/docs/downloads/gitstream.cm @@ -92,4 +92,5 @@ is: docs: {{ files | allDocs }} tests: {{ files | allTests }} image: {{ files | allImages }} - bot: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | some }} + bot_author: {{ pr.author | match(list=['github-actions', '_bot_', '[bot]', 'dependabot']) | some }} + bot_branch: {{ branch.name | match(list=['renovate/']) | some }}