Skip to content

Add Branch Naming Convention Enforcement - #102

Merged
thlurte merged 1 commit into
dev-stagefrom
infra/feat/86ex9q6zz-branch-naming-enforcement
May 9, 2026
Merged

thlurte merged 1 commit into
dev-stagefrom
infra/feat/86ex9q6zz-branch-naming-enforcement

Conversation

@arshvinw5

Copy link
Copy Markdown
Collaborator

This PR introduces an automated GitHub Actions workflow that enforces a standardized branch naming convention across the repository to improve organization and consistency.

Changes :
Added branch-naming.yml workflow that triggers on branch creation
Implements automatic validation and deletion of non-compliant branch names
Protects core branches (main, dev, dev-stage, staging, develop) from validation
Branch Naming Convention
All new branches must follow this pattern:

Areas:
fe - Frontend changes
be - Backend changes
infra - Infrastructure/DevOps
config - Configuration changes

Types:
feat - New features :
fix - Bug fixes
hotfix - Critical fixes
docs - Documentation
refactor - Code refactoring
chore - Maintenance tasks
release - Release branches

Examples:
✅ fe/feat/user-dashboard
✅ be/fix/auth-validation
✅ infra/chore/docker-setup
❌ random-branch-name
❌ 86ex9q6zz-feature

Behavior:
New branches: Invalid branch names are automatically deleted
Existing branches: Not affected (workflow only runs on creation)
Protected branches: dev-stage and other core branches are exempt from validation

Impact
⚠️ Team members must use the correct naming format when creating new branches
📋 Improves branch organization and searchability
🔍 Makes it easier to identify branch purpose at a glance
Claude Sonnet 4.5 • 1x

@arshvinw5
arshvinw5 requested a review from thlurte April 30, 2026 05:18
@arshvinw5 arshvinw5 added the enhancement New feature or request label Apr 30, 2026
@thlurte
thlurte merged commit f435d17 into dev-stage May 9, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants