From fe97a9d719f64807b6b2b90697dab620295a40a9 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 19 Aug 2026 21:47:43 +0000 Subject: [PATCH] fix(ci): stop Agent Shin reconsider from triggering on bot comments Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/workflows/triage_reconsider.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/triage_reconsider.yml b/.github/workflows/triage_reconsider.yml index f35f681d09a..f68f91365bc 100644 --- a/.github/workflows/triage_reconsider.yml +++ b/.github/workflows/triage_reconsider.yml @@ -20,6 +20,11 @@ name: Agent Shin — reconsider # commenter being either the PR/issue author or an internal collaborator # (OWNER/MEMBER/COLLABORATOR) so random commenters cannot DOS the LLM # judge or force a reopen. +# +# Bot comments never trigger a run: Agent Shin's own close and warning +# comments quote `@agent-shin reconsider` in their "how to bring this PR +# back" instructions, so without this gate every sweep comment triggers a +# self-reconsider that can only ever be unauthorized. on: issue_comment: @@ -35,6 +40,9 @@ jobs: if: | github.repository == 'BerriAI/litellm' && contains(github.event.comment.body, '@agent-shin reconsider') + && github.event.comment.user.type != 'Bot' + && !endsWith(github.event.comment.user.login, '[bot]') + && github.event.comment.user.login != 'oss-agent-shin' runs-on: ubuntu-latest steps: - name: Authorize commenter