diff --git a/.github/workflows/ai-gatekeeper.yaml b/.github/workflows/ai-gatekeeper.yaml index 72dc935..b0f485a 100644 --- a/.github/workflows/ai-gatekeeper.yaml +++ b/.github/workflows/ai-gatekeeper.yaml @@ -48,18 +48,19 @@ jobs: HEAD_SHA=$(echo "$PR_DATA" | jq -r '.headRefOid') echo "head_sha=$HEAD_SHA" >> "$GITHUB_OUTPUT" - # 2. Only enforce when Devin is the PR author + # 2. Only enforce when a known bot is the PR author IS_BOT_AUTHOR=$( echo "$PR_DATA" | jq ' (.author.login | endswith("[bot]")) or (.author.login == "app/devin-ai-integration") + or (.author.login == "dl-bot-integrations") or (.author.is_bot == true) ' ) if [ "$IS_BOT_AUTHOR" != "true" ]; then echo "conclusion=success" >> "$GITHUB_OUTPUT" - printf 'summary=%s\n' "Not a Devin-authored PR. Skipping human-review enforcement." >> "$GITHUB_OUTPUT" + printf 'summary=%s\n' "Not a bot-authored PR. Skipping human-review enforcement." >> "$GITHUB_OUTPUT" echo "details=" >> "$GITHUB_OUTPUT" echo "is_bot=false" >> "$GITHUB_OUTPUT" echo "docs_only=false" >> "$GITHUB_OUTPUT"