Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ playwright-report/
.dev-lead/
# compliance-ci-trigger
# ci-trigger-298
.dev-lead/
Comment on lines 9 to +10

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The entry .dev-lead/ is redundant as it is already defined on lines 6 and 7. This duplicate entry should be removed to keep the file clean.

# ci-trigger-298

21 changes: 21 additions & 0 deletions scripts/apply-repo-settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# 3. Enables secret scanning AI detection
# 4. Enables secret scanning non-provider patterns
# 5. Enables Dependabot security updates
# 6. Disables check-suite auto-trigger for CodeRabbit (347564)
# 7. Disables check-suite auto-trigger for Claude (1236702)
#
# Prerequisites: gh (authenticated with admin access to the repository)
# Usage:
Expand Down Expand Up @@ -61,6 +63,25 @@ echo " ✓ secret_scanning_ai_detection"
echo " ✓ secret_scanning_non_provider_patterns"
echo " ✓ dependabot_security_updates"

# ── Disable check-suite auto-trigger for CodeRabbit and Claude ────────────────
# These apps create queued check suites on every push that are never completed,
# permanently blocking auto-merge. Disabling auto-trigger prevents this.
# Reference: https://github.com/petry-projects/.github/blob/main/standards/github-settings.md#check-suite-auto-trigger-configuration
echo ""
echo "Disabling check-suite auto-trigger for CodeRabbit and Claude..."

gh api -X PATCH "repos/$REPO/check-suites/preferences" --input - <<'JSON'
{
"auto_trigger_checks": [
{"app_id": 347564, "setting": false},
{"app_id": 1236702, "setting": false}
]
}
JSON

echo " ✓ CodeRabbit (347564) auto_trigger_checks: false"
echo " ✓ Claude (1236702) auto_trigger_checks: false"

# ── Verify ────────────────────────────────────────────────────────────────────
echo ""
echo "Verifying settings..."
Comment on lines +83 to 87
Expand Down
Loading