fix: template scaffolding uses .github/workflows instead of .mokogitea/workflows #337

Closed
opened 2026-07-05 20:16:11 +00:00 by jmiller · 0 comments
Owner

MokoGitea repos use .mokogitea/workflows/ (as templates/mokogitea/CLAUDE.md.template:32 explicitly states: "Workflow directory: .mokogitea/ (not .gitea/ or .github/)"), but several template files that get pushed to live repos still reference the GitHub path .github/workflows/.

Functionally wrong (breaks ownership matching)

templates/mokogitea/CODEOWNERS (lines 12–37) — this CODEOWNERS is deployed to MokoGitea repos, yet every entry points at /.github/workflows/…:

  • The paths never match the real .mokogitea/workflows/ files → code-owner protection on workflows is silently a no-op.
  • Most of the listed filenames are also obsolete post workflow-consolidation (deploy-dev.yml, auto-dev-issue.yml, standards-compliance.yml, ci-joomla.yml, update-server.yml, branch-freeze.yml, …).

Fix: repoint to .mokogitea/workflows/ and replace the file list with the current workflow set (auto-release.yml, pre-release.yml, cascade-dev.yml, ci-generic.yml/ci-platform.yml, pr-check.yml, cleanup.yml, branch-cleanup.yml, notify.yml, repo-health.yml, gitleaks.yml, issue-branch.yml, version-set.yml, sync-on-merge.yml). Note the correct CODEOWNERS.template already exists alongside it — the plain CODEOWNERS is the stale artifact.

Lower impact (docs / ignore rules)

  • templates/docs/required/CODEOWNERS:22,25 — same .github/ mismatch
  • templates/docs/required/template-SECURITY.md:162,167 — doc references to .github/workflows/codeql-analysis.yml, .github/dependabot.yml
  • templates/required/README.md, templates/schemas/template-repository-structure.xml — PLANNED/schema stubs referencing .github/workflows
  • .gitignore + templates/configs/gitignore*.github/workflows/*.log (harmless, ignoring a dir that won't exist)

Note

The Template-Generic clone already carries .github/workflows refs in SECURITY.md/.gitattributes/.gitignore, so this has already propagated into at least the template repo. Fixing the source templates here is required before the next sync stops re-seeding it.

MokoGitea repos use `.mokogitea/workflows/` (as `templates/mokogitea/CLAUDE.md.template:32` explicitly states: *"Workflow directory: `.mokogitea/` (not `.gitea/` or `.github/`)"*), but several template files that get pushed to live repos still reference the GitHub path `.github/workflows/`. ## Functionally wrong (breaks ownership matching) **`templates/mokogitea/CODEOWNERS`** (lines 12–37) — this CODEOWNERS is deployed to MokoGitea repos, yet every entry points at `/.github/workflows/…`: - The paths never match the real `.mokogitea/workflows/` files → code-owner protection on workflows is silently a no-op. - Most of the listed filenames are also **obsolete** post workflow-consolidation (`deploy-dev.yml`, `auto-dev-issue.yml`, `standards-compliance.yml`, `ci-joomla.yml`, `update-server.yml`, `branch-freeze.yml`, …). Fix: repoint to `.mokogitea/workflows/` and replace the file list with the current workflow set (`auto-release.yml`, `pre-release.yml`, `cascade-dev.yml`, `ci-generic.yml`/`ci-platform.yml`, `pr-check.yml`, `cleanup.yml`, `branch-cleanup.yml`, `notify.yml`, `repo-health.yml`, `gitleaks.yml`, `issue-branch.yml`, `version-set.yml`, `sync-on-merge.yml`). Note the correct `CODEOWNERS.template` already exists alongside it — the plain `CODEOWNERS` is the stale artifact. ## Lower impact (docs / ignore rules) - `templates/docs/required/CODEOWNERS:22,25` — same `.github/` mismatch - `templates/docs/required/template-SECURITY.md:162,167` — doc references to `.github/workflows/codeql-analysis.yml`, `.github/dependabot.yml` - `templates/required/README.md`, `templates/schemas/template-repository-structure.xml` — PLANNED/schema stubs referencing `.github/workflows` - `.gitignore` + `templates/configs/gitignore*` — `.github/workflows/*.log` (harmless, ignoring a dir that won't exist) ## Note The Template-Generic clone already carries `.github/workflows` refs in `SECURITY.md`/`.gitattributes`/`.gitignore`, so this has already propagated into at least the template repo. Fixing the source templates here is required before the next sync stops re-seeding it.
Sign in to join this conversation.
No labels
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoCLI#337