Skip to content
7 changes: 7 additions & 0 deletions .github/scripts/apply-repo-settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,11 @@ gh api -X PATCH "repos/$REPO" \
squash_merge_commit_message
}' | jq .

echo "Disabling CodeRabbit (347564) check-suite auto-trigger ..."
Comment thread
don-petry marked this conversation as resolved.

gh api -X PATCH "repos/$REPO/check-suites/preferences" \
Comment thread
don-petry marked this conversation as resolved.
--input - <<'JSON' | jq '.preferences.auto_trigger_checks'
{"auto_trigger_checks": [{"app_id": 347564, "setting": false}]}
Comment thread
don-petry marked this conversation as resolved.
JSON

echo "Done — repository settings applied: https://github.com/$REPO/settings"
Loading