Files
Jonathan Miller 95880d3e44
Universal: PR Check / Branch Policy (pull_request) Successful in 1s
Universal: PR Check / Validate PR (pull_request) Failing after 5s
Universal: PR Check / Secret Scan (pull_request) Successful in 7s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Failing after 1s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 14s
Platform: mokocli CI / Gate 1: Code Quality (pull_request) Failing after 53s
Platform: mokocli CI / Gate 2: Unit Tests (8.1) (pull_request) Has been cancelled
Platform: mokocli CI / Gate 2: Unit Tests (8.2) (pull_request) Has been cancelled
Platform: mokocli CI / Gate 2: Unit Tests (8.3) (pull_request) Has been cancelled
Platform: mokocli CI / Gate 3: Self-Health Check (pull_request) Has been cancelled
Platform: mokocli CI / Gate 4: Governance (pull_request) Has been cancelled
Platform: mokocli CI / Gate 5: Template Integrity (pull_request) Has been cancelled
Platform: mokocli CI / CI Summary (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
chore: complete namespace cleanup — remove all mokoplatform/MokoStandards/MokoEnterprise refs
390 files: templates, workflows, MCP servers, CLI tools, lib, deploy,
validate, wrappers, configs, docs. Pure find-and-replace.
2026-06-21 01:18:13 -05:00

171 lines
5.1 KiB
Markdown

<!--
Copyright (C) 2026 Moko Consulting <hello@mokoconsulting.tech>
SPDX-License-Identifier: GPL-3.0-or-later
FILE INFORMATION
DEFGROUP: MokoPlatform.Index
INGROUP: MokoPlatform.Templates.Required
REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
PATH: /templates/required/README.md
BRIEF: Required templates README
-->
# Required Templates
This directory contains **REQUIRED** files that must be present in all mokocli-compliant repositories.
## Overview
Required templates are essential files that provide core functionality and ensure consistency across all repositories in the organization. These files must be copied to target repositories and kept synchronized with mokocli updates.
## Required Files
### 1. setup-labels.sh
**Status**: ✅ REQUIRED
**Target Location**: `scripts/maintenance/setup-labels.sh`
**Purpose**: Deploy standardized GitHub labels to repository
**Installation**:
```bash
# Quick install
curl -fsSL https://raw.githubusercontent.com/MokoConsulting/mokocli/main/templates/required/setup-labels.sh > scripts/maintenance/setup-labels.sh
chmod +x scripts/maintenance/setup-labels.sh
# Or copy from mokocli
cp /path/to/mokocli/templates/required/setup-labels.sh scripts/maintenance/setup-labels.sh
chmod +x scripts/maintenance/setup-labels.sh
```
**Usage**:
```bash
# Preview labels (dry-run)
./scripts/maintenance/setup-labels.sh --dry-run
# Deploy labels
./scripts/maintenance/setup-labels.sh
```
**Features**:
- 46 standard labels across 8 categories
- Project types (joomla, dolibarr, generic)
- Languages (php, javascript, typescript, python, css, html)
- Components (documentation, ci-cd, docker, tests, security, dependencies, config, build)
- Workflow (automation, mokocli, needs-review, work-in-progress, breaking-change)
- Priority (critical, high, medium, low)
- Type (bug, feature, enhancement, refactor, chore)
- Status (pending, in-progress, blocked, on-hold, wontfix)
- Size (xs, s, m, l, xl, xxl)
- Health (excellent, good, fair, poor)
**Requirements**:
- GitHub CLI (gh) installed
- Authenticated with GitHub CLI
- Admin access to repository
**Validation**:
```bash
# Check if present
[ -f scripts/maintenance/setup-labels.sh ] && echo "✅ Present" || echo "❌ Missing"
# Check if executable
[ -x scripts/maintenance/setup-labels.sh ] && echo "✅ Executable" || echo "❌ Not executable"
# Verify labels deployed
gh label list | wc -l # Should show 46+ labels
```
## Compliance Checking
### Check Repository Compliance
```bash
# Check if all required files are present
required_files=(
"scripts/maintenance/setup-labels.sh"
)
for file in "${required_files[@]}"; do
if [ -f "$file" ]; then
echo "✅ $file"
else
echo "❌ $file - MISSING"
fi
done
```
### Automated Compliance
Use the mokocli validation scripts:
```bash
# From mokocli repository
python3 scripts/validate/validate_repo_health.py --check-required-files
# Or use bulk validation
php scripts/automation/bulk_update_repos.php --validate-only
```
## Syncing Updates
Required files should be kept in sync with mokocli:
```bash
# Update single file
curl -fsSL https://raw.githubusercontent.com/MokoConsulting/mokocli/main/templates/required/setup-labels.sh > scripts/maintenance/setup-labels.sh
# Or use bulk sync
cd /path/to/mokocli
./scripts/automation/bulk_update_repos.sh --org MokoConsulting --sync-required
```
## Using with GitHub Copilot
To deploy required files to a repository using GitHub Copilot:
```markdown
Deploy required mokocli files to this repository.
Required files to deploy:
1. setup-labels.sh - Label deployment script
Process:
1. Create scripts/maintenance/ directory if not exists
2. Download setup-labels.sh from MokoConsulting/mokocli
3. Copy to scripts/maintenance/setup-labels.sh
4. Make executable: chmod +x scripts/maintenance/setup-labels.sh
5. Test with dry-run: ./scripts/maintenance/setup-labels.sh --dry-run
6. Deploy labels: ./scripts/maintenance/setup-labels.sh
7. Verify labels in repository settings
Source: https://git.mokoconsulting.tech/MokoConsulting/mokocli/tree/main/templates/required
```
## Future Required Files
As mokocli evolves, additional required files may be added:
- **PLANNED**: `.github/labeler.yml` - Auto-labeling configuration
- **PLANNED**: `.editorconfig` - Editor configuration
- **PLANNED**: `scripts/validate/check_compliance.sh` - Standards compliance checker
- **PLANNED**: `.github/workflows/standards-check.yml` - Automated standards validation
## Support
- **Documentation**: [Copilot Sync Standards Guide](../../docs/guide/copilot-sync-standards.md)
- **Label Guide**: [Label Deployment Guide](../../docs/guides/label-deployment.md)
- **Issues**: https://git.mokoconsulting.tech/MokoConsulting/mokocli/issues
- **Contact**: hello@mokoconsulting.tech
## Related Documentation
- [Copilot Sync Standards Guide](../../docs/guide/copilot-sync-standards.md)
- [Label Deployment Guide](../../docs/guides/label-deployment.md)
- [Bulk Repository Updates](../../docs/guide/bulk-repository-updates.md)
- [Template Catalog](../README.md)
---
**Last Updated**: 2026-01-28
**Version**: 03.01.00
**Maintained By**: mokocli Team