Skip to content

Comments

Add branch protection and issues setup to template workflow#10

Merged
jpke merged 2 commits intomainfrom
feature/template-self-disable
Jul 4, 2025
Merged

Add branch protection and issues setup to template workflow#10
jpke merged 2 commits intomainfrom
feature/template-self-disable

Conversation

@jpke
Copy link
Owner

@jpke jpke commented Jul 4, 2025

Summary

Added comprehensive branch protection and issues setup to the template initialization workflow.

Changes Made

  • Enable Issues: Added GitHub CLI command to enable issues in new repositories
  • Branch Protection Rules: Added complete branch protection configuration that matches the template repo
  • Documentation: Provided both CLI commands and manual setup instructions
  • Consistency: Ensures all projects created from this template have the same protection settings

Branch Protection Rules Added

  • Pull Request Reviews: 1 approval required
  • Status Checks: Strict mode enabled
  • Force Pushes: Allowed
  • Branch Deletions: Disabled
  • Admin Enforcement: Disabled (admins can bypass)

Why This Matters

  • Ensures new projects have proper security settings from the start
  • Maintains consistency across all projects created from this template
  • Provides clear documentation for both automated and manual setup
  • Enables issues for PRD management as outlined in the workflow

This completes the template setup workflow by ensuring repository security and project management features are properly configured.

jpke added 2 commits July 4, 2025 18:06
- Add final step to change alwaysApply from true to false after template initialization
- Prevents detailed template setup instructions from consuming context window space
- Ensures template setup rules are visible during one-time setup but hidden afterwards
- Maintains accessibility via reference in workflow.mdc if needed later
…rkflow

- Add GitHub CLI commands to enable issues in new repos
- Include complete branch protection rules that match template repo
- Provide both CLI and manual setup instructions
- Document all protection settings for consistency across projects
@jpke jpke merged commit 2133ff0 into main Jul 4, 2025
7 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.

1 participant