Skip to content

docs: document branch protection rules for main#24

Merged
masuda-so merged 4 commits into
mainfrom
docs/branch-protection
Apr 13, 2026
Merged

docs: document branch protection rules for main#24
masuda-so merged 4 commits into
mainfrom
docs/branch-protection

Conversation

@masuda-so
Copy link
Copy Markdown
Owner

Summary

  • Add ## Branch Protection section to CLAUDE.md documenting the protect-main GitHub Ruleset
  • Add coupling comment to .github/workflows/ci.yml warning that the job name is referenced by the ruleset

Context

Created the protect-main ruleset (ID 14985776) on the main branch with:

  • Require pull request (0 approvals, sole-owner repo)
  • Required status checks (strict): CI job "Validate hooks, scripts, and init"
  • Required linear history (squash/rebase only)
  • Block force pushes
  • Block deletion

Test plan

  • Ruleset created and verified via gh api
  • All 5 rules active on main: deletion, non_fast_forward, pull_request, required_linear_history, required_status_checks
  • This PR itself validates the workflow: must pass CI before merge

masuda-so and others added 4 commits April 13, 2026 09:31
- on-end-distill.sh: pass JSON as argv instead of pipe+heredoc conflict
- init.sh: remove unused CLAUDE_SETTINGS_LOCAL variable

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add Branch Protection section to CLAUDE.md describing the protect-main
GitHub Ruleset (PR required, CI gate, linear history, no force push).
Add coupling comment to ci.yml warning that the job name is referenced
by the ruleset.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@masuda-so masuda-so merged commit d6c459d into main Apr 13, 2026
1 check passed
@masuda-so masuda-so deleted the docs/branch-protection branch April 13, 2026 03:05
masuda-so added a commit that referenced this pull request May 10, 2026
* fix: resolve ShellCheck SC2259 and SC2034 CI failures

- on-end-distill.sh: pass JSON as argv instead of pipe+heredoc conflict
- init.sh: remove unused CLAUDE_SETTINGS_LOCAL variable

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: remove cascading unused CLAUDE_SETTINGS_DIR variable (SC2034)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: document branch protection rules for main

Add Branch Protection section to CLAUDE.md describing the protect-main
GitHub Ruleset (PR required, CI gate, linear history, no force push).
Add coupling comment to ci.yml warning that the job name is referenced
by the ruleset.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.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.

1 participant