Skip to content

Commit c34f94c

Browse files
fix(workflows): allow test/* branches to merge into dev
Updated pr-into-dev.yml to accept test/* branches: - Added test to branch name validation regex - Updated header documentation - Added test/ to allowed patterns list Branch patterns now allowed for PRs into dev: - feature/* (new features) - fix/* (bug fixes) - hotfix/* (critical fixes) - test/* (workflow testing) This enables proper testing flow: test/* → dev → main 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8a9bcb5 commit c34f94c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/pr-into-dev.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# ─────────────────────────────────────────────────────────────────
22
# PR into Dev Workflow
33
# ─────────────────────────────────────────────────────────────────
4-
# Validates feature/fix/hotfix pull requests before merging to dev.
4+
# Validates pull requests before merging to dev.
55
#
66
# Validations:
7-
# - Source branch must be feature/*, fix/*, or hotfix/*
7+
# - Source branch must be feature/*, fix/*, hotfix/*, or test/*
88
# - PR title must follow conventional commit format
99
# - At least one issue must be linked
1010
# - All quality gates must pass
1111
# - Fork PRs run read-only checks
1212
#
1313
# Author: Alireza Rezvani
14-
# Date: 2025-11-06
14+
# Date: 2025-11-07
1515
# ─────────────────────────────────────────────────────────────────
1616

1717
name: PR into Dev
@@ -77,13 +77,14 @@ jobs:
7777
echo "🔍 Validating branch name: $BRANCH_NAME"
7878
7979
# Check if branch follows naming convention
80-
if [[ ! "$BRANCH_NAME" =~ ^(feature|fix|hotfix)/ ]]; then
80+
if [[ ! "$BRANCH_NAME" =~ ^(feature|fix|hotfix|test)/ ]]; then
8181
echo "❌ Invalid branch name: $BRANCH_NAME"
8282
echo ""
8383
echo "Branch must start with one of:"
8484
echo " - feature/ (for new features)"
8585
echo " - fix/ (for bug fixes)"
8686
echo " - hotfix/ (for critical fixes)"
87+
echo " - test/ (for workflow testing)"
8788
echo ""
8889
echo "Example: feature/issue-123-add-user-auth"
8990
exit 1

0 commit comments

Comments
 (0)