Public Access
Compare commits
3 Commits
stable
...
development
| Author | SHA1 | Date | |
|---|---|---|---|
| 7a3d5380a7 | |||
| 925dfc41e2 | |||
| 7275c8c646 |
@@ -1,4 +1,4 @@
|
|||||||
# mokoplatform
|
# mokocli
|
||||||
|
|
||||||
Enterprise automation, validation, sync, and governance engine for all Moko Consulting repositories.
|
Enterprise automation, validation, sync, and governance engine for all Moko Consulting repositories.
|
||||||
|
|
||||||
@@ -9,7 +9,7 @@ Enterprise automation, validation, sync, and governance engine for all Moko Cons
|
|||||||
| **Language** | PHP 8.1+ |
|
| **Language** | PHP 8.1+ |
|
||||||
| **Version** | 09.01.00 |
|
| **Version** | 09.01.00 |
|
||||||
| **Branch** | develop on `dev`, merge to `main` (protected) |
|
| **Branch** | develop on `dev`, merge to `main` (protected) |
|
||||||
| **Wiki** | [mokoplatform Wiki](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki) |
|
| **Wiki** | [mokocli Wiki](https://git.mokoconsulting.tech/MokoConsulting/mokocli/wiki) |
|
||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
@@ -73,4 +73,4 @@ PHPStan runs with `--memory-limit=512M`. CI enforces PHPCS errors; PHPStan is `c
|
|||||||
- **Workflow directory**: `.mokogitea/` (not `.gitea/` or `.github/`)
|
- **Workflow directory**: `.mokogitea/` (not `.gitea/` or `.github/`)
|
||||||
- **Wiki**: documentation lives in the Gitea wiki, not `docs/` files
|
- **Wiki**: documentation lives in the Gitea wiki, not `docs/` files
|
||||||
- **New CLI tools**: extend `CliFramework`, not `CLIApp` (legacy)
|
- **New CLI tools**: extend `CliFramework`, not `CLIApp` (legacy)
|
||||||
- **Standards**: [MokoCli](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home)
|
- **Standards**: [MokoCli](https://git.mokoconsulting.tech/MokoConsulting/mokocli/wiki/Home)
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ contact_links:
|
|||||||
- name: 💬 Ask a Question
|
- name: 💬 Ask a Question
|
||||||
url: https://mokoconsulting.tech/
|
url: https://mokoconsulting.tech/
|
||||||
about: Get help or ask questions through our website
|
about: Get help or ask questions through our website
|
||||||
- name: 📚 mokoplatform Documentation
|
- name: 📚 mokocli Documentation
|
||||||
url: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
url: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
about: View our coding standards and best practices
|
about: View our coding standards and best practices
|
||||||
- name: 🔒 Report a Security Vulnerability
|
- name: 🔒 Report a Security Vulnerability
|
||||||
url: https://git.mokoconsulting.tech/mokoconsulting-tech/.github-private/security/advisories/new
|
url: https://git.mokoconsulting.tech/mokoconsulting-tech/.github-private/security/advisories/new
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ Suggested text here
|
|||||||
<!-- Add any other context, screenshots, or references -->
|
<!-- Add any other context, screenshots, or references -->
|
||||||
|
|
||||||
## Standards Alignment
|
## Standards Alignment
|
||||||
- [ ] Follows mokoplatform documentation guidelines
|
- [ ] Follows mokocli documentation guidelines
|
||||||
- [ ] Uses en_US/en_GB localization
|
- [ ] Uses en_US/en_GB localization
|
||||||
- [ ] Includes proper SPDX headers where applicable
|
- [ ] Includes proper SPDX headers where applicable
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ If you have ideas about how this could be implemented, share them here:
|
|||||||
Add any other context, mockups, or screenshots about the feature request here.
|
Add any other context, mockups, or screenshots about the feature request here.
|
||||||
|
|
||||||
## Relevant Standards
|
## Relevant Standards
|
||||||
Does this relate to any standards in [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform)?
|
Does this relate to any standards in [mokocli](https://git.mokoconsulting.tech/MokoConsulting/mokocli)?
|
||||||
- [ ] Accessibility (WCAG 2.1 AA)
|
- [ ] Accessibility (WCAG 2.1 AA)
|
||||||
- [ ] Localization (en_US/en_GB)
|
- [ ] Localization (en_US/en_GB)
|
||||||
- [ ] Security best practices
|
- [ ] Security best practices
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ Use this template only for:
|
|||||||
<!-- Describe how this could be addressed -->
|
<!-- Describe how this could be addressed -->
|
||||||
|
|
||||||
## Standards Reference
|
## Standards Reference
|
||||||
Does this relate to security standards in [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform)?
|
Does this relate to security standards in [mokocli](https://git.mokoconsulting.tech/MokoConsulting/mokocli)?
|
||||||
- [ ] SPDX license identifiers
|
- [ ] SPDX license identifiers
|
||||||
- [ ] Secret management
|
- [ ] Secret management
|
||||||
- [ ] Dependency security
|
- [ ] Dependency security
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
# FILE INFORMATION
|
# FILE INFORMATION
|
||||||
# DEFGROUP: Gitea.Workflow
|
# DEFGROUP: Gitea.Workflow
|
||||||
# INGROUP: mokoplatform.Automation
|
# INGROUP: mokocli.Automation
|
||||||
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
# PATH: /.gitea/workflows/branch-protection.yml
|
# PATH: /.gitea/workflows/branch-protection.yml
|
||||||
# BRIEF: Apply standardised branch protection rules to all governed repositories
|
# BRIEF: Apply standardised branch protection rules to all governed repositories
|
||||||
#
|
#
|
||||||
@@ -62,7 +62,7 @@ jobs:
|
|||||||
API="${GITEA_URL}/api/v1"
|
API="${GITEA_URL}/api/v1"
|
||||||
|
|
||||||
# Platform/standards/infra repos to exclude
|
# Platform/standards/infra repos to exclude
|
||||||
EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private mokoplatform MokoTesting"
|
EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private mokocli MokoTesting"
|
||||||
EXCLUDE="$EXCLUDE MokoCli-Template-Client MokoCli-Template-Dolibarr MokoCli-Template-Generic MokoCli-Template-Joomla MokoDoliProjTemplate"
|
EXCLUDE="$EXCLUDE MokoCli-Template-Client MokoCli-Template-Dolibarr MokoCli-Template-Generic MokoCli-Template-Joomla MokoDoliProjTemplate"
|
||||||
|
|
||||||
if [ -n "${{ inputs.repos }}" ]; then
|
if [ -n "${{ inputs.repos }}" ]; then
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
# FILE INFORMATION
|
# FILE INFORMATION
|
||||||
# DEFGROUP: Gitea.Workflow
|
# DEFGROUP: Gitea.Workflow
|
||||||
# INGROUP: mokoplatform.Automation
|
# INGROUP: mokocli.Automation
|
||||||
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
# PATH: /.gitea/workflows/bulk-repo-sync.yml
|
# PATH: /.gitea/workflows/bulk-repo-sync.yml
|
||||||
# BRIEF: Bulk repo sync — runs from API repo, syncs standards to all governed repos
|
# BRIEF: Bulk repo sync — runs from API repo, syncs standards to all governed repos
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
#
|
#
|
||||||
# FILE INFORMATION
|
# FILE INFORMATION
|
||||||
# DEFGROUP: mokoplatform.CI
|
# DEFGROUP: mokocli.CI
|
||||||
# INGROUP: mokoplatform
|
# INGROUP: mokocli
|
||||||
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
# PATH: /.gitea/workflows/pr-branch-check.yml
|
# PATH: /.gitea/workflows/pr-branch-check.yml
|
||||||
# BRIEF: PR branch merge policy enforcement
|
# BRIEF: PR branch merge policy enforcement
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
#
|
#
|
||||||
# FILE INFORMATION
|
# FILE INFORMATION
|
||||||
# DEFGROUP: Gitea.Workflow
|
# DEFGROUP: Gitea.Workflow
|
||||||
# INGROUP: mokoplatform.Automation
|
# INGROUP: mokocli.Automation
|
||||||
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
# PATH: /.gitea/workflows/renovate.yml
|
# PATH: /.gitea/workflows/renovate.yml
|
||||||
# BRIEF: Run Renovate Bot across all governed repos for dependency updates
|
# BRIEF: Run Renovate Bot across all governed repos for dependency updates
|
||||||
#
|
#
|
||||||
@@ -61,7 +61,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
API="${GITEA_URL}/api/v1"
|
API="${GITEA_URL}/api/v1"
|
||||||
|
|
||||||
EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private mokoplatform MokoTesting"
|
EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private mokocli MokoTesting"
|
||||||
EXCLUDE="$EXCLUDE MokoCli-Template-Client MokoCli-Template-Dolibarr MokoCli-Template-Generic MokoCli-Template-Joomla MokoDoliProjTemplate"
|
EXCLUDE="$EXCLUDE MokoCli-Template-Client MokoCli-Template-Dolibarr MokoCli-Template-Generic MokoCli-Template-Joomla MokoDoliProjTemplate"
|
||||||
|
|
||||||
if [ -n "${{ inputs.repos }}" ]; then
|
if [ -n "${{ inputs.repos }}" ]; then
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
#
|
#
|
||||||
# FILE INFORMATION
|
# FILE INFORMATION
|
||||||
# DEFGROUP: Gitea.Workflow
|
# DEFGROUP: Gitea.Workflow
|
||||||
# INGROUP: mokoplatform.Maintenance
|
# INGROUP: mokocli.Maintenance
|
||||||
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
# PATH: /.gitea/workflows/sync-wikis.yml
|
# PATH: /.gitea/workflows/sync-wikis.yml
|
||||||
# BRIEF: Daily sync of all Gitea wikis to consolidated GitHub wiki repo
|
# BRIEF: Daily sync of all Gitea wikis to consolidated GitHub wiki repo
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# FILE INFORMATION
|
# FILE INFORMATION
|
||||||
# DEFGROUP: Gitea.Workflow
|
# DEFGROUP: Gitea.Workflow
|
||||||
# INGROUP: MokoStandards.Universal
|
# INGROUP: MokoCli.Universal
|
||||||
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
# PATH: /.mokogitea/workflows/branch-cleanup.yml
|
# PATH: /.mokogitea/workflows/branch-cleanup.yml
|
||||||
# VERSION: 01.00.00
|
# VERSION: 01.00.00
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# FILE INFORMATION
|
# FILE INFORMATION
|
||||||
# DEFGROUP: Gitea.Workflow
|
# DEFGROUP: Gitea.Workflow
|
||||||
# INGROUP: MokoStandards.CI
|
# INGROUP: MokoCli.CI
|
||||||
# REPO: https://git.mokoconsulting.tech/MokoConsulting/Template-Generic
|
# REPO: https://git.mokoconsulting.tech/MokoConsulting/Template-Generic
|
||||||
# PATH: /.gitea/workflows/ci-generic.yml
|
# PATH: /.gitea/workflows/ci-generic.yml
|
||||||
# VERSION: 01.00.00
|
# VERSION: 01.00.00
|
||||||
|
|||||||
@@ -4,18 +4,18 @@
|
|||||||
#
|
#
|
||||||
# FILE INFORMATION
|
# FILE INFORMATION
|
||||||
# DEFGROUP: Gitea.Workflow
|
# DEFGROUP: Gitea.Workflow
|
||||||
# INGROUP: mokoplatform.CI
|
# INGROUP: mokocli.CI
|
||||||
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
# PATH: /.mokogitea/workflows/ci-platform.yml
|
# PATH: /.mokogitea/workflows/ci-platform.yml
|
||||||
# VERSION: 09.23.00
|
# VERSION: 09.23.00
|
||||||
# BRIEF: mokoplatform CI — the standards engine validates itself
|
# BRIEF: mokocli CI — the standards engine validates itself
|
||||||
#
|
#
|
||||||
# +========================================================================+
|
# +========================================================================+
|
||||||
# | MOKO-PLATFORM CI |
|
# | MOKO-PLATFORM CI |
|
||||||
# +========================================================================+
|
# +========================================================================+
|
||||||
# | |
|
# | |
|
||||||
# | This is NOT a generic CI workflow. This is the self-validation |
|
# | This is NOT a generic CI workflow. This is the self-validation |
|
||||||
# | pipeline for the central mokoplatform enterprise engine. |
|
# | pipeline for the central mokocli enterprise engine. |
|
||||||
# | |
|
# | |
|
||||||
# | It dogfoods every tool the platform ships to governed repos: |
|
# | It dogfoods every tool the platform ships to governed repos: |
|
||||||
# | |
|
# | |
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
# | |
|
# | |
|
||||||
# +========================================================================+
|
# +========================================================================+
|
||||||
|
|
||||||
name: "Platform: mokoplatform CI"
|
name: "Platform: mokocli CI"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -421,7 +421,7 @@ jobs:
|
|||||||
- name: Check gate results
|
- name: Check gate results
|
||||||
run: |
|
run: |
|
||||||
{
|
{
|
||||||
echo "# mokoplatform CI"
|
echo "# mokocli CI"
|
||||||
echo ""
|
echo ""
|
||||||
echo "| Gate | Job | Status |"
|
echo "| Gate | Job | Status |"
|
||||||
echo "|---|---|---|"
|
echo "|---|---|---|"
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
#
|
#
|
||||||
# FILE INFORMATION
|
# FILE INFORMATION
|
||||||
# DEFGROUP: Gitea.Workflow
|
# DEFGROUP: Gitea.Workflow
|
||||||
# INGROUP: MokoStandards.Maintenance
|
# INGROUP: MokoCli.Maintenance
|
||||||
# REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards
|
# REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoCli
|
||||||
# PATH: /.gitea/workflows/cleanup.yml
|
# PATH: /.gitea/workflows/cleanup.yml
|
||||||
# VERSION: 01.00.00
|
# VERSION: 01.00.00
|
||||||
# BRIEF: Scheduled cleanup — delete merged branches and old workflow runs
|
# BRIEF: Scheduled cleanup — delete merged branches and old workflow runs
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
#
|
#
|
||||||
# FILE INFORMATION
|
# FILE INFORMATION
|
||||||
# DEFGROUP: Gitea.Workflow
|
# DEFGROUP: Gitea.Workflow
|
||||||
# INGROUP: MokoStandards.Deploy
|
# INGROUP: MokoCli.Deploy
|
||||||
# REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
|
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
# PATH: /templates/workflows/joomla/deploy-manual.yml.template
|
# PATH: /templates/workflows/joomla/deploy-manual.yml.template
|
||||||
# VERSION: 04.07.00
|
# VERSION: 04.07.00
|
||||||
# BRIEF: Manual SFTP deploy to dev server for Joomla repos
|
# BRIEF: Manual SFTP deploy to dev server for Joomla repos
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
php -v && composer --version
|
php -v && composer --version
|
||||||
|
|
||||||
- name: Setup MokoStandards tools
|
- name: Setup MokoCli tools
|
||||||
env:
|
env:
|
||||||
GA_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }}
|
GA_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }}
|
||||||
MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }}
|
MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }}
|
||||||
@@ -48,7 +48,7 @@ jobs:
|
|||||||
COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GA_TOKEN || github.token }}"}}'
|
COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GA_TOKEN || github.token }}"}}'
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 --branch main --quiet \
|
git clone --depth 1 --branch main --quiet \
|
||||||
"https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/MokoStandards-API.git" \
|
"https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokocli.git" \
|
||||||
/tmp/mokostandards-api 2>/dev/null || true
|
/tmp/mokostandards-api 2>/dev/null || true
|
||||||
if [ -d "/tmp/mokostandards-api" ] && [ -f "/tmp/mokostandards-api/composer.json" ]; then
|
if [ -d "/tmp/mokostandards-api" ] && [ -f "/tmp/mokostandards-api/composer.json" ]; then
|
||||||
cd /tmp/mokostandards-api && composer install --no-dev --no-interaction --quiet 2>/dev/null || true
|
cd /tmp/mokostandards-api && composer install --no-dev --no-interaction --quiet 2>/dev/null || true
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
#
|
#
|
||||||
# FILE INFORMATION
|
# FILE INFORMATION
|
||||||
# DEFGROUP: Gitea.Workflow
|
# DEFGROUP: Gitea.Workflow
|
||||||
# INGROUP: MokoStandards.Security
|
# INGROUP: MokoCli.Security
|
||||||
# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/MokoStandards-API
|
# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokocli
|
||||||
# PATH: /templates/workflows/gitleaks.yml.template
|
# PATH: /templates/workflows/gitleaks.yml.template
|
||||||
# VERSION: 01.00.00
|
# VERSION: 01.00.00
|
||||||
# BRIEF: Secret scanning — detect leaked credentials, API keys, and tokens
|
# BRIEF: Secret scanning — detect leaked credentials, API keys, and tokens
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
# FILE INFORMATION
|
# FILE INFORMATION
|
||||||
# DEFGROUP: Gitea.Workflow
|
# DEFGROUP: Gitea.Workflow
|
||||||
# INGROUP: mokocli.Automation
|
# INGROUP: mokocli.Automation
|
||||||
# VERSION: 09.37.00
|
# VERSION: 09.37.01
|
||||||
# BRIEF: Auto-create feature branch when an issue is opened
|
# BRIEF: Auto-create feature branch when an issue is opened
|
||||||
|
|
||||||
name: "Universal: Issue Branch"
|
name: "Universal: Issue Branch"
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
#
|
#
|
||||||
# FILE INFORMATION
|
# FILE INFORMATION
|
||||||
# DEFGROUP: Gitea.Workflow
|
# DEFGROUP: Gitea.Workflow
|
||||||
# INGROUP: MokoStandards.Notifications
|
# INGROUP: MokoCli.Notifications
|
||||||
# REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards
|
# REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoCli
|
||||||
# PATH: /.gitea/workflows/notify.yml
|
# PATH: /.gitea/workflows/notify.yml
|
||||||
# VERSION: 01.00.00
|
# VERSION: 01.00.00
|
||||||
# BRIEF: Push notifications via ntfy on release success or workflow failure
|
# BRIEF: Push notifications via ntfy on release success or workflow failure
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
#
|
#
|
||||||
# FILE INFORMATION
|
# FILE INFORMATION
|
||||||
# DEFGROUP: Gitea.Workflow
|
# DEFGROUP: Gitea.Workflow
|
||||||
# INGROUP: moko-platform.CI
|
# INGROUP: mokocli.CI
|
||||||
# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform
|
# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokocli
|
||||||
# PATH: /templates/workflows/universal/pr-check.yml.template
|
# PATH: /templates/workflows/universal/pr-check.yml.template
|
||||||
# VERSION: 09.23.00
|
# VERSION: 09.23.00
|
||||||
# BRIEF: PR gate — branch policy + code validation before merge
|
# BRIEF: PR gate — branch policy + code validation before merge
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
#
|
#
|
||||||
# FILE INFORMATION
|
# FILE INFORMATION
|
||||||
# DEFGROUP: Gitea.Workflow
|
# DEFGROUP: Gitea.Workflow
|
||||||
# INGROUP: MokoStandards.Security
|
# INGROUP: MokoCli.Security
|
||||||
# REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards
|
# REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoCli
|
||||||
# PATH: /.gitea/workflows/security-audit.yml
|
# PATH: /.gitea/workflows/security-audit.yml
|
||||||
# VERSION: 01.00.00
|
# VERSION: 01.00.00
|
||||||
# BRIEF: Dependency vulnerability scanning for composer and npm packages
|
# BRIEF: Dependency vulnerability scanning for composer and npm packages
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"generated_at": "2026-03-10T19:51:42.238134Z",
|
"generated_at": "2026-03-10T19:51:42.238134Z",
|
||||||
"repository": "MokoConsulting/mokoplatform",
|
"repository": "MokoConsulting/mokocli",
|
||||||
"version": "1.0.0"
|
"version": "1.0.0"
|
||||||
},
|
},
|
||||||
"scripts": [
|
"scripts": [
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ BRIEF: Release changelog
|
|||||||
|
|
||||||
## [09.37.00] --- 2026-06-21
|
## [09.37.00] --- 2026-06-21
|
||||||
|
|
||||||
|
## [09.37.00] --- 2026-06-21
|
||||||
|
|
||||||
## [09.36.00] --- 2026-06-21
|
## [09.36.00] --- 2026-06-21
|
||||||
|
|
||||||
## [09.36.00] --- 2026-06-21
|
## [09.36.00] --- 2026-06-21
|
||||||
|
|||||||
+2
-2
@@ -4,14 +4,14 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||||||
FILE INFORMATION
|
FILE INFORMATION
|
||||||
DEFGROUP: MokoPlatform.Root
|
DEFGROUP: MokoPlatform.Root
|
||||||
INGROUP: MokoPlatform
|
INGROUP: MokoPlatform
|
||||||
REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
PATH: /PLUGIN_SCRIPTS.md
|
PATH: /PLUGIN_SCRIPTS.md
|
||||||
BRIEF: Plugin system CLI documentation
|
BRIEF: Plugin system CLI documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
# Plugin System CLI Scripts
|
# Plugin System CLI Scripts
|
||||||
|
|
||||||
Command-line scripts for validating, health checking, and managing projects using the mokoplatform plugin system.
|
Command-line scripts for validating, health checking, and managing projects using the mokocli plugin system.
|
||||||
|
|
||||||
## Available Scripts
|
## Available Scripts
|
||||||
|
|
||||||
|
|||||||
@@ -4,17 +4,17 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||||||
FILE INFORMATION
|
FILE INFORMATION
|
||||||
DEFGROUP: MokoPlatform.Root
|
DEFGROUP: MokoPlatform.Root
|
||||||
INGROUP: MokoPlatform
|
INGROUP: MokoPlatform
|
||||||
REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
PATH: /README.md
|
PATH: /README.md
|
||||||
VERSION: 09.37.00
|
VERSION: 09.37.01
|
||||||
BRIEF: Project overview and documentation
|
BRIEF: Project overview and documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
# mokoplatform Enterprise API
|
# mokocli Enterprise API
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
PHP implementation of mokoplatform — enterprise standards, automation framework, workflow templates, and bulk sync tooling.
|
PHP implementation of mokocli — enterprise standards, automation framework, workflow templates, and bulk sync tooling.
|
||||||
|
|
||||||
> **Primary platform**: [Gitea — git.mokoconsulting.tech](https://git.mokoconsulting.tech/MokoConsulting/MokoCli-API)
|
> **Primary platform**: [Gitea — git.mokoconsulting.tech](https://git.mokoconsulting.tech/MokoConsulting/MokoCli-API)
|
||||||
> **Backup mirror**: [GitHub](https://github.com/MokoConsulting/MokoCli-API) *(read-only mirror)*
|
> **Backup mirror**: [GitHub](https://github.com/MokoConsulting/MokoCli-API) *(read-only mirror)*
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||||||
FILE INFORMATION
|
FILE INFORMATION
|
||||||
DEFGROUP: MokoPlatform.Index
|
DEFGROUP: MokoPlatform.Index
|
||||||
INGROUP: MokoPlatform.Analysis
|
INGROUP: MokoPlatform.Analysis
|
||||||
REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
PATH: /analysis/index.md
|
PATH: /analysis/index.md
|
||||||
BRIEF: Analysis directory index
|
BRIEF: Analysis directory index
|
||||||
-->
|
-->
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: MokoPlatform.Automation
|
* DEFGROUP: MokoPlatform.Automation
|
||||||
* INGROUP: MokoPlatform.Scripts
|
* INGROUP: MokoPlatform.Scripts
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /automation/bulk_joomla_template.php
|
* PATH: /automation/bulk_joomla_template.php
|
||||||
* BRIEF: Bulk scaffold and sync Joomla template repositories
|
* BRIEF: Bulk scaffold and sync Joomla template repositories
|
||||||
*
|
*
|
||||||
@@ -42,7 +42,7 @@ use MokoCli\{
|
|||||||
*
|
*
|
||||||
* Provides three operations for Joomla template projects:
|
* Provides three operations for Joomla template projects:
|
||||||
* --scaffold: Create a new template repository with the full directory structure
|
* --scaffold: Create a new template repository with the full directory structure
|
||||||
* --sync: Push mokoplatform files to existing template repositories
|
* --sync: Push mokocli files to existing template repositories
|
||||||
* --list: List all repositories tagged as joomla-template
|
* --list: List all repositories tagged as joomla-template
|
||||||
*
|
*
|
||||||
* Works with both GitHub and Gitea via the PlatformAdapterFactory.
|
* Works with both GitHub and Gitea via the PlatformAdapterFactory.
|
||||||
@@ -318,7 +318,7 @@ class BulkJoomlaTemplate extends CliFramework
|
|||||||
$name,
|
$name,
|
||||||
$path,
|
$path,
|
||||||
$content,
|
$content,
|
||||||
"chore: update {$path} from mokoplatform",
|
"chore: update {$path} from mokocli",
|
||||||
$existingSha,
|
$existingSha,
|
||||||
$branch
|
$branch
|
||||||
);
|
);
|
||||||
|
|||||||
+40
-40
@@ -11,7 +11,7 @@
|
|||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: MokoPlatform.Automation
|
* DEFGROUP: MokoPlatform.Automation
|
||||||
* INGROUP: MokoPlatform.Scripts
|
* INGROUP: MokoPlatform.Scripts
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /automation/bulk_sync.php
|
* PATH: /automation/bulk_sync.php
|
||||||
* BRIEF: Enterprise-grade bulk repository synchronization
|
* BRIEF: Enterprise-grade bulk repository synchronization
|
||||||
*/
|
*/
|
||||||
@@ -42,7 +42,7 @@ use MokoCli\{
|
|||||||
/**
|
/**
|
||||||
* Bulk Repository Synchronization Tool
|
* Bulk Repository Synchronization Tool
|
||||||
*
|
*
|
||||||
* Synchronizes mokoplatform files across multiple repositories using
|
* Synchronizes mokocli files across multiple repositories using
|
||||||
* the Enterprise library for robust, audited operations.
|
* the Enterprise library for robust, audited operations.
|
||||||
*/
|
*/
|
||||||
class BulkSync extends CliFramework
|
class BulkSync extends CliFramework
|
||||||
@@ -95,7 +95,7 @@ class BulkSync extends CliFramework
|
|||||||
*/
|
*/
|
||||||
protected function run(): int
|
protected function run(): int
|
||||||
{
|
{
|
||||||
$this->log("🚀 mokoplatform Bulk Synchronization v" . self::VERSION, 'INFO');
|
$this->log("🚀 mokocli Bulk Synchronization v" . self::VERSION, 'INFO');
|
||||||
|
|
||||||
// Initialize enterprise components
|
// Initialize enterprise components
|
||||||
if (!$this->initializeComponents()) {
|
if (!$this->initializeComponents()) {
|
||||||
@@ -180,7 +180,7 @@ class BulkSync extends CliFramework
|
|||||||
$results['health'] = $this->runHealthChecksAll($org, $repositories);
|
$results['health'] = $this->runHealthChecksAll($org, $repositories);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create/update tracking issue in mokoplatform
|
// Create/update tracking issue in mokocli
|
||||||
$this->createSyncIssue($org, $results);
|
$this->createSyncIssue($org, $results);
|
||||||
|
|
||||||
// Create/update a failure issue when any repos failed
|
// Create/update a failure issue when any repos failed
|
||||||
@@ -244,7 +244,7 @@ class BulkSync extends CliFramework
|
|||||||
* Filter repositories based on include/exclude lists
|
* Filter repositories based on include/exclude lists
|
||||||
*/
|
*/
|
||||||
/** Repositories that are permanently excluded from bulk sync. */
|
/** Repositories that are permanently excluded from bulk sync. */
|
||||||
private const ALWAYS_EXCLUDE = ['mokoplatform', '.github-private'];
|
private const ALWAYS_EXCLUDE = ['mokocli', '.github-private'];
|
||||||
|
|
||||||
private function filterRepositories(array $repositories, array $include, array $exclude): array
|
private function filterRepositories(array $repositories, array $include, array $exclude): array
|
||||||
{
|
{
|
||||||
@@ -426,7 +426,7 @@ class BulkSync extends CliFramework
|
|||||||
$this->log("", 'ERROR');
|
$this->log("", 'ERROR');
|
||||||
$this->log("Required Implementation:", 'ERROR');
|
$this->log("Required Implementation:", 'ERROR');
|
||||||
$this->log(" 1. Clone/fetch target repository", 'ERROR');
|
$this->log(" 1. Clone/fetch target repository", 'ERROR');
|
||||||
$this->log(" 2. Apply file updates based on mokoplatform configuration", 'ERROR');
|
$this->log(" 2. Apply file updates based on mokocli configuration", 'ERROR');
|
||||||
$this->log(" 3. Create pull request with changes", 'ERROR');
|
$this->log(" 3. Create pull request with changes", 'ERROR');
|
||||||
$this->log(" 4. Handle merge conflicts and validation", 'ERROR');
|
$this->log(" 4. Handle merge conflicts and validation", 'ERROR');
|
||||||
$this->log("", 'ERROR');
|
$this->log("", 'ERROR');
|
||||||
@@ -837,7 +837,7 @@ class BulkSync extends CliFramework
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ensure all standard mokoplatform labels exist on a target repository.
|
* Ensure all standard mokocli labels exist on a target repository.
|
||||||
*
|
*
|
||||||
* Fetches existing labels first (GET) and only POSTs the ones that are
|
* Fetches existing labels first (GET) and only POSTs the ones that are
|
||||||
* missing. This avoids the 422 "already exists" responses that would
|
* missing. This avoids the 422 "already exists" responses that would
|
||||||
@@ -872,7 +872,7 @@ class BulkSync extends CliFramework
|
|||||||
|
|
||||||
// Workflow / Process
|
// Workflow / Process
|
||||||
['automation', '8B4513', 'Automated processes or scripts'],
|
['automation', '8B4513', 'Automated processes or scripts'],
|
||||||
['mokoplatform', 'B60205', 'mokoplatform compliance'],
|
['mokocli', 'B60205', 'mokocli compliance'],
|
||||||
['needs-review', 'FBCA04', 'Awaiting code review'],
|
['needs-review', 'FBCA04', 'Awaiting code review'],
|
||||||
['work-in-progress', 'D93F0B', 'Work in progress, not ready for merge'],
|
['work-in-progress', 'D93F0B', 'Work in progress, not ready for merge'],
|
||||||
['breaking-change', 'D73A4A', 'Breaking API or functionality change'],
|
['breaking-change', 'D73A4A', 'Breaking API or functionality change'],
|
||||||
@@ -912,8 +912,8 @@ class BulkSync extends CliFramework
|
|||||||
['health: poor', 'FF6B6B', 'Health score below 50'],
|
['health: poor', 'FF6B6B', 'Health score below 50'],
|
||||||
|
|
||||||
// Sync / Automation (used by bulk_sync, scan_drift, check_repo_health)
|
// Sync / Automation (used by bulk_sync, scan_drift, check_repo_health)
|
||||||
['standards-update', 'B60205', 'mokoplatform sync update'],
|
['standards-update', 'B60205', 'mokocli sync update'],
|
||||||
['standards-drift', 'FBCA04', 'Repository drifted from mokoplatform'],
|
['standards-drift', 'FBCA04', 'Repository drifted from mokocli'],
|
||||||
['sync-report', '0075CA', 'Bulk sync run report'],
|
['sync-report', '0075CA', 'Bulk sync run report'],
|
||||||
['sync-failure', 'D73A4A', 'Bulk sync failure requiring attention'],
|
['sync-failure', 'D73A4A', 'Bulk sync failure requiring attention'],
|
||||||
['push-failure', 'D73A4A', 'File push failure requiring attention'],
|
['push-failure', 'D73A4A', 'File push failure requiring attention'],
|
||||||
@@ -925,10 +925,10 @@ class BulkSync extends CliFramework
|
|||||||
['type: version', '0E8A16', 'Version-related change'],
|
['type: version', '0E8A16', 'Version-related change'],
|
||||||
];
|
];
|
||||||
|
|
||||||
// Quick check: if the repo already has the 'mokoplatform' label, it was
|
// Quick check: if the repo already has the 'mokocli' label, it was
|
||||||
// provisioned previously — skip the expensive full label provisioning.
|
// provisioned previously — skip the expensive full label provisioning.
|
||||||
try {
|
try {
|
||||||
$probe = $this->api->get("/repos/{$org}/{$repo}/labels/mokoplatform");
|
$probe = $this->api->get("/repos/{$org}/{$repo}/labels/mokocli");
|
||||||
if (!empty($probe['name'])) {
|
if (!empty($probe['name'])) {
|
||||||
return; // already provisioned
|
return; // already provisioned
|
||||||
}
|
}
|
||||||
@@ -1024,7 +1024,7 @@ class BulkSync extends CliFramework
|
|||||||
*/
|
*/
|
||||||
private function updateOpenBranches(string $org, string $repo): void
|
private function updateOpenBranches(string $org, string $repo): void
|
||||||
{
|
{
|
||||||
$syncBranchPrefix = 'chore/sync-mokoplatform-';
|
$syncBranchPrefix = 'chore/sync-mokocli-';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$defaultBranch = 'main';
|
$defaultBranch = 'main';
|
||||||
@@ -1055,7 +1055,7 @@ class BulkSync extends CliFramework
|
|||||||
$this->api->post("/repos/{$org}/{$repo}/merges", [
|
$this->api->post("/repos/{$org}/{$repo}/merges", [
|
||||||
'base' => $branch,
|
'base' => $branch,
|
||||||
'head' => $defaultBranch,
|
'head' => $defaultBranch,
|
||||||
'commit_message' => "chore: merge {$defaultBranch} into {$branch} (mokoplatform sync)",
|
'commit_message' => "chore: merge {$defaultBranch} into {$branch} (mokocli sync)",
|
||||||
]);
|
]);
|
||||||
$this->log(" 🔀 Merged {$defaultBranch} → {$branch} (PR #{$prNum})", 'INFO');
|
$this->log(" 🔀 Merged {$defaultBranch} → {$branch} (PR #{$prNum})", 'INFO');
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
@@ -1076,7 +1076,7 @@ class BulkSync extends CliFramework
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Records which sync run touched the repo, the PR number, and the
|
* Records which sync run touched the repo, the PR number, and the
|
||||||
* mokoplatform version that was applied — giving each repo a clear audit
|
* mokocli version that was applied — giving each repo a clear audit
|
||||||
* trail of what was changed and why.
|
* trail of what was changed and why.
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
@@ -1119,16 +1119,16 @@ class BulkSync extends CliFramework
|
|||||||
$minor = self::VERSION_MINOR;
|
$minor = self::VERSION_MINOR;
|
||||||
$force = isset($this->options['force']) ? ' *(--force)*' : '';
|
$force = isset($this->options['force']) ? ' *(--force)*' : '';
|
||||||
$prLink = $this->adapter->getPullRequestWebUrl($org, $repo, $prNumber);
|
$prLink = $this->adapter->getPullRequestWebUrl($org, $repo, $prNumber);
|
||||||
$source = $this->adapter->getRepoWebUrl($org, 'mokoplatform');
|
$source = $this->adapter->getRepoWebUrl($org, 'mokocli');
|
||||||
$branchName = 'chore/sync-mokoplatform-v' . $minor;
|
$branchName = 'chore/sync-mokocli-v' . $minor;
|
||||||
$branchLink = $this->adapter->getBranchWebUrl($org, $repo, $branchName);
|
$branchLink = $this->adapter->getBranchWebUrl($org, $repo, $branchName);
|
||||||
|
|
||||||
$title = "chore: mokoplatform v{$minor} sync tracking";
|
$title = "chore: mokocli v{$minor} sync tracking";
|
||||||
|
|
||||||
$body = <<<MD
|
$body = <<<MD
|
||||||
## mokoplatform Sync Applied
|
## mokocli Sync Applied
|
||||||
|
|
||||||
A mokoplatform bulk sync run has updated files in this repository.
|
A mokocli bulk sync run has updated files in this repository.
|
||||||
|
|
||||||
| Field | Value |
|
| Field | Value |
|
||||||
|-------|-------|
|
|-------|-------|
|
||||||
@@ -1144,13 +1144,13 @@ class BulkSync extends CliFramework
|
|||||||
Protected files (README, CHANGELOG, GOVERNANCE, etc.) were not overwritten.
|
Protected files (README, CHANGELOG, GOVERNANCE, etc.) were not overwritten.
|
||||||
|
|
||||||
---
|
---
|
||||||
*Updated automatically by [mokoplatform]({$source}) `bulk_sync.php`*
|
*Updated automatically by [mokocli]({$source}) `bulk_sync.php`*
|
||||||
MD;
|
MD;
|
||||||
|
|
||||||
// Dedent heredoc
|
// Dedent heredoc
|
||||||
$body = preg_replace('/^ /m', '', $body);
|
$body = preg_replace('/^ /m', '', $body);
|
||||||
|
|
||||||
$labelNames = ['standards-update', 'mokoplatform', 'type: chore', 'automation'];
|
$labelNames = ['standards-update', 'mokocli', 'type: chore', 'automation'];
|
||||||
$labels = $this->resolveLabelIds($org, $repo, $labelNames);
|
$labels = $this->resolveLabelIds($org, $repo, $labelNames);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -1213,7 +1213,7 @@ class BulkSync extends CliFramework
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a tracking issue in mokoplatform for this sync run.
|
* Create a tracking issue in mokocli for this sync run.
|
||||||
*/
|
*/
|
||||||
private function createSyncIssue(string $org, array $results): void
|
private function createSyncIssue(string $org, array $results): void
|
||||||
{
|
{
|
||||||
@@ -1232,7 +1232,7 @@ class BulkSync extends CliFramework
|
|||||||
$issues = $results['issues'] ?? [];
|
$issues = $results['issues'] ?? [];
|
||||||
|
|
||||||
// Stable title — no timestamp so repeated runs update a single issue
|
// Stable title — no timestamp so repeated runs update a single issue
|
||||||
$title = "sync: mokoplatform v" . self::VERSION_MINOR . " bulk sync report";
|
$title = "sync: mokocli v" . self::VERSION_MINOR . " bulk sync report";
|
||||||
|
|
||||||
$protection = $results['protection'] ?? [];
|
$protection = $results['protection'] ?? [];
|
||||||
$hasProtect = !empty($protection);
|
$hasProtect = !empty($protection);
|
||||||
@@ -1281,7 +1281,7 @@ class BulkSync extends CliFramework
|
|||||||
: "|---|---|---|---|";
|
: "|---|---|---|---|";
|
||||||
|
|
||||||
$body = <<<MD
|
$body = <<<MD
|
||||||
## mokoplatform Bulk Sync Report
|
## mokocli Bulk Sync Report
|
||||||
|
|
||||||
**Organisation:** `{$org}`
|
**Organisation:** `{$org}`
|
||||||
**Triggered:** {$now}{$force}
|
**Triggered:** {$now}{$force}
|
||||||
@@ -1301,7 +1301,7 @@ class BulkSync extends CliFramework
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Search for existing issue by label — any state so we can reopen closed ones
|
// Search for existing issue by label — any state so we can reopen closed ones
|
||||||
$existing = $this->api->get("/repos/{$org}/mokoplatform/issues", [
|
$existing = $this->api->get("/repos/{$org}/mokocli/issues", [
|
||||||
'labels' => 'sync-report',
|
'labels' => 'sync-report',
|
||||||
'state' => 'all',
|
'state' => 'all',
|
||||||
'per_page' => 1,
|
'per_page' => 1,
|
||||||
@@ -1309,8 +1309,8 @@ class BulkSync extends CliFramework
|
|||||||
'direction' => 'desc',
|
'direction' => 'desc',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$labelNames = ['sync-report', 'mokoplatform', 'type: chore', 'automation'];
|
$labelNames = ['sync-report', 'mokocli', 'type: chore', 'automation'];
|
||||||
$labels = $this->resolveLabelIds($org, 'mokoplatform', $labelNames);
|
$labels = $this->resolveLabelIds($org, 'mokocli', $labelNames);
|
||||||
$existing = array_values($existing);
|
$existing = array_values($existing);
|
||||||
|
|
||||||
if (!empty($existing) && isset($existing[0]['number'])) {
|
if (!empty($existing) && isset($existing[0]['number'])) {
|
||||||
@@ -1319,22 +1319,22 @@ class BulkSync extends CliFramework
|
|||||||
if (($existing[0]['state'] ?? 'open') === 'closed') {
|
if (($existing[0]['state'] ?? 'open') === 'closed') {
|
||||||
$patch['state'] = 'open';
|
$patch['state'] = 'open';
|
||||||
}
|
}
|
||||||
$this->api->patch("/repos/{$org}/mokoplatform/issues/{$issueNumber}", $patch);
|
$this->api->patch("/repos/{$org}/mokocli/issues/{$issueNumber}", $patch);
|
||||||
try {
|
try {
|
||||||
$this->api->post("/repos/{$org}/mokoplatform/issues/{$issueNumber}/labels", ['labels' => $labels]);
|
$this->api->post("/repos/{$org}/mokocli/issues/{$issueNumber}/labels", ['labels' => $labels]);
|
||||||
} catch (\Exception $le) {
|
} catch (\Exception $le) {
|
||||||
/* non-fatal */
|
/* non-fatal */
|
||||||
}
|
}
|
||||||
$this->log("📋 Sync report issue updated: {$org}/mokoplatform#{$issueNumber}", 'INFO');
|
$this->log("📋 Sync report issue updated: {$org}/mokocli#{$issueNumber}", 'INFO');
|
||||||
} else {
|
} else {
|
||||||
$issue = $this->api->post("/repos/{$org}/mokoplatform/issues", [
|
$issue = $this->api->post("/repos/{$org}/mokocli/issues", [
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'body' => $body,
|
'body' => $body,
|
||||||
'labels' => $labels,
|
'labels' => $labels,
|
||||||
'assignees' => ['jmiller'],
|
'assignees' => ['jmiller'],
|
||||||
]);
|
]);
|
||||||
$issueNumber = $issue['number'] ?? '?';
|
$issueNumber = $issue['number'] ?? '?';
|
||||||
$this->log("📋 Sync report issue created: {$org}/mokoplatform#{$issueNumber}", 'INFO');
|
$this->log("📋 Sync report issue created: {$org}/mokocli#{$issueNumber}", 'INFO');
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->log("⚠️ Failed to create/update sync report issue: " . $e->getMessage(), 'WARN');
|
$this->log("⚠️ Failed to create/update sync report issue: " . $e->getMessage(), 'WARN');
|
||||||
@@ -1342,7 +1342,7 @@ class BulkSync extends CliFramework
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update a failure issue in mokoplatform when repos fail to sync.
|
* Create or update a failure issue in mokocli when repos fail to sync.
|
||||||
* Uses the 'sync-failure' label so it is distinct from the run-report issue.
|
* Uses the 'sync-failure' label so it is distinct from the run-report issue.
|
||||||
* Reopens a closed issue rather than creating a duplicate.
|
* Reopens a closed issue rather than creating a duplicate.
|
||||||
*/
|
*/
|
||||||
@@ -1388,7 +1388,7 @@ class BulkSync extends CliFramework
|
|||||||
$body = preg_replace('/^ /m', '', $body);
|
$body = preg_replace('/^ /m', '', $body);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$existing = $this->api->get("/repos/{$org}/mokoplatform/issues", [
|
$existing = $this->api->get("/repos/{$org}/mokocli/issues", [
|
||||||
'labels' => 'sync-failure',
|
'labels' => 'sync-failure',
|
||||||
'state' => 'all',
|
'state' => 'all',
|
||||||
'per_page' => 1,
|
'per_page' => 1,
|
||||||
@@ -1403,17 +1403,17 @@ class BulkSync extends CliFramework
|
|||||||
if (($existing[0]['state'] ?? 'open') === 'closed') {
|
if (($existing[0]['state'] ?? 'open') === 'closed') {
|
||||||
$patch['state'] = 'open';
|
$patch['state'] = 'open';
|
||||||
}
|
}
|
||||||
$this->api->patch("/repos/{$org}/mokoplatform/issues/{$num}", $patch);
|
$this->api->patch("/repos/{$org}/mokocli/issues/{$num}", $patch);
|
||||||
$this->log("🚨 Failure issue #{$num} updated: {$org}/mokoplatform#{$num}", 'WARN');
|
$this->log("🚨 Failure issue #{$num} updated: {$org}/mokocli#{$num}", 'WARN');
|
||||||
} else {
|
} else {
|
||||||
$issue = $this->api->post("/repos/{$org}/mokoplatform/issues", [
|
$issue = $this->api->post("/repos/{$org}/mokocli/issues", [
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'body' => $body,
|
'body' => $body,
|
||||||
'labels' => $this->resolveLabelIds($org, 'mokoplatform', ['sync-failure']),
|
'labels' => $this->resolveLabelIds($org, 'mokocli', ['sync-failure']),
|
||||||
'assignees' => ['jmiller'],
|
'assignees' => ['jmiller'],
|
||||||
]);
|
]);
|
||||||
$num = $issue['number'] ?? '?';
|
$num = $issue['number'] ?? '?';
|
||||||
$this->log("🚨 Failure issue created: {$org}/mokoplatform#{$num}", 'WARN');
|
$this->log("🚨 Failure issue created: {$org}/mokocli#{$num}", 'WARN');
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->log("⚠️ Could not create/update failure issue: " . $e->getMessage(), 'WARN');
|
$this->log("⚠️ Could not create/update failure issue: " . $e->getMessage(), 'WARN');
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
#
|
#
|
||||||
# FILE INFORMATION
|
# FILE INFORMATION
|
||||||
# DEFGROUP: Automation.CI
|
# DEFGROUP: Automation.CI
|
||||||
# INGROUP: moko-platform.Automation
|
# INGROUP: mokocli.Automation
|
||||||
# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform
|
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
# PATH: /automation/ci-issue-reporter.sh
|
# PATH: /automation/ci-issue-reporter.sh
|
||||||
# VERSION: 09.23.00
|
# VERSION: 09.23.00
|
||||||
# BRIEF: Creates or updates a Gitea issue when a CI gate fails.
|
# BRIEF: Creates or updates a Gitea issue when a CI gate fails.
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: MokoPlatform.Automation
|
* DEFGROUP: MokoPlatform.Automation
|
||||||
* INGROUP: MokoPlatform
|
* INGROUP: MokoPlatform
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /automation/enrich_manifest_xml.php
|
* PATH: /automation/enrich_manifest_xml.php
|
||||||
* BRIEF: Enrich XML manifests with repo-specific build and deploy details
|
* BRIEF: Enrich XML manifests with repo-specific build and deploy details
|
||||||
*
|
*
|
||||||
@@ -46,7 +46,7 @@ class EnrichManifestXmlCli extends CliFramework
|
|||||||
$parser = new ManifestParser();
|
$parser = new ManifestParser();
|
||||||
$tmpBase = sys_get_temp_dir() . '/moko-enrich-' . getmypid();
|
$tmpBase = sys_get_temp_dir() . '/moko-enrich-' . getmypid();
|
||||||
|
|
||||||
echo "=== mokoplatform XML Manifest Enrichment ===\n";
|
echo "=== mokocli XML Manifest Enrichment ===\n";
|
||||||
echo "Mode: " . ($this->dryRun ? "DRY RUN" : "LIVE") . "\n";
|
echo "Mode: " . ($this->dryRun ? "DRY RUN" : "LIVE") . "\n";
|
||||||
if (!empty($skipRepos)) {
|
if (!empty($skipRepos)) {
|
||||||
echo "Skipping: " . implode(', ', $skipRepos) . "\n";
|
echo "Skipping: " . implode(', ', $skipRepos) . "\n";
|
||||||
@@ -97,7 +97,7 @@ class EnrichManifestXmlCli extends CliFramework
|
|||||||
}
|
}
|
||||||
|
|
||||||
$manifestPath = "{$workDir}/.mokogitea/manifest.xml";
|
$manifestPath = "{$workDir}/.mokogitea/manifest.xml";
|
||||||
if (!file_exists($manifestPath) || !str_contains(file_get_contents($manifestPath), '<mokoplatform')) {
|
if (!file_exists($manifestPath) || !str_contains(file_get_contents($manifestPath), '<mokocli')) {
|
||||||
echo "SKIP (no XML manifest)\n";
|
echo "SKIP (no XML manifest)\n";
|
||||||
$stats['skipped']++;
|
$stats['skipped']++;
|
||||||
$this->rmTree($workDir);
|
$this->rmTree($workDir);
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: MokoPlatform.Automation
|
* DEFGROUP: MokoPlatform.Automation
|
||||||
* INGROUP: MokoPlatform
|
* INGROUP: MokoPlatform
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /automation/enrich_mokostandards_xml.php
|
* PATH: /automation/enrich_mokostandards_xml.php
|
||||||
* BRIEF: Enrich XML manifests with repo-specific build and deploy details
|
* BRIEF: Enrich XML manifests with repo-specific build and deploy details
|
||||||
*
|
*
|
||||||
@@ -46,7 +46,7 @@ class EnrichMokostandardsXmlCli extends CliFramework
|
|||||||
$parser = new ManifestParser();
|
$parser = new ManifestParser();
|
||||||
$tmpBase = sys_get_temp_dir() . '/moko-enrich-' . getmypid();
|
$tmpBase = sys_get_temp_dir() . '/moko-enrich-' . getmypid();
|
||||||
|
|
||||||
echo "=== mokoplatform XML Manifest Enrichment ===\n";
|
echo "=== mokocli XML Manifest Enrichment ===\n";
|
||||||
echo "Mode: " . ($this->dryRun ? "DRY RUN" : "LIVE") . "\n";
|
echo "Mode: " . ($this->dryRun ? "DRY RUN" : "LIVE") . "\n";
|
||||||
if (!empty($skipRepos)) {
|
if (!empty($skipRepos)) {
|
||||||
echo "Skipping: " . implode(', ', $skipRepos) . "\n";
|
echo "Skipping: " . implode(', ', $skipRepos) . "\n";
|
||||||
@@ -97,7 +97,7 @@ class EnrichMokostandardsXmlCli extends CliFramework
|
|||||||
}
|
}
|
||||||
|
|
||||||
$manifestPath = "{$workDir}/.mokogitea/manifest.xml";
|
$manifestPath = "{$workDir}/.mokogitea/manifest.xml";
|
||||||
if (!file_exists($manifestPath) || !str_contains(file_get_contents($manifestPath), '<mokoplatform')) {
|
if (!file_exists($manifestPath) || !str_contains(file_get_contents($manifestPath), '<mokocli')) {
|
||||||
echo "SKIP (no XML manifest)\n";
|
echo "SKIP (no XML manifest)\n";
|
||||||
$stats['skipped']++;
|
$stats['skipped']++;
|
||||||
$this->rmTree($workDir);
|
$this->rmTree($workDir);
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||||||
FILE INFORMATION
|
FILE INFORMATION
|
||||||
DEFGROUP: MokoPlatform.Index
|
DEFGROUP: MokoPlatform.Index
|
||||||
INGROUP: MokoPlatform.Automation
|
INGROUP: MokoPlatform.Automation
|
||||||
REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
PATH: /automation/index.md
|
PATH: /automation/index.md
|
||||||
BRIEF: Automation directory index
|
BRIEF: Automation directory index
|
||||||
-->
|
-->
|
||||||
|
|||||||
@@ -10,14 +10,14 @@
|
|||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: MokoPlatform.Automation
|
* DEFGROUP: MokoPlatform.Automation
|
||||||
* INGROUP: MokoPlatform
|
* INGROUP: MokoPlatform
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /automation/migrate_to_gitea.php
|
* PATH: /automation/migrate_to_gitea.php
|
||||||
* BRIEF: Migrate repositories from GitHub to self-hosted Gitea instance
|
* BRIEF: Migrate repositories from GitHub to self-hosted Gitea instance
|
||||||
*
|
*
|
||||||
* USAGE
|
* USAGE
|
||||||
* php automation/migrate_to_gitea.php --dry-run
|
* php automation/migrate_to_gitea.php --dry-run
|
||||||
* php automation/migrate_to_gitea.php --repos MokoCRM MokoDoliMods
|
* php automation/migrate_to_gitea.php --repos MokoCRM MokoDoliMods
|
||||||
* php automation/migrate_to_gitea.php --exclude mokoplatform --skip-archived
|
* php automation/migrate_to_gitea.php --exclude mokocli --skip-archived
|
||||||
* php automation/migrate_to_gitea.php --resume
|
* php automation/migrate_to_gitea.php --resume
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -278,7 +278,7 @@ class MigrateToGitea extends CliFramework
|
|||||||
try {
|
try {
|
||||||
$this->gitea->createIssue(
|
$this->gitea->createIssue(
|
||||||
$giteaOrg,
|
$giteaOrg,
|
||||||
'mokoplatform',
|
'mokocli',
|
||||||
'chore: GitHub → Gitea migration report — ' . count($results['migrated']) . ' repos migrated',
|
'chore: GitHub → Gitea migration report — ' . count($results['migrated']) . ' repos migrated',
|
||||||
$report,
|
$report,
|
||||||
['labels' => ['automation', 'type: chore']]
|
['labels' => ['automation', 'type: chore']]
|
||||||
|
|||||||
+20
-20
@@ -11,7 +11,7 @@
|
|||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: MokoPlatform.Automation
|
* DEFGROUP: MokoPlatform.Automation
|
||||||
* INGROUP: MokoPlatform.Scripts
|
* INGROUP: MokoPlatform.Scripts
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /automation/push_files.php
|
* PATH: /automation/push_files.php
|
||||||
* BRIEF: Push one or more specific files to one or more remote repositories
|
* BRIEF: Push one or more specific files to one or more remote repositories
|
||||||
*/
|
*/
|
||||||
@@ -35,7 +35,7 @@ use MokoCli\{
|
|||||||
/**
|
/**
|
||||||
* Targeted File Push Tool
|
* Targeted File Push Tool
|
||||||
*
|
*
|
||||||
* Pushes one or more specific files from mokoplatform templates to one or
|
* Pushes one or more specific files from mokocli templates to one or
|
||||||
* more remote repositories — without running a full sync.
|
* more remote repositories — without running a full sync.
|
||||||
*
|
*
|
||||||
* Files are specified by their destination path as they appear in the target
|
* Files are specified by their destination path as they appear in the target
|
||||||
@@ -81,7 +81,7 @@ class PushFiles extends CliFramework
|
|||||||
*/
|
*/
|
||||||
protected function run(): int
|
protected function run(): int
|
||||||
{
|
{
|
||||||
$this->log('📦 mokoplatform File Push v' . self::VERSION, 'INFO');
|
$this->log('📦 mokocli File Push v' . self::VERSION, 'INFO');
|
||||||
|
|
||||||
if (!$this->initializeComponents()) {
|
if (!$this->initializeComponents()) {
|
||||||
return 1;
|
return 1;
|
||||||
@@ -337,7 +337,7 @@ class PushFiles extends CliFramework
|
|||||||
|
|
||||||
$prNumber = null;
|
$prNumber = null;
|
||||||
if (!$direct) {
|
if (!$direct) {
|
||||||
$prTitle = "chore: push " . count($entries) . " file(s) from mokoplatform";
|
$prTitle = "chore: push " . count($entries) . " file(s) from mokocli";
|
||||||
$prBody = $this->buildPRBody($entries);
|
$prBody = $this->buildPRBody($entries);
|
||||||
$pr = $this->adapter->createPullRequest(
|
$pr = $this->adapter->createPullRequest(
|
||||||
$org,
|
$org,
|
||||||
@@ -414,7 +414,7 @@ class PushFiles extends CliFramework
|
|||||||
|
|
||||||
$message = !empty($customMessage)
|
$message = !empty($customMessage)
|
||||||
? $customMessage
|
? $customMessage
|
||||||
: "chore: update {$destPath} from mokoplatform";
|
: "chore: update {$destPath} from mokocli";
|
||||||
|
|
||||||
// Fetch existing file SHA (needed for updates)
|
// Fetch existing file SHA (needed for updates)
|
||||||
$existingSha = null;
|
$existingSha = null;
|
||||||
@@ -457,9 +457,9 @@ class PushFiles extends CliFramework
|
|||||||
): void {
|
): void {
|
||||||
$now = gmdate('Y-m-d H:i:s') . ' UTC';
|
$now = gmdate('Y-m-d H:i:s') . ' UTC';
|
||||||
$version = self::VERSION;
|
$version = self::VERSION;
|
||||||
$source = $this->adapter->getRepoWebUrl($org, 'mokoplatform');
|
$source = $this->adapter->getRepoWebUrl($org, 'mokocli');
|
||||||
|
|
||||||
$title = "chore: mokoplatform file push tracking";
|
$title = "chore: mokocli file push tracking";
|
||||||
|
|
||||||
$deliveryLine = $prNumber !== null
|
$deliveryLine = $prNumber !== null
|
||||||
? "| **Pull request** | [#{$prNumber}](" . $this->adapter->getPullRequestWebUrl($org, $repo, $prNumber) . ") |"
|
? "| **Pull request** | [#{$prNumber}](" . $this->adapter->getPullRequestWebUrl($org, $repo, $prNumber) . ") |"
|
||||||
@@ -471,9 +471,9 @@ class PushFiles extends CliFramework
|
|||||||
));
|
));
|
||||||
|
|
||||||
$body = <<<MD
|
$body = <<<MD
|
||||||
## mokoplatform File Push
|
## mokocli File Push
|
||||||
|
|
||||||
One or more files were pushed to this repository from mokoplatform.
|
One or more files were pushed to this repository from mokocli.
|
||||||
|
|
||||||
| Field | Value |
|
| Field | Value |
|
||||||
|-------|-------|
|
|-------|-------|
|
||||||
@@ -487,12 +487,12 @@ class PushFiles extends CliFramework
|
|||||||
{$fileRows}
|
{$fileRows}
|
||||||
|
|
||||||
---
|
---
|
||||||
*Generated automatically by [mokoplatform]({$source}) `push_files.php`*
|
*Generated automatically by [mokocli]({$source}) `push_files.php`*
|
||||||
MD;
|
MD;
|
||||||
|
|
||||||
$body = preg_replace('/^ /m', '', $body);
|
$body = preg_replace('/^ /m', '', $body);
|
||||||
|
|
||||||
$labels = ['standards-update', 'mokoplatform', 'type: chore', 'automation'];
|
$labels = ['standards-update', 'mokocli', 'type: chore', 'automation'];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$existing = $this->api->get("/repos/{$org}/{$repo}/issues", [
|
$existing = $this->api->get("/repos/{$org}/{$repo}/issues", [
|
||||||
@@ -550,7 +550,7 @@ class PushFiles extends CliFramework
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update a failure issue in mokoplatform when repos fail to receive files.
|
* Create or update a failure issue in mokocli when repos fail to receive files.
|
||||||
* Uses the 'push-failure' label. Reopens a closed issue rather than creating a duplicate.
|
* Uses the 'push-failure' label. Reopens a closed issue rather than creating a duplicate.
|
||||||
*/
|
*/
|
||||||
private function createFailureIssue(string $org, array $results): void
|
private function createFailureIssue(string $org, array $results): void
|
||||||
@@ -598,7 +598,7 @@ class PushFiles extends CliFramework
|
|||||||
$body = preg_replace('/^ /m', '', $body);
|
$body = preg_replace('/^ /m', '', $body);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$existing = $this->api->get("/repos/{$org}/mokoplatform/issues", [
|
$existing = $this->api->get("/repos/{$org}/mokocli/issues", [
|
||||||
'labels' => 'push-failure',
|
'labels' => 'push-failure',
|
||||||
'state' => 'all',
|
'state' => 'all',
|
||||||
'per_page' => 1,
|
'per_page' => 1,
|
||||||
@@ -613,17 +613,17 @@ class PushFiles extends CliFramework
|
|||||||
if (($existing[0]['state'] ?? 'open') === 'closed') {
|
if (($existing[0]['state'] ?? 'open') === 'closed') {
|
||||||
$patch['state'] = 'open';
|
$patch['state'] = 'open';
|
||||||
}
|
}
|
||||||
$this->api->patch("/repos/{$org}/mokoplatform/issues/{$num}", $patch);
|
$this->api->patch("/repos/{$org}/mokocli/issues/{$num}", $patch);
|
||||||
$this->log("🚨 Failure issue #{$num} updated: {$org}/mokoplatform#{$num}", 'WARN');
|
$this->log("🚨 Failure issue #{$num} updated: {$org}/mokocli#{$num}", 'WARN');
|
||||||
} else {
|
} else {
|
||||||
$issue = $this->api->post("/repos/{$org}/mokoplatform/issues", [
|
$issue = $this->api->post("/repos/{$org}/mokocli/issues", [
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'body' => $body,
|
'body' => $body,
|
||||||
'labels' => ['push-failure'],
|
'labels' => ['push-failure'],
|
||||||
'assignees' => ['jmiller'],
|
'assignees' => ['jmiller'],
|
||||||
]);
|
]);
|
||||||
$num = $issue['number'] ?? '?';
|
$num = $issue['number'] ?? '?';
|
||||||
$this->log("🚨 Failure issue created: {$org}/mokoplatform#{$num}", 'WARN');
|
$this->log("🚨 Failure issue created: {$org}/mokocli#{$num}", 'WARN');
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->log("⚠️ Could not create/update failure issue: " . $e->getMessage(), 'WARN');
|
$this->log("⚠️ Could not create/update failure issue: " . $e->getMessage(), 'WARN');
|
||||||
@@ -638,14 +638,14 @@ class PushFiles extends CliFramework
|
|||||||
private function buildPRBody(array $entries): string
|
private function buildPRBody(array $entries): string
|
||||||
{
|
{
|
||||||
$now = gmdate('Y-m-d H:i:s') . ' UTC';
|
$now = gmdate('Y-m-d H:i:s') . ' UTC';
|
||||||
$lines = ["## mokoplatform File Push\n", "**Pushed:** {$now}\n", '### Files\n'];
|
$lines = ["## mokocli File Push\n", "**Pushed:** {$now}\n", '### Files\n'];
|
||||||
|
|
||||||
foreach ($entries as $entry) {
|
foreach ($entries as $entry) {
|
||||||
$lines[] = "- `{$entry['destination']}`";
|
$lines[] = "- `{$entry['destination']}`";
|
||||||
}
|
}
|
||||||
|
|
||||||
$sourceUrl = $this->adapter->getRepoWebUrl(self::DEFAULT_ORG, 'mokoplatform');
|
$sourceUrl = $this->adapter->getRepoWebUrl(self::DEFAULT_ORG, 'mokocli');
|
||||||
$lines[] = "\n---\n*Generated by [mokoplatform]({$sourceUrl}) `push_files.php`*";
|
$lines[] = "\n---\n*Generated by [mokocli]({$sourceUrl}) `push_files.php`*";
|
||||||
|
|
||||||
return implode("\n", $lines);
|
return implode("\n", $lines);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: MokoPlatform.Automation
|
* DEFGROUP: MokoPlatform.Automation
|
||||||
* INGROUP: MokoPlatform
|
* INGROUP: MokoPlatform
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /automation/push_manifest_xml.php
|
* PATH: /automation/push_manifest_xml.php
|
||||||
* BRIEF: Push XML manifests to all governed repositories
|
* BRIEF: Push XML manifests to all governed repositories
|
||||||
*/
|
*/
|
||||||
@@ -47,7 +47,7 @@ class PushManifestXmlCli extends CliFramework
|
|||||||
$parser = new ManifestParser();
|
$parser = new ManifestParser();
|
||||||
$tmpBase = sys_get_temp_dir() . '/moko-manifest-push-' . getmypid();
|
$tmpBase = sys_get_temp_dir() . '/moko-manifest-push-' . getmypid();
|
||||||
|
|
||||||
echo "=== mokoplatform XML Manifest Push ===\n";
|
echo "=== mokocli XML Manifest Push ===\n";
|
||||||
echo "Org: {$giteaOrg}\n";
|
echo "Org: {$giteaOrg}\n";
|
||||||
echo "Mode: " . ($this->dryRun ? "DRY RUN" : "LIVE") . "\n";
|
echo "Mode: " . ($this->dryRun ? "DRY RUN" : "LIVE") . "\n";
|
||||||
if ($repoFilter) {
|
if ($repoFilter) {
|
||||||
@@ -125,7 +125,7 @@ class PushManifestXmlCli extends CliFramework
|
|||||||
|
|
||||||
// Check if already XML and up-to-date
|
// Check if already XML and up-to-date
|
||||||
$manifestPath = "{$workDir}/.mokogitea/manifest.xml";
|
$manifestPath = "{$workDir}/.mokogitea/manifest.xml";
|
||||||
$existingIsXml = file_exists($manifestPath) && str_contains(file_get_contents($manifestPath), '<mokoplatform');
|
$existingIsXml = file_exists($manifestPath) && str_contains(file_get_contents($manifestPath), '<mokocli');
|
||||||
if ($existingIsXml && !$force) {
|
if ($existingIsXml && !$force) {
|
||||||
$existingPlatform = $parser->extractPlatform(file_get_contents($manifestPath));
|
$existingPlatform = $parser->extractPlatform(file_get_contents($manifestPath));
|
||||||
if ($existingPlatform === $platform) {
|
if ($existingPlatform === $platform) {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: MokoPlatform.Automation
|
* DEFGROUP: MokoPlatform.Automation
|
||||||
* INGROUP: MokoPlatform
|
* INGROUP: MokoPlatform
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /automation/push_mokostandards_xml.php
|
* PATH: /automation/push_mokostandards_xml.php
|
||||||
* BRIEF: Push XML manifests to all governed repositories
|
* BRIEF: Push XML manifests to all governed repositories
|
||||||
*/
|
*/
|
||||||
@@ -47,7 +47,7 @@ class PushMokostandardsXmlCli extends CliFramework
|
|||||||
$parser = new ManifestParser();
|
$parser = new ManifestParser();
|
||||||
$tmpBase = sys_get_temp_dir() . '/moko-manifest-push-' . getmypid();
|
$tmpBase = sys_get_temp_dir() . '/moko-manifest-push-' . getmypid();
|
||||||
|
|
||||||
echo "=== mokoplatform XML Manifest Push ===\n";
|
echo "=== mokocli XML Manifest Push ===\n";
|
||||||
echo "Org: {$giteaOrg}\n";
|
echo "Org: {$giteaOrg}\n";
|
||||||
echo "Mode: " . ($this->dryRun ? "DRY RUN" : "LIVE") . "\n";
|
echo "Mode: " . ($this->dryRun ? "DRY RUN" : "LIVE") . "\n";
|
||||||
if ($repoFilter) {
|
if ($repoFilter) {
|
||||||
@@ -125,7 +125,7 @@ class PushMokostandardsXmlCli extends CliFramework
|
|||||||
|
|
||||||
// Check if already XML and up-to-date
|
// Check if already XML and up-to-date
|
||||||
$manifestPath = "{$workDir}/.mokogitea/manifest.xml";
|
$manifestPath = "{$workDir}/.mokogitea/manifest.xml";
|
||||||
$existingIsXml = file_exists($manifestPath) && str_contains(file_get_contents($manifestPath), '<mokoplatform');
|
$existingIsXml = file_exists($manifestPath) && str_contains(file_get_contents($manifestPath), '<mokocli');
|
||||||
if ($existingIsXml && !$force) {
|
if ($existingIsXml && !$force) {
|
||||||
$existingPlatform = $parser->extractPlatform(file_get_contents($manifestPath));
|
$existingPlatform = $parser->extractPlatform(file_get_contents($manifestPath));
|
||||||
if ($existingPlatform === $platform) {
|
if ($existingPlatform === $platform) {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: MokoPlatform.Automation
|
* DEFGROUP: MokoPlatform.Automation
|
||||||
* INGROUP: MokoPlatform.Scripts
|
* INGROUP: MokoPlatform.Scripts
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /automation/repo_cleanup.php
|
* PATH: /automation/repo_cleanup.php
|
||||||
* BRIEF: Enterprise repository cleanup — branches, PRs, issues, workflows, labels, logs
|
* BRIEF: Enterprise repository cleanup — branches, PRs, issues, workflows, labels, logs
|
||||||
*/
|
*/
|
||||||
@@ -39,14 +39,14 @@ use MokoCli\{ApiClient, AuditLogger, CliFramework, Config, GitPlatformAdapter, M
|
|||||||
class RepoCleanup extends CliFramework
|
class RepoCleanup extends CliFramework
|
||||||
{
|
{
|
||||||
private const VERSION = '09.23.00';
|
private const VERSION = '09.23.00';
|
||||||
private const SYNC_PREFIX = 'chore/sync-mokoplatform-';
|
private const SYNC_PREFIX = 'chore/sync-mokocli-';
|
||||||
private const CURRENT_BRANCH = 'chore/sync-mokoplatform-v04.02.00';
|
private const CURRENT_BRANCH = 'chore/sync-mokocli-v04.02.00';
|
||||||
|
|
||||||
/** Workflow files that have been retired and should be deleted from governed repos. */
|
/** Workflow files that have been retired and should be deleted from governed repos. */
|
||||||
private const RETIRED_WORKFLOWS = [
|
private const RETIRED_WORKFLOWS = [
|
||||||
'build.yml', 'code-quality.yml', 'release-cycle.yml', 'release-pipeline.yml',
|
'build.yml', 'code-quality.yml', 'release-cycle.yml', 'release-pipeline.yml',
|
||||||
'branch-cleanup.yml', 'auto-update-changelog.yml', 'enterprise-issue-manager.yml',
|
'branch-cleanup.yml', 'auto-update-changelog.yml', 'enterprise-issue-manager.yml',
|
||||||
'flush-actions-cache.yml', 'mokoplatform-script-runner.yml', 'unified-ci.yml',
|
'flush-actions-cache.yml', 'mokocli-script-runner.yml', 'unified-ci.yml',
|
||||||
'unified-platform-testing.yml', 'reusable-build.yml', 'reusable-ci-validation.yml',
|
'unified-platform-testing.yml', 'reusable-build.yml', 'reusable-ci-validation.yml',
|
||||||
'reusable-deploy.yml', 'reusable-php-quality.yml', 'reusable-platform-testing.yml',
|
'reusable-deploy.yml', 'reusable-php-quality.yml', 'reusable-platform-testing.yml',
|
||||||
'reusable-project-detector.yml', 'reusable-release.yml', 'reusable-script-executor.yml',
|
'reusable-project-detector.yml', 'reusable-release.yml', 'reusable-script-executor.yml',
|
||||||
@@ -98,7 +98,7 @@ class RepoCleanup extends CliFramework
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$this->logMsg("🧹 mokoplatform Repository Cleanup v" . self::VERSION);
|
$this->logMsg("🧹 mokocli Repository Cleanup v" . self::VERSION);
|
||||||
$this->logMsg("Organization: {$org}");
|
$this->logMsg("Organization: {$org}");
|
||||||
$this->logMsg("Current sync branch: " . self::CURRENT_BRANCH);
|
$this->logMsg("Current sync branch: " . self::CURRENT_BRANCH);
|
||||||
if ($this->dryRun) {
|
if ($this->dryRun) {
|
||||||
@@ -225,7 +225,7 @@ class RepoCleanup extends CliFramework
|
|||||||
}
|
}
|
||||||
|
|
||||||
$allRepos = $this->adapter->listOrgRepos($org, $skipArchived);
|
$allRepos = $this->adapter->listOrgRepos($org, $skipArchived);
|
||||||
return array_filter($allRepos, fn($r) => !in_array($r['name'], ['mokoplatform', '.github-private'], true));
|
return array_filter($allRepos, fn($r) => !in_array($r['name'], ['mokocli', '.github-private'], true));
|
||||||
}
|
}
|
||||||
|
|
||||||
// ─── Cleanup operations ──────────────────────────────────────────────
|
// ─── Cleanup operations ──────────────────────────────────────────────
|
||||||
@@ -463,9 +463,9 @@ class RepoCleanup extends CliFramework
|
|||||||
private function checkLabels(string $org, string $repo, array &$results): void
|
private function checkLabels(string $org, string $repo, array &$results): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$this->api->get("/repos/{$org}/{$repo}/labels/mokoplatform");
|
$this->api->get("/repos/{$org}/{$repo}/labels/mokocli");
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->logMsg(" ⚠️ Missing 'mokoplatform' label");
|
$this->logMsg(" ⚠️ Missing 'mokocli' label");
|
||||||
$results['labels_missing']++;
|
$results['labels_missing']++;
|
||||||
$this->api->resetCircuitBreaker();
|
$this->api->resetCircuitBreaker();
|
||||||
}
|
}
|
||||||
@@ -479,7 +479,7 @@ class RepoCleanup extends CliFramework
|
|||||||
if (preg_match('/^\s*VERSION:\s*(\d{2}\.\d{2}\.\d{2})/m', $content, $m)) {
|
if (preg_match('/^\s*VERSION:\s*(\d{2}\.\d{2}\.\d{2})/m', $content, $m)) {
|
||||||
$version = $m[1];
|
$version = $m[1];
|
||||||
|
|
||||||
// Check manifest.xml for the tracked mokoplatform version
|
// Check manifest.xml for the tracked mokocli version
|
||||||
try {
|
try {
|
||||||
$mokoFile = $this->api->get("/repos/{$org}/{$repo}/contents/.mokogitea/manifest.xml");
|
$mokoFile = $this->api->get("/repos/{$org}/{$repo}/contents/.mokogitea/manifest.xml");
|
||||||
$mokoContent = base64_decode($mokoFile['content'] ?? '');
|
$mokoContent = base64_decode($mokoFile['content'] ?? '');
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#
|
#
|
||||||
# DEFGROUP: MokoPlatform.Automation.ServerAutoheal
|
# DEFGROUP: MokoPlatform.Automation.ServerAutoheal
|
||||||
# INGROUP: MokoPlatform.Automation
|
# INGROUP: MokoPlatform.Automation
|
||||||
# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform
|
# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
# PATH: /automation/server-autoheal.sh
|
# PATH: /automation/server-autoheal.sh
|
||||||
# BRIEF: Server auto-heal on unclean restart + split system/content backups
|
# BRIEF: Server auto-heal on unclean restart + split system/content backups
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* INGROUP: MokoPlatform.Scripts
|
* INGROUP: MokoPlatform.Scripts
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /automation/update_dependencies.php
|
* PATH: /automation/update_dependencies.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Cross-repo dependency update automation — scan, update, PR, auto-merge
|
* BRIEF: Cross-repo dependency update automation — scan, update, PR, auto-merge
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: MokoCli.CLI
|
* DEFGROUP: MokoCli.CLI
|
||||||
* INGROUP: MokoCli
|
* INGROUP: MokoCli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /bin/moko
|
* PATH: /bin/moko
|
||||||
* BRIEF: Unified CLI dispatcher — run any MokoCli script without needing GitHub Actions
|
* BRIEF: Unified CLI dispatcher — run any MokoCli script without needing GitHub Actions
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/archive_repo.php
|
* PATH: /cli/archive_repo.php
|
||||||
* BRIEF: Gracefully retire a governed repository — archive, close issues/PRs, remove sync def
|
* BRIEF: Gracefully retire a governed repository — archive, close issues/PRs, remove sync def
|
||||||
*/
|
*/
|
||||||
@@ -135,7 +135,7 @@ class ArchiveRepoCli extends CliFramework
|
|||||||
try {
|
try {
|
||||||
$issue = $adapter->createIssue(
|
$issue = $adapter->createIssue(
|
||||||
$org,
|
$org,
|
||||||
'mokoplatform',
|
'mokocli',
|
||||||
"chore: archived repository {$repoName}",
|
"chore: archived repository {$repoName}",
|
||||||
"## Repository Archived\n\n"
|
"## Repository Archived\n\n"
|
||||||
. "**Repository:** `{$org}/{$repoName}`\n"
|
. "**Repository:** `{$org}/{$repoName}`\n"
|
||||||
@@ -150,7 +150,7 @@ class ArchiveRepoCli extends CliFramework
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
if (isset($issue['number'])) {
|
if (isset($issue['number'])) {
|
||||||
echo " Archival record: mokoplatform#{$issue['number']}\n";
|
echo " Archival record: mokocli#{$issue['number']}\n";
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
echo " Warning: could not create archival record: " . $e->getMessage() . "\n";
|
echo " Warning: could not create archival record: " . $e->getMessage() . "\n";
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@
|
|||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: MokoPlatform.Enterprise.CLI
|
* DEFGROUP: MokoPlatform.Enterprise.CLI
|
||||||
* INGROUP: MokoPlatform.Enterprise
|
* INGROUP: MokoPlatform.Enterprise
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/audit_query.php
|
* PATH: /cli/audit_query.php
|
||||||
* BRIEF: Search, filter, and export audit logs
|
* BRIEF: Search, filter, and export audit logs
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/badge_update.php
|
* PATH: /cli/badge_update.php
|
||||||
* BRIEF: Update [VERSION: XX.XX.XX] badges in all markdown files
|
* BRIEF: Update [VERSION: XX.XX.XX] badges in all markdown files
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/branch_rename.php
|
* PATH: /cli/branch_rename.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Rename a git branch via Gitea API (create new, update PR, delete old)
|
* BRIEF: Rename a git branch via Gitea API (create new, update PR, delete old)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -8,11 +8,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/bulk_workflow_push.php
|
* PATH: /cli/bulk_workflow_push.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Push a workflow file to all governed repos via the Gitea Contents API
|
* BRIEF: Push a workflow file to all governed repos via the Gitea Contents API
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -154,7 +154,7 @@ class BulkWorkflowPushCli extends CliFramework
|
|||||||
'content' => $encodedContent,
|
'content' => $encodedContent,
|
||||||
'sha' => $remoteSha,
|
'sha' => $remoteSha,
|
||||||
'message' => "chore: sync {$destPath} "
|
'message' => "chore: sync {$destPath} "
|
||||||
. "from mokoplatform [skip ci]",
|
. "from mokocli [skip ci]",
|
||||||
'branch' => $branch,
|
'branch' => $branch,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@@ -184,7 +184,7 @@ class BulkWorkflowPushCli extends CliFramework
|
|||||||
$payload = json_encode([
|
$payload = json_encode([
|
||||||
'content' => $encodedContent,
|
'content' => $encodedContent,
|
||||||
'message' => "chore: add {$destPath} "
|
'message' => "chore: add {$destPath} "
|
||||||
. "from mokoplatform [skip ci]",
|
. "from mokocli [skip ci]",
|
||||||
'branch' => $branch,
|
'branch' => $branch,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
@@ -8,11 +8,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/bulk_workflow_trigger.php
|
* PATH: /cli/bulk_workflow_trigger.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Trigger a workflow across multiple repos at once
|
* BRIEF: Trigger a workflow across multiple repos at once
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/changelog_promote.php
|
* PATH: /cli/changelog_promote.php
|
||||||
* BRIEF: Promote [Unreleased] section in CHANGELOG.md to a versioned entry
|
* BRIEF: Promote [Unreleased] section in CHANGELOG.md to a versioned entry
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/changelog_prune.php
|
* PATH: /cli/changelog_prune.php
|
||||||
* BRIEF: Prune old CHANGELOG.md entries — keeps [Unreleased] + last N releases
|
* BRIEF: Prune old CHANGELOG.md entries — keeps [Unreleased] + last N releases
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -8,11 +8,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/client_dashboard.php
|
* PATH: /cli/client_dashboard.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Generate unified client dashboard HTML
|
* BRIEF: Generate unified client dashboard HTML
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/client_health_check.php
|
* PATH: /cli/client_health_check.php
|
||||||
* BRIEF: Verify a client site's update server, installed version, and release availability
|
* BRIEF: Verify a client site's update server, installed version, and release availability
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -8,11 +8,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/client_inventory.php
|
* PATH: /cli/client_inventory.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Discover and list all client-waas repos with their server configuration status
|
* BRIEF: Discover and list all client-waas repos with their server configuration status
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -8,11 +8,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/client_provision.php
|
* PATH: /cli/client_provision.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Provision a new client environment end-to-end
|
* BRIEF: Provision a new client environment end-to-end
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/completion.php
|
* PATH: /cli/completion.php
|
||||||
* BRIEF: Generate bash/zsh tab completion scripts for bin/moko
|
* BRIEF: Generate bash/zsh tab completion scripts for bin/moko
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/create_project.php
|
* PATH: /cli/create_project.php
|
||||||
* BRIEF: Create baseline GitHub Projects for repositories with standard fields and views
|
* BRIEF: Create baseline GitHub Projects for repositories with standard fields and views
|
||||||
*/
|
*/
|
||||||
@@ -24,7 +24,7 @@ use MokoCli\CliFramework;
|
|||||||
class CreateProjectCli extends CliFramework
|
class CreateProjectCli extends CliFramework
|
||||||
{
|
{
|
||||||
/** @var string[] */
|
/** @var string[] */
|
||||||
private array $ALWAYS_EXCLUDE = ['mokoplatform', '.github-private'];
|
private array $ALWAYS_EXCLUDE = ['mokocli', '.github-private'];
|
||||||
|
|
||||||
/** @var array<string, string> */
|
/** @var array<string, string> */
|
||||||
private array $PLATFORM_TO_TYPE = [
|
private array $PLATFORM_TO_TYPE = [
|
||||||
@@ -183,7 +183,7 @@ class CreateProjectCli extends CliFramework
|
|||||||
CURLOPT_HTTPHEADER => [
|
CURLOPT_HTTPHEADER => [
|
||||||
'Authorization: bearer ' . $token,
|
'Authorization: bearer ' . $token,
|
||||||
'Content-Type: application/json',
|
'Content-Type: application/json',
|
||||||
'User-Agent: mokoplatform-CreateProject',
|
'User-Agent: mokocli-CreateProject',
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
$body = (string) curl_exec($ch);
|
$body = (string) curl_exec($ch);
|
||||||
@@ -422,14 +422,14 @@ class CreateProjectCli extends CliFramework
|
|||||||
updateProjectV2(input: {
|
updateProjectV2(input: {
|
||||||
projectId: $projectId,
|
projectId: $projectId,
|
||||||
shortDescription: $shortDescription,
|
shortDescription: $shortDescription,
|
||||||
readme: "Managed by mokoplatform. Run `php cli/create_project.php` to regenerate."
|
readme: "Managed by mokocli. Run `php cli/create_project.php` to regenerate."
|
||||||
}) {
|
}) {
|
||||||
projectV2 { id }
|
projectV2 { id }
|
||||||
}
|
}
|
||||||
}',
|
}',
|
||||||
[
|
[
|
||||||
'projectId' => $projectId,
|
'projectId' => $projectId,
|
||||||
'shortDescription' => "Standard project board for {$repo}. Auto-created by mokoplatform.",
|
'shortDescription' => "Standard project board for {$repo}. Auto-created by mokocli.",
|
||||||
],
|
],
|
||||||
$token
|
$token
|
||||||
);
|
);
|
||||||
|
|||||||
+17
-17
@@ -8,11 +8,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/create_repo.php
|
* PATH: /cli/create_repo.php
|
||||||
* BRIEF: Scaffold a new governed repository with full mokoplatform baseline
|
* BRIEF: Scaffold a new governed repository with full mokocli baseline
|
||||||
*/
|
*/
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
@@ -28,7 +28,7 @@ class CreateRepoCli extends CliFramework
|
|||||||
{
|
{
|
||||||
protected function configure(): void
|
protected function configure(): void
|
||||||
{
|
{
|
||||||
$this->setDescription('Scaffold a new governed repository with full mokoplatform baseline');
|
$this->setDescription('Scaffold a new governed repository with full mokocli baseline');
|
||||||
$this->addArgument('--name', 'Repository name', null);
|
$this->addArgument('--name', 'Repository name', null);
|
||||||
$this->addArgument('--type', 'Project type', null);
|
$this->addArgument('--type', 'Project type', null);
|
||||||
$this->addArgument('--description', 'Repository description', '');
|
$this->addArgument('--description', 'Repository description', '');
|
||||||
@@ -60,16 +60,16 @@ class CreateRepoCli extends CliFramework
|
|||||||
'generic' => 'generic',
|
'generic' => 'generic',
|
||||||
];
|
];
|
||||||
$TYPE_TO_TOPICS = [
|
$TYPE_TO_TOPICS = [
|
||||||
'dolibarr' => ['dolibarr', 'erp', 'crm', 'php', 'mokoplatform'],
|
'dolibarr' => ['dolibarr', 'erp', 'crm', 'php', 'mokocli'],
|
||||||
'joomla' => ['joomla', 'cms', 'php', 'mokoplatform'],
|
'joomla' => ['joomla', 'cms', 'php', 'mokocli'],
|
||||||
'nodejs' => ['nodejs', 'javascript', 'typescript', 'mokoplatform'],
|
'nodejs' => ['nodejs', 'javascript', 'typescript', 'mokocli'],
|
||||||
'terraform' => ['terraform', 'infrastructure', 'iac', 'mokoplatform'],
|
'terraform' => ['terraform', 'infrastructure', 'iac', 'mokocli'],
|
||||||
'python' => ['python', 'mokoplatform'],
|
'python' => ['python', 'mokocli'],
|
||||||
'wordpress' => ['wordpress', 'php', 'cms', 'mokoplatform'],
|
'wordpress' => ['wordpress', 'php', 'cms', 'mokocli'],
|
||||||
'generic' => ['mokoplatform'],
|
'generic' => ['mokocli'],
|
||||||
];
|
];
|
||||||
$platform = $TYPE_TO_PLATFORM[$type] ?? 'generic';
|
$platform = $TYPE_TO_PLATFORM[$type] ?? 'generic';
|
||||||
$topics = $TYPE_TO_TOPICS[$type] ?? ['mokoplatform'];
|
$topics = $TYPE_TO_TOPICS[$type] ?? ['mokocli'];
|
||||||
$platformName = $adapter->getPlatformName();
|
$platformName = $adapter->getPlatformName();
|
||||||
$vis = $private ? 'private' : 'public';
|
$vis = $private ? 'private' : 'public';
|
||||||
echo "Scaffolding new repository: {$org}/{$name}"
|
echo "Scaffolding new repository: {$org}/{$name}"
|
||||||
@@ -84,7 +84,7 @@ class CreateRepoCli extends CliFramework
|
|||||||
if (!$this->dryRun) {
|
if (!$this->dryRun) {
|
||||||
try {
|
try {
|
||||||
$data = $adapter->createOrgRepo($org, $name, [
|
$data = $adapter->createOrgRepo($org, $name, [
|
||||||
'description' => $description ?: "Managed by mokoplatform ({$type})",
|
'description' => $description ?: "Managed by mokocli ({$type})",
|
||||||
'private' => $private,
|
'private' => $private,
|
||||||
'has_issues' => true,
|
'has_issues' => true,
|
||||||
'has_projects' => true,
|
'has_projects' => true,
|
||||||
@@ -143,7 +143,7 @@ class CreateRepoCli extends CliFramework
|
|||||||
. "Copyright (C) 2026 Moko Consulting <hello@mokoconsulting.tech>\n"
|
. "Copyright (C) 2026 Moko Consulting <hello@mokoconsulting.tech>\n"
|
||||||
. "SPDX-License-Identifier: GPL-3.0-or-later\n"
|
. "SPDX-License-Identifier: GPL-3.0-or-later\n"
|
||||||
. "DEFGROUP: {$name}\n"
|
. "DEFGROUP: {$name}\n"
|
||||||
. "INGROUP: mokoplatform\n"
|
. "INGROUP: mokocli\n"
|
||||||
. "REPO: {$repoUrl}\n"
|
. "REPO: {$repoUrl}\n"
|
||||||
. "PATH: /README.md\n"
|
. "PATH: /README.md\n"
|
||||||
. "BRIEF: {$description}\n"
|
. "BRIEF: {$description}\n"
|
||||||
@@ -152,7 +152,7 @@ class CreateRepoCli extends CliFramework
|
|||||||
. "{$description}\n\n"
|
. "{$description}\n\n"
|
||||||
. "## Getting Started\n\n"
|
. "## Getting Started\n\n"
|
||||||
. "This repository is governed by"
|
. "This repository is governed by"
|
||||||
. " [mokoplatform]({$standardsUrl}).\n\n"
|
. " [mokocli]({$standardsUrl}).\n\n"
|
||||||
. "## License\n\n"
|
. "## License\n\n"
|
||||||
. "GPL-3.0-or-later. See [LICENSE](LICENSE)"
|
. "GPL-3.0-or-later. See [LICENSE](LICENSE)"
|
||||||
. " for details.\n";
|
. " for details.\n";
|
||||||
@@ -169,7 +169,7 @@ class CreateRepoCli extends CliFramework
|
|||||||
$name,
|
$name,
|
||||||
'README.md',
|
'README.md',
|
||||||
$readmeContent,
|
$readmeContent,
|
||||||
'docs: initialize README with mokoplatform header [skip ci]',
|
'docs: initialize README with mokocli header [skip ci]',
|
||||||
$sha
|
$sha
|
||||||
);
|
);
|
||||||
echo " README.md created\n";
|
echo " README.md created\n";
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: MokoPlatform.CLI
|
* DEFGROUP: MokoPlatform.CLI
|
||||||
* INGROUP: MokoPlatform
|
* INGROUP: MokoPlatform
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/deploy_joomla.php
|
* PATH: /cli/deploy_joomla.php
|
||||||
* BRIEF: Smart Joomla deploy — routes files to correct server directories by extension type
|
* BRIEF: Smart Joomla deploy — routes files to correct server directories by extension type
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/dev_branch_reset.php
|
* PATH: /cli/dev_branch_reset.php
|
||||||
* BRIEF: Delete and recreate dev branch from main via Gitea API
|
* BRIEF: Delete and recreate dev branch from main via Gitea API
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -8,11 +8,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/grafana_dashboard.php
|
* PATH: /cli/grafana_dashboard.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Manage Grafana dashboards via API
|
* BRIEF: Manage Grafana dashboards via API
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/joomla_build.php
|
* PATH: /cli/joomla_build.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Build a Joomla extension ZIP from manifest — all types supported
|
* BRIEF: Build a Joomla extension ZIP from manifest — all types supported
|
||||||
* NOTE: Called by pre-release and auto-release workflows.
|
* NOTE: Called by pre-release and auto-release workflows.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/joomla_compat_check.php
|
* PATH: /cli/joomla_compat_check.php
|
||||||
* BRIEF: Check if extension targetplatform regex matches the latest Joomla version
|
* BRIEF: Check if extension targetplatform regex matches the latest Joomla version
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/joomla_metadata_validate.php
|
* PATH: /cli/joomla_metadata_validate.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Validate MokoGitea repo metadata against Joomla extension manifest XML
|
* BRIEF: Validate MokoGitea repo metadata against Joomla extension manifest XML
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/joomla_release.php
|
* PATH: /cli/joomla_release.php
|
||||||
* BRIEF: Joomla release pipeline — build ZIP+tar.gz, upload to GitHub Release, update updates.xml
|
* BRIEF: Joomla release pipeline — build ZIP+tar.gz, upload to GitHub Release, update updates.xml
|
||||||
*
|
*
|
||||||
@@ -407,7 +407,7 @@ class JoomlaRelease extends CliFramework
|
|||||||
$this->api->post("/repos/{$repo}/releases", [
|
$this->api->post("/repos/{$repo}/releases", [
|
||||||
'tag_name' => $tag,
|
'tag_name' => $tag,
|
||||||
'name' => $releaseName,
|
'name' => $releaseName,
|
||||||
'body' => "## {$version}\n\nCreated by mokoplatform release pipeline.",
|
'body' => "## {$version}\n\nCreated by mokocli release pipeline.",
|
||||||
'prerelease' => ($stability !== 'stable'),
|
'prerelease' => ($stability !== 'stable'),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/license_manage.php
|
* PATH: /cli/license_manage.php
|
||||||
* BRIEF: Manage license packages and keys via MokoGitea licensing API
|
* BRIEF: Manage license packages and keys via MokoGitea licensing API
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/manifest_detect.php
|
* PATH: /cli/manifest_detect.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Auto-detect manifest fields from source files and optionally push to API
|
* BRIEF: Auto-detect manifest fields from source files and optionally push to API
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/manifest_element.php
|
* PATH: /cli/manifest_element.php
|
||||||
* BRIEF: Extract element name, type, type prefix, and ZIP name from manifest
|
* BRIEF: Extract element name, type, type prefix, and ZIP name from manifest
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/manifest_integrity.php
|
* PATH: /cli/manifest_integrity.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Cross-check manifest API fields against repo contents across the org
|
* BRIEF: Cross-check manifest API fields against repo contents across the org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/manifest_licensing.php
|
* PATH: /cli/manifest_licensing.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Ensure licensing tags (updateservers, dlid) in Joomla extension manifests
|
* BRIEF: Ensure licensing tags (updateservers, dlid) in Joomla extension manifests
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
* INGROUP: mokocli
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/manifest_read.php
|
* PATH: /cli/manifest_read.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Read repo metadata from Gitea manifest API, auto-detect the rest
|
* BRIEF: Read repo metadata from Gitea manifest API, auto-detect the rest
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/package_build.php
|
* PATH: /cli/package_build.php
|
||||||
* BRIEF: Build ZIP and tar.gz install packages for Joomla/Dolibarr/generic projects
|
* BRIEF: Build ZIP and tar.gz install packages for Joomla/Dolibarr/generic projects
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/platform_detect.php
|
* PATH: /cli/platform_detect.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Auto-detect repository platform type and optionally update manifest
|
* BRIEF: Auto-detect repository platform type and optionally update manifest
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -134,9 +134,9 @@ class PlatformDetectCli extends CliFramework
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 5. Platform — is mokoplatform itself or org-config
|
// 5. Platform — is mokocli itself or org-config
|
||||||
$repoName = basename($root);
|
$repoName = basename($root);
|
||||||
if (in_array($repoName, ['mokoplatform', 'mokogitea-org-config'])) {
|
if (in_array($repoName, ['mokocli', 'mokogitea-org-config'])) {
|
||||||
return 'platform';
|
return 'platform';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -6,11 +6,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/release.php
|
* PATH: /cli/release.php
|
||||||
* BRIEF: Automate the mokoplatform version branch release flow
|
* BRIEF: Automate the mokocli version branch release flow
|
||||||
*/
|
*/
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
@@ -23,7 +23,7 @@ class ReleaseCli extends CliFramework
|
|||||||
{
|
{
|
||||||
protected function configure(): void
|
protected function configure(): void
|
||||||
{
|
{
|
||||||
$this->setDescription('Automate the mokoplatform version branch release flow');
|
$this->setDescription('Automate the mokocli version branch release flow');
|
||||||
$this->addArgument('--bump', 'Bump type: patch, minor, or major', '');
|
$this->addArgument('--bump', 'Bump type: patch, minor, or major', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/release_body_update.php
|
* PATH: /cli/release_body_update.php
|
||||||
* BRIEF: Update Gitea release body with changelog extract and checksums
|
* BRIEF: Update Gitea release body with changelog extract and checksums
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
* INGROUP: mokocli
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/release_cascade.php
|
* PATH: /cli/release_cascade.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Cascade release zip to all lower stability channels
|
* BRIEF: Cascade release zip to all lower stability channels
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/release_create.php
|
* PATH: /cli/release_create.php
|
||||||
* BRIEF: Create or overwrite a Gitea release with proper naming
|
* BRIEF: Create or overwrite a Gitea release with proper naming
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/release_manage.php
|
* PATH: /cli/release_manage.php
|
||||||
* BRIEF: Create/update Gitea releases, upload assets, update release body
|
* BRIEF: Create/update Gitea releases, upload assets, update release body
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/release_mirror.php
|
* PATH: /cli/release_mirror.php
|
||||||
* BRIEF: Mirror a Gitea release (with assets) to a GitHub repository
|
* BRIEF: Mirror a Gitea release (with assets) to a GitHub repository
|
||||||
*/
|
*/
|
||||||
@@ -201,7 +201,7 @@ class ReleaseMirrorCli extends CliFramework
|
|||||||
CURLOPT_HTTPHEADER => [
|
CURLOPT_HTTPHEADER => [
|
||||||
"Authorization: token {$token}",
|
"Authorization: token {$token}",
|
||||||
'Accept: application/vnd.github+json',
|
'Accept: application/vnd.github+json',
|
||||||
'User-Agent: mokoplatform',
|
'User-Agent: mokocli',
|
||||||
'Content-Type: application/json',
|
'Content-Type: application/json',
|
||||||
],
|
],
|
||||||
CURLOPT_TIMEOUT => 30,
|
CURLOPT_TIMEOUT => 30,
|
||||||
@@ -229,7 +229,7 @@ class ReleaseMirrorCli extends CliFramework
|
|||||||
CURLOPT_HTTPHEADER => [
|
CURLOPT_HTTPHEADER => [
|
||||||
"Authorization: token {$token}",
|
"Authorization: token {$token}",
|
||||||
'Accept: application/vnd.github+json',
|
'Accept: application/vnd.github+json',
|
||||||
'User-Agent: mokoplatform',
|
'User-Agent: mokocli',
|
||||||
'Content-Type: application/octet-stream',
|
'Content-Type: application/octet-stream',
|
||||||
],
|
],
|
||||||
CURLOPT_POSTFIELDS => file_get_contents($filePath),
|
CURLOPT_POSTFIELDS => file_get_contents($filePath),
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/release_notes.php
|
* PATH: /cli/release_notes.php
|
||||||
* BRIEF: Extract release notes from CHANGELOG.md for a given version
|
* BRIEF: Extract release notes from CHANGELOG.md for a given version
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/release_package.php
|
* PATH: /cli/release_package.php
|
||||||
* BRIEF: Build packages (ZIP + tar.gz) with SHA-256 and upload to Gitea release
|
* BRIEF: Build packages (ZIP + tar.gz) with SHA-256 and upload to Gitea release
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/release_promote.php
|
* PATH: /cli/release_promote.php
|
||||||
* BRIEF: Promote a Gitea release from one channel to another (rename release, tag, assets)
|
* BRIEF: Promote a Gitea release from one channel to another (rename release, tag, assets)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/release_publish.php
|
* PATH: /cli/release_publish.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Publish a release and create copies for all lesser stability streams.
|
* BRIEF: Publish a release and create copies for all lesser stability streams.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/release_validate.php
|
* PATH: /cli/release_validate.php
|
||||||
* BRIEF: Pre-release validation -- version consistency, required files, manifest checks
|
* BRIEF: Pre-release validation -- version consistency, required files, manifest checks
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/release_verify.php
|
* PATH: /cli/release_verify.php
|
||||||
* BRIEF: Verify a built release artifact — version, SHA256, disallowed files
|
* BRIEF: Verify a built release artifact — version, SHA256, disallowed files
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -8,11 +8,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/scaffold_client.php
|
* PATH: /cli/scaffold_client.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Scaffold a new client-waas repo from Template-Client-WaaS with pre-configured settings
|
* BRIEF: Scaffold a new client-waas repo from Template-Client-WaaS with pre-configured settings
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/sync_rulesets.php
|
* PATH: /cli/sync_rulesets.php
|
||||||
* BRIEF: Apply branch protection rules to all repos via platform adapter
|
* BRIEF: Apply branch protection rules to all repos via platform adapter
|
||||||
*/
|
*/
|
||||||
@@ -46,7 +46,7 @@ class SyncRulesetsCli extends CliFramework
|
|||||||
);
|
);
|
||||||
|
|
||||||
$platformName = $adapter->getPlatformName();
|
$platformName = $adapter->getPlatformName();
|
||||||
$ALWAYS_EXCLUDE = ['mokoplatform', '.github-private'];
|
$ALWAYS_EXCLUDE = ['mokocli', '.github-private'];
|
||||||
|
|
||||||
// -- Protection rules (platform-agnostic format) --
|
// -- Protection rules (platform-agnostic format) --
|
||||||
$PROTECTIONS = [
|
$PROTECTIONS = [
|
||||||
|
|||||||
+3
-3
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/theme_lint.php
|
* PATH: /cli/theme_lint.php
|
||||||
* BRIEF: Lint theme files -- CSS syntax, image sizes, hardcoded URLs
|
* BRIEF: Lint theme files -- CSS syntax, image sizes, hardcoded URLs
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/updates_xml_build.php
|
* PATH: /cli/updates_xml_build.php
|
||||||
* BRIEF: Generate Joomla updates.xml from extension manifest metadata
|
* BRIEF: Generate Joomla updates.xml from extension manifest metadata
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/updates_xml_sync.php
|
* PATH: /cli/updates_xml_sync.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Sync updates.xml to target branches via Gitea API
|
* BRIEF: Sync updates.xml to target branches via Gitea API
|
||||||
* NOTE: Called by pre-release and auto-release workflows after updates.xml
|
* NOTE: Called by pre-release and auto-release workflows after updates.xml
|
||||||
* is modified on the current branch. Pushes the file to other branches
|
* is modified on the current branch. Pushes the file to other branches
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/version_auto_bump.php
|
* PATH: /cli/version_auto_bump.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Auto patch-bump, set stability suffix, and commit — single CLI replacing inline workflow bash
|
* BRIEF: Auto patch-bump, set stability suffix, and commit — single CLI replacing inline workflow bash
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/version_bump.php
|
* PATH: /cli/version_bump.php
|
||||||
* BRIEF: Auto-increment version -- manifest.xml is canonical, cascades to all XML and MD files
|
* BRIEF: Auto-increment version -- manifest.xml is canonical, cascades to all XML and MD files
|
||||||
*/
|
*/
|
||||||
@@ -370,7 +370,7 @@ class VersionBumpCli extends CliFramework
|
|||||||
/**
|
/**
|
||||||
* Scan git release tags for the highest version across all channels.
|
* Scan git release tags for the highest version across all channels.
|
||||||
*
|
*
|
||||||
* Checks release names like "MokoSuiteClient (VERSION: 09.37.00)" in
|
* Checks release names like "MokoSuiteClient (VERSION: 09.37.01)" in
|
||||||
* git tags (stable, release-candidate, development, etc.) to find the
|
* git tags (stable, release-candidate, development, etc.) to find the
|
||||||
* highest version that has been released on any channel.
|
* highest version that has been released on any channel.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/version_bump_remote.php
|
* PATH: /cli/version_bump_remote.php
|
||||||
* BRIEF: Bump version in manifest XML and CHANGELOG.md on a remote branch via Gitea API
|
* BRIEF: Bump version in manifest XML and CHANGELOG.md on a remote branch via Gitea API
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/version_check.php
|
* PATH: /cli/version_check.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Validate version consistency across README, manifests, and sub-packages
|
* BRIEF: Validate version consistency across README, manifests, and sub-packages
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/version_read.php
|
* PATH: /cli/version_read.php
|
||||||
* BRIEF: Read version — manifest.xml is canonical, falls back to README.md and Joomla XML
|
* BRIEF: Read version — manifest.xml is canonical, falls back to README.md and Joomla XML
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/version_reset_dev.php
|
* PATH: /cli/version_reset_dev.php
|
||||||
* BRIEF: Reset platform version to 'development' on a branch via Gitea API
|
* BRIEF: Reset platform version to 'development' on a branch via Gitea API
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/version_set_platform.php
|
* PATH: /cli/version_set_platform.php
|
||||||
* BRIEF: Set version in platform-specific files (Dolibarr $this->version, Joomla <version>)
|
* BRIEF: Set version in platform-specific files (Dolibarr $this->version, Joomla <version>)
|
||||||
*/
|
*/
|
||||||
|
|||||||
+8
-8
@@ -6,12 +6,12 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: mokoplatform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: mokoplatform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/wiki_sync.php
|
* PATH: /cli/wiki_sync.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Sync select wiki pages from mokoplatform to all template repos
|
* BRIEF: Sync select wiki pages from mokocli to all template repos
|
||||||
*/
|
*/
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
@@ -25,7 +25,7 @@ class WikiSyncCli extends CliFramework
|
|||||||
private string $giteaUrl = 'https://git.mokoconsulting.tech';
|
private string $giteaUrl = 'https://git.mokoconsulting.tech';
|
||||||
private string $token = '';
|
private string $token = '';
|
||||||
private string $org = 'MokoConsulting';
|
private string $org = 'MokoConsulting';
|
||||||
private string $sourceRepo = 'mokoplatform';
|
private string $sourceRepo = 'mokocli';
|
||||||
private array $targetRepos = [];
|
private array $targetRepos = [];
|
||||||
private array $pages = [];
|
private array $pages = [];
|
||||||
private bool $allTemplates = false;
|
private bool $allTemplates = false;
|
||||||
@@ -38,10 +38,10 @@ class WikiSyncCli extends CliFramework
|
|||||||
|
|
||||||
protected function configure(): void
|
protected function configure(): void
|
||||||
{
|
{
|
||||||
$this->setDescription('Sync wiki pages from mokoplatform to template repos');
|
$this->setDescription('Sync wiki pages from mokocli to template repos');
|
||||||
$this->addArgument('--token', 'Gitea API token (required)', '');
|
$this->addArgument('--token', 'Gitea API token (required)', '');
|
||||||
$this->addArgument('--org', 'Organization (default: MokoConsulting)', 'MokoConsulting');
|
$this->addArgument('--org', 'Organization (default: MokoConsulting)', 'MokoConsulting');
|
||||||
$this->addArgument('--source', 'Source repo (default: mokoplatform)', 'mokoplatform');
|
$this->addArgument('--source', 'Source repo (default: mokocli)', 'mokocli');
|
||||||
$this->addArgument('--target', 'Target repo (can repeat)', '');
|
$this->addArgument('--target', 'Target repo (can repeat)', '');
|
||||||
$this->addArgument('--page', 'Page to sync (can repeat)', '');
|
$this->addArgument('--page', 'Page to sync (can repeat)', '');
|
||||||
$this->addArgument('--all-standards', 'Sync all UPPERCASE standards pages', false);
|
$this->addArgument('--all-standards', 'Sync all UPPERCASE standards pages', false);
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: moko-platform.CLI
|
* DEFGROUP: mokocli.CLI
|
||||||
* INGROUP: moko-platform
|
* INGROUP: mokocli
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /cli/workflow_sync.php
|
* PATH: /cli/workflow_sync.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Sync workflows from Generic → platform templates → live repos based on manifest.platform
|
* BRIEF: Sync workflows from Generic → platform templates → live repos based on manifest.platform
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mokoconsulting-tech/enterprise",
|
"name": "mokoconsulting-tech/enterprise",
|
||||||
"description": "mokoplatform Enterprise API \u2014 PHP implementation",
|
"description": "mokocli Enterprise API \u2014 PHP implementation",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"version": "09.23.00",
|
"version": "09.23.00",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
|
|||||||
@@ -10,9 +10,9 @@
|
|||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: MokoPlatform.Scripts.Deploy
|
* DEFGROUP: MokoPlatform.Scripts.Deploy
|
||||||
* INGROUP: MokoPlatform
|
* INGROUP: MokoPlatform
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /deploy/backup-before-deploy.php
|
* PATH: /deploy/backup-before-deploy.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Snapshot Joomla directories before deployment for rollback capability
|
* BRIEF: Snapshot Joomla directories before deployment for rollback capability
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,9 @@
|
|||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: MokoPlatform.Scripts.Deploy
|
* DEFGROUP: MokoPlatform.Scripts.Deploy
|
||||||
* INGROUP: MokoPlatform
|
* INGROUP: MokoPlatform
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /deploy/deploy-dolibarr.php
|
* PATH: /deploy/deploy-dolibarr.php
|
||||||
* VERSION: 09.37.00
|
* VERSION: 09.37.01
|
||||||
* BRIEF: Deploy Dolibarr module files to a remote server via SFTP/rsync
|
* BRIEF: Deploy Dolibarr module files to a remote server via SFTP/rsync
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: MokoPlatform.Scripts.Deploy
|
* DEFGROUP: MokoPlatform.Scripts.Deploy
|
||||||
* INGROUP: MokoPlatform
|
* INGROUP: MokoPlatform
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /deploy/deploy-joomla.php
|
* PATH: /deploy/deploy-joomla.php
|
||||||
* BRIEF: Smart Joomla deploy — routes files to correct Joomla directories based on XML manifest
|
* BRIEF: Smart Joomla deploy — routes files to correct Joomla directories based on XML manifest
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
* FILE INFORMATION
|
* FILE INFORMATION
|
||||||
* DEFGROUP: MokoPlatform.Scripts.Deploy
|
* DEFGROUP: MokoPlatform.Scripts.Deploy
|
||||||
* INGROUP: MokoPlatform
|
* INGROUP: MokoPlatform
|
||||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||||
* PATH: /deploy/deploy-sftp.php
|
* PATH: /deploy/deploy-sftp.php
|
||||||
* BRIEF: Deploy a repository src/ directory to a remote web server via SFTP
|
* BRIEF: Deploy a repository src/ directory to a remote web server via SFTP
|
||||||
*/
|
*/
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user