You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: Enable branch protection on .github and bmad-bgreat-suite #28
Create scripts/setup-branch-protection.sh to create rulesets via GitHub API
Update standards/github-settings.md compliance status (added .github deviation, referenced script)
Commit and push to claude/issue-28-20260406-0321
Create PR
What was implemented
scripts/setup-branch-protection.sh — new script that creates or idempotently updates two rulesets via the GitHub REST API on both repos:
pr-quality: 1 required approving review, stale review dismissal, code owner review, last-push approval, thread resolution required, squash-only, no force-push, no deletion
code-quality: required status checks (strict, branch must be up-to-date)
.github: Lint, ShellCheck, Agent Security Scan, SonarCloud, claude
bmad-bgreat-suite: SonarCloud, Analyze, claude
standards/github-settings.md — updated compliance status table to list .github as a deviation, and added a "Remediating Missing Rulesets" section with usage instructions.
Note: The bmad-bgreat-suite check names (SonarCloud, Analyze, claude) should be verified against that repo's actual CI workflow job names before applying. The script supports --dry-run to preview changes.
Self-review PR — no bugs or issues found; script follows patterns from apply-repo-settings.sh
CI check (in progress — requires manual verification)
Code owners: no CODEOWNERS file exists; tagging issue author @don-petry for review
What was implemented
scripts/setup-branch-protection.sh — new script that creates/idempotently updates two rulesets via the GitHub REST API:
pr-quality: 1 required review, stale review dismissal, code owner review, last-push approval, thread resolution, linear history (no merge commits), no force-push, no deletion
code-quality (strict — branch must be up-to-date):
.github: Lint, ShellCheck, Agent Security Scan, SonarCloud, claude
bmad-bgreat-suite: SonarCloud, Analyze, claude
standards/github-settings.md — added .github to the compliance deviations table and added a "Remediating Missing Rulesets" section with --dry-run and apply commands.
Created directly via REST API rather than via the script in closed PR #66, mirroring the existing ruleset structure on petry-projects/google-app-scripts.
Activity
claude commentedon Apr 6, 2026
Claude finished @don-petry's task in 5m 48s —— View job •
claude/issue-28-20260406-0321• Create PR ➔Implementation Complete
pr-quality+code-quality), not classic branch protection.githubrequired checks:Lint,ShellCheck,Agent Security Scan,SonarCloud,claudebmad-bgreat-suiterequired checks:SonarCloud,Analyze,claude(see note below)scripts/setup-branch-protection.shto create rulesets via GitHub APIstandards/github-settings.mdcompliance status (added.githubdeviation, referenced script)claude/issue-28-20260406-0321What was implemented
scripts/setup-branch-protection.sh— new script that creates or idempotently updates two rulesets via the GitHub REST API on both repos:pr-quality: 1 required approving review, stale review dismissal, code owner review, last-push approval, thread resolution required, squash-only, no force-push, no deletioncode-quality: required status checks (strict, branch must be up-to-date).github:Lint,ShellCheck,Agent Security Scan,SonarCloud,claudebmad-bgreat-suite:SonarCloud,Analyze,claudestandards/github-settings.md— updated compliance status table to list.githubas a deviation, and added a "Remediating Missing Rulesets" section with usage instructions.After merging
An admin runs:
fix: add branch protection ruleset setup for .github and bmad-bgreat-…
claude commentedon Apr 6, 2026
Claude finished @don-petry's task in 5m 6s —— View job •
claude/issue-28-20260406-0341• Create PR ➔Implementation complete for issue #28
scripts/setup-branch-protection.shstandards/github-settings.mdcompliance status for.githubrepoapply-repo-settings.shWhat was implemented
scripts/setup-branch-protection.sh— new script that creates/idempotently updates two rulesets via the GitHub REST API:pr-quality: 1 required review, stale review dismissal, code owner review, last-push approval, thread resolution, linear history (no merge commits), no force-push, no deletioncode-quality(strict — branch must be up-to-date):.github:Lint,ShellCheck,Agent Security Scan,SonarCloud,claudebmad-bgreat-suite:SonarCloud,Analyze,claudestandards/github-settings.md— added.githubto the compliance deviations table and added a "Remediating Missing Rulesets" section with--dry-runand apply commands.After merging
fix: enable branch protection rulesets for .github and bmad-bgreat-suite
don-petry commentedon Apr 7, 2026
Resolved by creating branch protection rulesets on both repos:
petry-projects/.github — ruleset
protect-branches(id 14759907)Lint,ShellCheck,Agent Security Scan,SonarCloud,Analyze (actions)petry-projects/bmad-bgreat-suite — ruleset
protect-branches(id 14759908)SonarCloud,Analyze,AgentShield,ValidateBoth rulesets enforce:
Created directly via REST API rather than via the script in closed PR #66, mirroring the existing ruleset structure on petry-projects/google-app-scripts.