Skip to content

feat: implement issue #260 — Compliance: check-suite-auto-trigger-347564#277

Closed
don-petry wants to merge 4 commits into
mainfrom
dev-lead/issue-260-20260526-1710
Closed

feat: implement issue #260 — Compliance: check-suite-auto-trigger-347564#277
don-petry wants to merge 4 commits into
mainfrom
dev-lead/issue-260-20260526-1710

Conversation

@don-petry

Copy link
Copy Markdown
Contributor

Closes #260

Implemented by dev-lead agent. Please review.

Copilot AI review requested due to automatic review settings May 26, 2026 17:15
@don-petry don-petry requested a review from a team as a code owner May 26, 2026 17:15
@coderabbitai

coderabbitai Bot commented May 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@don-petry, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 59 minutes and 55 seconds. Learn how PR review limits work.

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

⌛ How to resolve this issue?

After more reviews become available, 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 include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 7616547e-378f-402a-be65-b03d4d6bba7a

📥 Commits

Reviewing files that changed from the base of the PR and between 61aa4ee and eece700.

📒 Files selected for processing (2)
  • .github/workflows/apply-repo-settings.yml
  • .gitignore
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev-lead/issue-260-20260526-1710

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 adds a duplicate .dev-lead/ entry to the .gitignore file. The reviewer correctly pointed out that this entry is already present multiple times, making the addition redundant.

Comment thread .gitignore Outdated

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

Implements remediation for issue #260 by adding automation to re-apply organization-standard GitHub repository settings that disable problematic check-suite auto-triggers which can permanently block auto-merge.

Changes:

  • Add a scheduled + on-push GitHub Actions workflow to run scripts/apply-repo-settings.sh against this repo.
  • Update .gitignore to ignore .dev-lead/ (though it introduces additional duplicate entries).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
.gitignore Adds another .dev-lead/ ignore entry (currently duplicative).
.github/workflows/apply-repo-settings.yml New workflow to periodically apply standard repo settings to prevent check-suite auto-trigger drift.

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

Comment thread .github/workflows/apply-repo-settings.yml Outdated
Comment thread .github/workflows/apply-repo-settings.yml Outdated
@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — fix-bot-comment (applied)

Changes committed and pushed.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9488ccd911

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- name: Apply check-suite preferences
env:
GH_TOKEN: ${{ secrets.GH_ADMIN_PAT }}
run: bash scripts/apply-repo-settings.sh broodly

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Fix check-suite preferences endpoint before scheduling

This scheduled/manual job will fail whenever it invokes the existing script because scripts/apply-repo-settings.sh patches repos/$ORG/$REPO/check-suite/preferences, while GitHub documents the request as PATCH /repos/{owner}/{repo}/check-suites/preferences (plural check-suites). Since this new workflow is the automatic path for applying the compliance setting, each push/schedule/dispatch run reaches that bad API path before applying the repository preference; update the script endpoint before wiring it into the workflow.

Useful? React with 👍 / 👎.

Comment on lines +15 to +16
# Required secret: GH_ADMIN_PAT — fine-grained PAT with the repository
# "Administration" permission (read and write) set at the repo or org level.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Require Checks write on the admin token

If GH_ADMIN_PAT is provisioned exactly as documented here, this workflow still cannot update check-suite preferences: GitHub's docs for Update repository preferences for check suites require a fine-grained token with Checks repository permission set to write (in addition to repository admin access), not just the Administration permission. Please include Checks: read and write in the required secret setup so the scheduled/manual run does not fail with a permissions error.

Useful? React with 👍 / 👎.

@sonarqubecloud

sonarqubecloud Bot commented Jun 1, 2026

Copy link
Copy Markdown

@don-petry

Copy link
Copy Markdown
Contributor Author

Closing due to merge conflict that cannot be auto-rebased. Re-implementing from fresh main via dev-lead.

@don-petry don-petry closed this Jun 2, 2026
auto-merge was automatically disabled June 2, 2026 12:22

Pull request was closed

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