Skip to content

Avoid common App Store and Google Play rejections. Open playbook and pre-submission guard with 117 documented rejection patterns and fixes, privacy manifest and Data safety checks, 95 tracked deadlines (EU AI Act, DSA, COPPA, age laws), and a skill for AI coding agents.

ci: gate unknown bot PRs only, keep owner-run bots open for review (#672)

Mirza Iqbal26412e8860ec
diff --git a/.github/workflows/close-unknown-bot-prs.yml b/.github/workflows/close-unknown-bot-prs.yml
new file mode 100644
index 0000000..245146f
--- /dev/null
+++ b/.github/workflows/close-unknown-bot-prs.yml
@@ -0,0 +1,27 @@
+name: Close unknown bot PRs
+# Owner-run bots (Jules, Copilot, Dependabot) stay open for manual review. Criteria doc 2026-09-14.
+on:
+ pull_request_target:
+ types: [opened, reopened]
+permissions:
+ pull-requests: write
+jobs:
+ gate:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Close only bot accounts that are not on the allowlist
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ PR: ${{ github.event.pull_request.number }}
+ REPO: ${{ github.repository }}
+ AUTHOR: ${{ github.event.pull_request.user.login }}
+ AUTHOR_TYPE: ${{ github.event.pull_request.user.type }}
+ run: |
+ allow='^(google-labs-jules(\[bot\])?|dependabot\[bot\]|github-actions\[bot\]|copilot(-swe-agent)?(\[bot\])?)$'
+ if [ "$AUTHOR_TYPE" != "Bot" ] && ! printf '%s' "$AUTHOR" | grep -qE '\[bot\]$'; then
+ echo "human author $AUTHOR, leaving open for review"
+ elif printf '%s' "$AUTHOR" | grep -qiE "$allow"; then
+ echo "allowlisted bot $AUTHOR, leaving open for review"
+ else
+ gh pr close "$PR" --repo "$REPO" --comment "Closed automatically. This repo does not accept pull requests from unknown bot accounts. Owner-run bots such as Jules, Copilot, and Dependabot are reviewed by hand. See AGENTS.md."
+ fi
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 16c177f..06bfe65 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,9 +4,9 @@ All notable changes to this playbook are recorded here. The format follows Keep
## Unreleased
-### Removed
+### Changed
-- The auto-close workflow for scheduled bot PRs (added in #442 on 30 August 2026). Pull requests opened by Jules scheduled tasks now stay open, are added to the project board as Backlog by the auto-add workflow, and wait for a real review like any other contribution. The eleven PRs it closed on 14 September 2026 had their branches deleted by the workflow and cannot be reopened.
+- The bot PR gate. The workflow from #442 closed every PR whose branch looked bot-generated, which caught the owner's own Jules scheduled tasks. It is replaced by a gate that closes only pull requests from bot accounts not on the allowlist (Jules, Copilot, Dependabot, GitHub Actions), without deleting the branch. Owner-run bot PRs stay open, land on the project board as Backlog through the auto-add workflow, and are reviewed by hand. The eleven Jules PRs closed on 14 September 2026 had their branches deleted by the old workflow and cannot be reopened.
### Added