fix: Enable branch protection rulesets for .github and bmad-bgreat-suite#66
Closed
claude[bot] wants to merge 1 commit intomainfrom
Closed
fix: Enable branch protection rulesets for .github and bmad-bgreat-suite#66claude[bot] wants to merge 1 commit intomainfrom
claude[bot] wants to merge 1 commit intomainfrom
Conversation
Add scripts/setup-branch-protection.sh to create/update the pr-quality and code-quality rulesets on repos that are missing branch protection. Update standards/github-settings.md to document the .github repo deviation and add remediation instructions. Closes #28 Co-authored-by: don-petry <don-petry@users.noreply.github.com>
|
Contributor
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
scripts/setup-branch-protection.sh— creates/idempotently updates thepr-qualityandcode-qualityrulesets on repos missing branch protectionstandards/github-settings.mdto document.githubas a deviation and adds a "Remediating Missing Rulesets" section with usage instructionsChanges
scripts/setup-branch-protection.shNew script that uses the GitHub Rulesets API to apply standard branch protection to
.githubandbmad-bgreat-suite:pr-quality: 1 required review, stale review dismissal, code owner review, last-push approval, thread resolution, squash-only, 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,claudeSupports
--dry-runand is idempotent (updates existing rulesets rather than duplicating).standards/github-settings.md.githubto the compliance deviations table--dry-runand apply commandsAfter Merging
An admin runs:
Closes #28
Generated with Claude Code