Public Access
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 51f8fcb480 | |||
| dfb3ca876b | |||
| e2e9f6d33b | |||
| 9f0546c1a8 | |||
| 3167233b7c | |||
| 94e6084e0f | |||
| 55a82d7d21 |
@@ -382,7 +382,7 @@ jobs:
|
||||
content = open('CHANGELOG.md').read()
|
||||
old = '## [Unreleased]'
|
||||
new = f'## [Unreleased]\n\n## [{version}] --- {date}'
|
||||
content = content.replace(old, new, 1)
|
||||
content = content if ('## [' + version + ']') in content else content.replace(old, new, 1)
|
||||
open('CHANGELOG.md', 'w').write(content)
|
||||
" "$VERSION" "$DATE"
|
||||
git add CHANGELOG.md
|
||||
|
||||
@@ -131,10 +131,11 @@ jobs:
|
||||
test:
|
||||
name: Tests
|
||||
runs-on: ubuntu-latest
|
||||
needs: lint
|
||||
# Run only when lint succeeded; always() forces evaluation so a skipped
|
||||
# lint (e.g. template repos) skips this job cleanly instead of hanging.
|
||||
if: ${{ always() && needs.lint.result == 'success' }}
|
||||
# Independent job (no `needs: lint`): the Gitea Actions scheduler does not
|
||||
# offer the dependent 2nd job of a needs-chain to runners, so it stalls in
|
||||
# "waiting" and is reaped by ABANDONED_JOB_TIMEOUT. Guard template repos
|
||||
# directly (same condition lint uses) instead of gating on lint's result.
|
||||
if: ${{ !startsWith(github.event.repository.name, 'Template-') }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#
|
||||
# FILE INFORMATION
|
||||
# DEFGROUP: Gitea.Workflow
|
||||
# DEFGROUP: MokoGitea.Workflow
|
||||
# INGROUP: mokocli.Automation
|
||||
# VERSION: 01.00.00
|
||||
# BRIEF: Auto-create feature branch when an issue is opened
|
||||
|
||||
@@ -210,7 +210,7 @@ jobs:
|
||||
|
||||
- name: Check for merge conflict markers
|
||||
run: |
|
||||
CONFLICTS=$(grep -rn '<<<<<<< \|>>>>>>> \|^=======$' --include='*.php' --include='*.xml' --include='*.css' --include='*.js' --include='*.json' --include='*.md' --include='*.yml' --include='*.yaml' --include='*.ini' --include='*.txt' . 2>/dev/null | grep -v '.git/' || true)
|
||||
CONFLICTS=$(grep -rn '<<<<<<< \|>>>>>>> \|^=======$' --exclude-dir='.git' --exclude-dir='.mokogitea' --include='*.php' --include='*.xml' --include='*.css' --include='*.js' --include='*.json' --include='*.md' --include='*.yml' --include='*.yaml' --include='*.ini' --include='*.txt' . 2>/dev/null | grep -v '.git/' || true)
|
||||
if [ -n "$CONFLICTS" ]; then
|
||||
echo "::error::Merge conflict markers found in source files"
|
||||
echo "## Conflict Markers Found" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
@@ -156,7 +156,7 @@ class ClientProvisionCli extends CliFramework
|
||||
$resp = $this->giteaApi(
|
||||
'POST',
|
||||
'/api/v1/repos/MokoConsulting/'
|
||||
. 'Template-Client-WaaS/generate',
|
||||
. 'Template-Client/generate',
|
||||
$payload
|
||||
);
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||
* PATH: /cli/scaffold_client.php
|
||||
* VERSION: 09.43.00
|
||||
* 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 with pre-configured settings
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
@@ -26,7 +26,7 @@ class ScaffoldClientCli extends CliFramework
|
||||
{
|
||||
protected function configure(): void
|
||||
{
|
||||
$this->setDescription('Scaffold a new client-waas repo from Template-Client-WaaS');
|
||||
$this->setDescription('Scaffold a new client-waas repo from Template-Client');
|
||||
$this->addArgument('--name', 'Client name', '');
|
||||
$this->addArgument('--org', 'Gitea organization', '');
|
||||
$this->addArgument('--gitea-url', 'Gitea URL', 'https://git.mokoconsulting.tech');
|
||||
@@ -47,7 +47,7 @@ class ScaffoldClientCli extends CliFramework
|
||||
$this->log('INFO', "Scaffolding client repo: {$org}/{$repoName}");
|
||||
$this->log('INFO', "Gitea URL: {$giteaUrl}");
|
||||
if ($this->dryRun) {
|
||||
$this->log('INFO', '[DRY RUN] Would create repo from template MokoConsulting/Template-Client-WaaS');
|
||||
$this->log('INFO', '[DRY RUN] Would create repo from template MokoConsulting/Template-Client');
|
||||
$this->log('INFO', "[DRY RUN] Repo: {$org}/{$repoName}");
|
||||
$this->printPostSetupInstructions($repoName, $giteaUrl, $org);
|
||||
return 0;
|
||||
@@ -64,7 +64,7 @@ class ScaffoldClientCli extends CliFramework
|
||||
]);
|
||||
$response = $this->apiRequest(
|
||||
'POST',
|
||||
"/api/v1/repos/MokoConsulting/Template-Client-WaaS/generate",
|
||||
"/api/v1/repos/MokoConsulting/Template-Client/generate",
|
||||
$giteaUrl,
|
||||
$token,
|
||||
$createPayload
|
||||
|
||||
@@ -934,7 +934,7 @@ class RepositorySynchronizer
|
||||
'mcp' => 'MokoConsulting/Template-Generic',
|
||||
'dolibarr' => 'MokoConsulting/Template-Generic',
|
||||
'crm-module' => 'MokoConsulting/Template-Generic',
|
||||
'client' => 'MokoConsulting/Template-Client-WaaS',
|
||||
'client' => 'MokoConsulting/Template-Client',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -951,7 +951,7 @@ class RepositorySynchronizer
|
||||
*/
|
||||
private const TEMPLATE_SYNC_TARGETS = [
|
||||
'MokoConsulting/Template-Joomla',
|
||||
'MokoConsulting/Template-Client-WaaS',
|
||||
'MokoConsulting/Template-Client',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -78,7 +78,7 @@ else
|
||||
["MokoConsulting/ssh-mcp"]="ssh-mcp"
|
||||
["MokoConsulting/backup-mcp"]="backup-mcp"
|
||||
["MokoConsulting/joomla-api-mcp"]="joomla-api-mcp"
|
||||
["MokoConsulting/Template-Client-WaaS"]="Template-Client-WaaS"
|
||||
["MokoConsulting/Template-Client"]="Template-Client"
|
||||
["ClarksvilleFurs/client-waas-clarksvillefurs"]="client-clarksvillefurs"
|
||||
)
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user