diff --git a/.github/workflows/repo_health.yml b/.github/workflows/repo_health.yml index afa836c..91ddd52 100644 --- a/.github/workflows/repo_health.yml +++ b/.github/workflows/repo_health.yml @@ -559,25 +559,17 @@ jobs: git fetch origin --prune - dev_paths=() dev_branches=() # Look for remote branches matching origin/dev*. - # A plain origin/dev is considered invalid; we require dev/ branches. + # A plain origin/dev is prohibited; only dev/ branches are allowed. while IFS= read -r b; do name="${b#origin/}" if [ "${name}" = 'dev' ]; then dev_branches+=("${name}") - else - dev_paths+=("${name}") fi done < <(git branch -r --list 'origin/dev*' | sed 's/^ *//') - # If there are no dev/* branches, fail the guardrail. - if [ "${#dev_paths[@]}" -eq 0 ]; then - missing_required+=("dev/* branch (e.g. dev/01.00.00)") - fi - # If a plain dev branch exists (origin/dev), flag it as invalid. if [ "${#dev_branches[@]}" -gt 0 ]; then missing_required+=("invalid branch dev (must be dev/)")