Skip to content

Commit 7a5732a

Browse files
committed
Add "maintenance" branch name
1 parent 9462478 commit 7a5732a

6 files changed

Lines changed: 9 additions & 196 deletions

File tree

‎.github/pull_request_template.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
- [ ] 🔥 Hot fix (hotfix/*)
1111
- [ ] ✨ New feature (feature/*)
1212
- [ ] 🏗️ Infrastructure (infrastructure/*)
13-
- [ ] 📝 Content update (content/*)
13+
- [ ] � Maintenance (maintenance/*)
14+
- [ ] �📝 Content update (content/*)
1415
- [ ] 📚 Documentation
1516
- [ ] 🎨 Style/UI change
1617
- [ ] ♻️ Code refactoring

‎.github/workflows/branch-protection.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ jobs:
1313
run: |
1414
BRANCH_NAME="${{ github.head_ref }}"
1515
16-
# Valid patterns: bugfix/, hotfix/, feature/, infrastructure/, content/
17-
if [[ ! $BRANCH_NAME =~ ^(bugfix|hotfix|feature|infrastructure|content)/[a-z0-9-]+$ ]]; then
16+
# Valid patterns: bugfix/, hotfix/, feature/, infrastructure/, maintenance/, content/
17+
if [[ ! $BRANCH_NAME =~ ^(bugfix|hotfix|feature|infrastructure|maintenance|content)/[a-z0-9-]+$ ]]; then
1818
echo "❌ Invalid branch name: $BRANCH_NAME"
1919
echo ""
2020
echo "Branch names must follow one of these patterns:"
2121
echo " - bugfix/<description> (e.g., bugfix/fix-navigation-menu)"
2222
echo " - hotfix/<description> (e.g., hotfix/critical-security-patch)"
2323
echo " - feature/<description> (e.g., feature/add-contact-form)"
2424
echo " - infrastructure/<desc> (e.g., infrastructure/setup-ci)"
25+
echo " - maintenance/<desc> (e.g., maintenance/update-dependencies)"
2526
echo " - content/<description> (e.g., content/update-about-page)"
2627
echo ""
2728
echo "Use lowercase letters, numbers, and hyphens only."

‎.husky/scripts/check-branch-name.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
branch=$(git symbolic-ref --short HEAD)
55

66
# Define valid branch name patterns
7-
valid_patterns="^(bugfix|hotfix|feature|infrastructure|content)\/[a-z0-9-]+$"
7+
valid_patterns="^(bugfix|hotfix|feature|infrastructure|content|maintenance)\/[a-z0-9-]+$"
88

99
# Allow main and develop branches (for merges)
1010
if [ "$branch" = "main" ] || [ "$branch" = "develop" ]; then
@@ -20,6 +20,7 @@ if ! echo "$branch" | grep -Eq "$valid_patterns"; then
2020
echo " - hotfix/<description> (e.g., hotfix/critical-security-patch)"
2121
echo " - feature/<description> (e.g., feature/add-contact-form)"
2222
echo " - infrastructure/<desc> (e.g., infrastructure/setup-ci)"
23+
echo " - maintenance/<desc> (e.g., maintenance/update-dependencies)"
2324
echo " - content/<description> (e.g., content/update-about-page)"
2425
echo ""
2526
echo "Use lowercase letters, numbers, and hyphens only."

‎.husky/scripts/prevent-main-commits.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if [ "$branch" = "main" ]; then
1616
echo " 3. Push your branch and create a Pull Request:"
1717
echo " git push -u origin feature/your-feature-name"
1818
echo ""
19-
echo "Valid branch prefixes: bugfix/, hotfix/, feature/, infrastructure/, content/"
19+
echo "Valid branch prefixes: bugfix/, hotfix/, feature/, infrastructure/, maintenance/, content/"
2020
echo ""
2121
exit 1
2222
fi

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ git push -u origin feature/your-feature-name
2727
- `bugfix/*` - Bug fixes
2828
- `hotfix/*` - Critical production fixes
2929
- `infrastructure/*` - DevOps/CI/CD changes
30+
- `maintenance/*` - Dependency updates, refactoring
3031
- `content/*` - Content updates
3132

3233
**Pre-commit Checks:**

‎docs/ERROR_HANDLING_ANALYSIS.md‎

Lines changed: 0 additions & 191 deletions
This file was deleted.

0 commit comments

Comments
 (0)