Skip to content

feat: implement issue #159 — Compliance: check-suite-auto-trigger-347564 - #195

Merged
don-petry merged 7 commits into
mainfrom
dev-lead/issue-159-20260521-1922
May 24, 2026
Merged

feat: implement issue #159 — Compliance: check-suite-auto-trigger-347564#195
don-petry merged 7 commits into
mainfrom
dev-lead/issue-159-20260521-1922

Conversation

@don-petry

Copy link
Copy Markdown
Contributor

Closes #159

Implemented by dev-lead agent. Please review.

@don-petry
don-petry requested a review from a team as a code owner May 21, 2026 19:23
Copilot AI review requested due to automatic review settings May 21, 2026 19:23
@coderabbitai

coderabbitai Bot commented May 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@github-actions[bot], we couldn't start this review because you've used your available PR reviews for now.

Your plan currently allows 1 review/hour. Refill in 58 minutes and 53 seconds.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more review capacity refills, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 3d2ce583-47bc-403f-8475-49dbf2f759ad

📥 Commits

Reviewing files that changed from the base of the PR and between 9bfd377 and 9e36c97.

📒 Files selected for processing (1)
  • .github/scripts/apply-repo-settings.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev-lead/issue-159-20260521-1922

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the repository settings script to disable the CodeRabbit check-suite auto-trigger via the GitHub API. Additionally, a redundant entry for .dev-lead/ was added to the .gitignore file, which the reviewer correctly identified as unnecessary clutter that should be removed.

Comment thread .gitignore

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Implements repository compliance for issue #159 by disabling the CodeRabbit GitHub App’s check-suite auto-trigger via GitHub’s REST API.

Changes:

  • Adds a gh api call to update check-suites/preferences for app_id 347564 (CodeRabbit).
  • Prints a targeted status message and outputs the updated auto_trigger_checks preferences.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/scripts/apply-repo-settings.sh
Comment thread .github/scripts/apply-repo-settings.sh
Comment thread .github/scripts/apply-repo-settings.sh
@don-petry

Copy link
Copy Markdown
Contributor Author

@donpetry-bot please review — compliance fix awaiting auto-review (manually triggered after pr-auto-review.yml is not deployed to this fleet repo)

@donpetry-bot

Copy link
Copy Markdown
Contributor

@don-petry I'm on it — starting a fresh review now. Results will appear in a few minutes.

donpetry-bot
donpetry-bot previously approved these changes May 23, 2026

@donpetry-bot donpetry-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated review — APPROVED ✓

Risk: LOW
Reviewed commit: 6b0361df0abe972cba5819695b5a0c5a162b7fff
Review mode: triage-approved (single reviewer)

Summary

Adds a single gh api PATCH call to .github/scripts/apply-repo-settings.sh that disables CodeRabbit's (app_id 347564) check-suite auto-trigger, directly resolving compliance finding #159. Change is idempotent, scoped to one settings script, and uses a fixed app_id matching the standard reference.

Linked issue analysis

#159Compliance: check-suite-auto-trigger-347564. The issue states CodeRabbit's auto-trigger creates queued check suites that never complete, permanently blocking auto-merge, and instructs running the repo-settings script. The PR substantively addresses this by adding the exact remediation: a PATCH /repos/{repo}/check-suites/preferences with auto_trigger_checks: [{app_id: 347564, setting: false}]. Resolution mechanism (the Closes #159 keyword) will auto-close the issue on merge.

Findings

  • ✅ Change is minimal and surgical (7 additions, 0 deletions, 1 file).
  • ✅ Heredoc input is single-quoted (<<'JSON'), so no variable interpolation concerns.
  • ✅ Script remains idempotent — re-running the PATCH is safe.
  • ✅ App ID 347564 is hard-coded and matches the compliance standard reference, so there is no injection or dynamic-input risk.
  • ✅ No secrets, credentials, migrations, or auth surface touched.
  • set -euo pipefail already in effect; the new pipeline will fail loudly if the API call fails.

No blocking issues found.

CI status

All required checks passing:

  • CodeQL (Analyze actions): ✅ SUCCESS
  • CodeQL: ✅ SUCCESS
  • CodeRabbit status: ✅ SUCCESS
  • SonarQube Cloud Quality Gate: ✅ Passed (0 new issues, 0 security hotspots)

Merge is currently BLOCKED only because review is required from @petry-projects/org-leads; this approval should unblock it (subject to branch-protection rules).


Reviewed automatically by the PR-review agent (single-reviewer mode: opus 4.7). Reply if you need a human review.

@don-petry
don-petry requested a review from donpetry-bot May 23, 2026 23:46
@donpetry-bot

Copy link
Copy Markdown
Contributor

@don-petry assigned me as reviewer — starting a fresh review now. Results will appear in a few minutes.

@donpetry-bot donpetry-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated review — APPROVED ✓

Risk: LOW
Reviewed commit: 6b0361df0abe972cba5819695b5a0c5a162b7fff
Review mode: triage-approved (single reviewer)

Summary

Adds a single gh api PATCH call to .github/scripts/apply-repo-settings.sh that disables CodeRabbit's (app_id 347564) check-suite auto-trigger, directly resolving compliance finding #159. Change is minimal (7 additions, 0 deletions, 1 file), idempotent, scoped to one settings script, and uses the exact fixed app_id from the standard reference.

Linked issue analysis

#159Compliance: check-suite-auto-trigger-347564. The issue states CodeRabbit's auto-trigger creates queued check suites that never complete, permanently blocking auto-merge, and instructs running the repo-settings script. The PR substantively addresses this by adding a PATCH /repos/{repo}/check-suites/preferences call with auto_trigger_checks: [{app_id: 347564, setting: false}]. The Closes #159 keyword in the PR body will auto-close the issue on merge.

Findings

  • ✅ Change is minimal and surgical (7 additions, 0 deletions, 1 file).
  • ✅ Heredoc input is single-quoted (<<'JSON'), so no variable interpolation concerns.
  • ✅ Script remains idempotent — re-running the PATCH is safe.
  • ✅ App ID 347564 is hard-coded and matches the compliance standard reference; no injection or dynamic-input risk.
  • ✅ No secrets, credentials, migrations, or auth surface touched.
  • set -euo pipefail already in effect upstream; the new pipeline will fail loudly if the API call fails.
  • ✅ Triage tier's low-risk assessment is correct — no findings missed.

No blocking issues found.

CI status

All required checks passing:

  • CodeQL (Analyze actions): ✅ SUCCESS
  • CodeQL: ✅ SUCCESS
  • CodeRabbit status: ✅ SUCCESS
  • SonarQube Cloud Quality Gate: ✅ Passed (0 new issues, 0 security hotspots)
  • Dev-Lead Agent dispatch: ✅ SUCCESS

Merge is currently BLOCKED only pending required review from @petry-projects/org-leads; this approval should unblock the gate (subject to branch-protection rules).


Reviewed automatically by the PR-review agent (single-reviewer mode: opus 4.7). Reply if you need a human review.

@donpetry-bot
donpetry-bot dismissed their stale review May 23, 2026 23:49

Superseded by automated re-review at 6b0361d.

@don-petry don-petry closed this May 23, 2026
@don-petry don-petry reopened this May 23, 2026
@don-petry don-petry closed this May 23, 2026
@don-petry don-petry reopened this May 23, 2026
@sonarqubecloud

Copy link
Copy Markdown

@don-petry
don-petry merged commit b181744 into main May 24, 2026
19 of 20 checks passed
@don-petry
don-petry deleted the dev-lead/issue-159-20260521-1922 branch May 24, 2026 00:01
don-petry added a commit that referenced this pull request Jun 19, 2026
…564 (#195)

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compliance: check-suite-auto-trigger-347564

3 participants