Public Access
fix(ci): repo-health accepts platform repos and bare dev branch
Universal: Cascade Main → Dev / Cascade main → branches (push) Failing after 1s
Platform: MokoStandards CI / Gate 2: Unit Tests (8.1) (push) Has been skipped
Platform: MokoStandards CI / Gate 2: Unit Tests (8.2) (push) Has been skipped
Platform: MokoStandards CI / Gate 2: Unit Tests (8.3) (push) Has been skipped
Platform: MokoStandards CI / Gate 3: Self-Health Check (push) Has been skipped
Platform: MokoStandards CI / Gate 4: Governance (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 0s
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Release configuration (push) Successful in 3s
Generic: Repo Health / Scripts governance (push) Successful in 3s
Generic: Repo Health / Repository health (push) Failing after 3s
Platform: MokoStandards CI / Gate 1: Code Quality (push) Failing after 35s
Platform: MokoStandards CI / Gate 5: Template Integrity (push) Has been skipped
Platform: MokoStandards CI / CI Summary (push) Failing after 1s
Universal: Cascade Main → Dev / Cascade main → branches (push) Failing after 1s
Platform: MokoStandards CI / Gate 2: Unit Tests (8.1) (push) Has been skipped
Platform: MokoStandards CI / Gate 2: Unit Tests (8.2) (push) Has been skipped
Platform: MokoStandards CI / Gate 2: Unit Tests (8.3) (push) Has been skipped
Platform: MokoStandards CI / Gate 3: Self-Health Check (push) Has been skipped
Platform: MokoStandards CI / Gate 4: Governance (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 0s
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Release configuration (push) Successful in 3s
Generic: Repo Health / Scripts governance (push) Successful in 3s
Generic: Repo Health / Repository health (push) Failing after 3s
Platform: MokoStandards CI / Gate 1: Code Quality (push) Failing after 35s
Platform: MokoStandards CI / Gate 5: Template Integrity (push) Has been skipped
Platform: MokoStandards CI / CI Summary (push) Failing after 1s
Platform repos (with deploy/, cli/, monitoring/) don't need src/. Bare dev branch is now accepted alongside dev/* versioned branches. Authored-by: Moko Consulting
This commit is contained in:
@@ -392,13 +392,18 @@ jobs:
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Source directory: src/ or htdocs/ (either is valid)
|
||||
# Source directory: src/ or htdocs/ (either is valid for extension repos)
|
||||
if [ -d "src" ]; then
|
||||
SOURCE_DIR="src"
|
||||
elif [ -d "htdocs" ]; then
|
||||
SOURCE_DIR="htdocs"
|
||||
else
|
||||
missing_required+=("src/ or htdocs/ (source directory required)")
|
||||
# Platform/tooling repos (deploy/, cli/, monitoring/) don't need src/
|
||||
if [ -d "deploy" ] || [ -d "cli" ] || [ -d "monitoring" ]; then
|
||||
SOURCE_DIR="(platform repo)"
|
||||
else
|
||||
missing_required+=("src/ or htdocs/ (source directory required)")
|
||||
fi
|
||||
fi
|
||||
|
||||
IFS=',' read -r -a required_artifacts <<< "${REPO_REQUIRED_ARTIFACTS}"
|
||||
@@ -450,12 +455,8 @@ jobs:
|
||||
fi
|
||||
done < <(git branch -r --list 'origin/dev*' | sed 's/^ *//')
|
||||
|
||||
if [ "${#dev_paths[@]}" -eq 0 ]; then
|
||||
missing_required+=("dev/* branch (e.g. dev/01.00.00)")
|
||||
fi
|
||||
|
||||
if [ "${#dev_branches[@]}" -gt 0 ]; then
|
||||
missing_required+=("invalid branch dev (must be dev/<version>)")
|
||||
if [ "${#dev_paths[@]}" -eq 0 ] && [ "${#dev_branches[@]}" -eq 0 ]; then
|
||||
missing_required+=("dev or dev/* branch")
|
||||
fi
|
||||
|
||||
content_warnings=()
|
||||
|
||||
Reference in New Issue
Block a user