From 87455beb4e2a7b98ccdf67fa3390464eb3ec4582 Mon Sep 17 00:00:00 2001 From: Ofer Affias Date: Thu, 18 Sep 2025 16:17:46 +0300 Subject: [PATCH] Add bot_author checks to skip automation for bot PRs --- docs/managed-mode.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/managed-mode.md b/docs/managed-mode.md index 8a0471ef..a5b2a215 100644 --- a/docs/managed-mode.md +++ b/docs/managed-mode.md @@ -20,6 +20,9 @@ automations: - action: code-review@v1 args: guidelines: {{ loadReviewGuidelines() | dump }} + +is: + bot_author: {{ pr.author | match(list=[\"github-actions\", \"_bot_\", \"[bot]\", \"dependabot\"]) | some }} ``` ### AI PR Description @@ -36,6 +39,9 @@ automations: args: concat_mode: append guidelines: {{ loadDescriptionGuidelines() | dump }} + +is: + bot_author: {{ pr.author | match(list=[\"github-actions\", \"_bot_\", \"[bot]\", \"dependabot\"]) | some }} ``` ### Smart Labeling (Agent Coding Detection) @@ -96,7 +102,7 @@ Label all PRs with an estimated number of minutes it would take someone to revie automations: estimated_time_to_review: if: - - true + - {{ not is.bot_author }} run: - action: add-label@v1 args: @@ -110,6 +116,9 @@ colors: red: 'b60205' yellow: 'fbca04' green: '0e8a16' + +is: + bot_author: {{ pr.author | match(list=[\"github-actions\", \"_bot_\", \"[bot]\", \"dependabot\"]) | some }} ``` ### Dependabot Minor Bump Auto-Approve