Skip to content

Conversation

@morisil
Copy link
Member

@morisil morisil commented Jan 16, 2026

Summary

  • Add allowed_merge_methods = ["squash"] to the repository ruleset's pull_request block
  • Enforces squash-only merges at the ruleset level, matching the repository settings (allow_squash_merge = true, others disabled)

Test plan

  • Run terraform validate on a project using this module with branch_protection = true
  • Run terraform plan to verify the ruleset includes the new allowed_merge_methods setting

🤖 Generated with Claude Code

Enforce squash-only merges at the ruleset level, matching the repository
settings for consistency.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@morisil morisil merged commit c1a415e into main Jan 16, 2026
3 checks passed
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.

2 participants