Compare commits

...

3 Commits
dev ... rc

Author SHA1 Message Date
gitea-actions[bot] 3aaee24be7 chore(version): pre-release bump to 06.15.00-rc [skip ci] 2026-06-18 13:35:54 +00:00
gitea-actions[bot] 86fc9af3a0 chore(release): build 06.14.00-rc [skip ci] 2026-06-18 13:35:07 +00:00
Jonathan Miller 73a1320d72 fix: derive Joomla element name with correct lowercase + type prefix
Generic: Project CI / Tests (pull_request) Blocked by required conditions
Universal: PR Check / Build RC Package (pull_request) Blocked by required conditions
Universal: PR Check / Report Issues (pull_request) Blocked by required conditions
Generic: Repo Health / Scripts governance (pull_request) Blocked by required conditions
Generic: Repo Health / Repository health (pull_request) Blocked by required conditions
Generic: Repo Health / Report Issues (pull_request) Blocked by required conditions
Branch Policy Check / Verify merge target (pull_request) Successful in 2s
Universal: PR Check / Branch Policy (pull_request) Successful in 2s
Universal: PR Check / Validate PR (pull_request) Failing after 10s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 1s
Generic: Project CI / Lint & Validate (pull_request) Successful in 32s
Generic: Repo Health / Scripts governance (push) Blocked by required conditions
Generic: Repo Health / Repository health (push) Blocked by required conditions
Generic: Repo Health / Report Issues (push) Blocked by required conditions
Generic: Repo Health / Site Health (push) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Has been skipped
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Generic: Repo Health / Access control (push) Successful in 2s
Universal: Secret Scanning / Gitleaks Secret Scan (pull_request) Successful in 41s
PR RC Release / Build RC Release (pull_request) Failing after 34s
Universal: Auto Version Bump / Version Bump (push) Successful in 4s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 1m46s
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
Universal: Build & Release / Build & Release Pipeline (pull_request) Has been skipped
AutoElementName() was using the manifest Name field verbatim, producing
element names like "pkg_MokoSuiteBackup" instead of "pkg_mokosuitebackup".
Joomla's updater matches by element+type+client_id in #__extensions, so
the case mismatch made updates invisible.

Changes:
- Lowercase name and strip hyphens in AutoElementName()
- Remove incorrect "plg_" prefix for plugins (Joomla plugins have no
  element prefix; the folder column determines the plugin group)

Fixes #635
2026-06-18 08:33:35 -05:00
4 changed files with 13 additions and 21 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
<name>MokoGitea</name> <name>MokoGitea</name>
<org>MokoConsulting</org> <org>MokoConsulting</org>
<description>Moko fork of Gitea - adding project board REST API endpoints and custom enhancements</description> <description>Moko fork of Gitea - adding project board REST API endpoints and custom enhancements</description>
<version>06.13.03</version> <version>06.15.00</version>
<version-prefix>v1.26.1+MOKO</version-prefix> <version-prefix>v1.26.1+MOKO</version-prefix>
<license spdx="GPL-3.0-or-later">GNU General Public License v3</license> <license spdx="GPL-3.0-or-later">GNU General Public License v3</license>
</identity> </identity>
+1 -1
View File
@@ -5,7 +5,7 @@
# FILE INFORMATION # FILE INFORMATION
# DEFGROUP: Gitea.Workflow # DEFGROUP: Gitea.Workflow
# INGROUP: mokoplatform.Automation # INGROUP: mokoplatform.Automation
# VERSION: 06.13.03 # VERSION: 06.15.00
# 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"
+3 -16
View File
@@ -1,7 +1,9 @@
# Changelog # Changelog
## [Unreleased] ## [Unreleased]
## [06.14.00] --- 2026-06-18
## [06.15.00] --- 2026-06-12 ## [06.15.00] --- 2026-06-12
## [06.15.00] --- 2026-06-12 ## [06.15.00] --- 2026-06-12
@@ -44,18 +46,3 @@
All notable changes to MokoGitea are documented here. Versions follow the format All notable changes to MokoGitea are documented here. Versions follow the format
`v{upstream}-moko.{major}.{minor}` (e.g. `v1.26.1-moko.06.03`). `v{upstream}-moko.{major}.{minor}` (e.g. `v1.26.1-moko.06.03`).
## [06.14.00] --- 2026-06-09
* FEATURES
* feat(api): issue status/priority/type exposed in REST API - GET/PATCH on issues now includes status_id, priority_id, type_id with resolved names
* feat(api): org-level issue metadata endpoints - GET /orgs/{org}/issue-statuses, /issue-priorities, /issue-types
* feat(wiki): org wiki tab - inline wiki rendering from convention repos (wiki / wiki-private)
* feat(wiki): public/private wiki toggle dropdown (same UX as org profile README selector)
* feat(wiki): external wiki support - link to an outside URL from the org wiki tab
* feat(settings): wiki mode setting in org settings (internal repos vs external URL)
* feat(mcp): 5 new MCP tools - gitea_org_issue_statuses_list, gitea_org_issue_priorities_list, gitea_org_issue_types_list, gitea_issue_set_status, gitea_issue_set_priority
* feat(mcp): gitea_issue_create and gitea_issue_update now accept status_id, priority_id, type_id
* MIGRATIONS
* migration 354: add wiki_mode and wiki_url columns to user table for org wiki settings
+8 -3
View File
@@ -5,6 +5,7 @@ package repo
import ( import (
"context" "context"
"strings"
"code.mokoconsulting.tech/MokoConsulting/MokoGitea/models/db" "code.mokoconsulting.tech/MokoConsulting/MokoGitea/models/db"
"code.mokoconsulting.tech/MokoConsulting/MokoGitea/modules/timeutil" "code.mokoconsulting.tech/MokoConsulting/MokoGitea/modules/timeutil"
@@ -60,10 +61,11 @@ func (RepoManifest) TableName() string {
} }
// joomlaTypePrefix maps Joomla extension types to their element name prefixes. // joomlaTypePrefix maps Joomla extension types to their element name prefixes.
// Plugins have no prefix in Joomla's #__extensions table — the element is just
// the lowercased name, and the folder column determines the plugin group.
var joomlaTypePrefix = map[string]string{ var joomlaTypePrefix = map[string]string{
"component": "com_", "component": "com_",
"module": "mod_", "module": "mod_",
"plugin": "plg_",
"package": "pkg_", "package": "pkg_",
"template": "tpl_", "template": "tpl_",
"library": "lib_", "library": "lib_",
@@ -71,14 +73,17 @@ var joomlaTypePrefix = map[string]string{
} }
// AutoElementName returns the auto-constructed Joomla element name (e.g. pkg_mokowaas). // AutoElementName returns the auto-constructed Joomla element name (e.g. pkg_mokowaas).
// The name is lowercased and hyphens are stripped to match the convention Joomla
// uses in #__extensions.element (e.g. "MokoSuiteBackup" → "pkg_mokosuitebackup").
func (m *RepoManifest) AutoElementName() string { func (m *RepoManifest) AutoElementName() string {
if m.Name == "" || m.PackageType == "" { if m.Name == "" || m.PackageType == "" {
return "" return ""
} }
lower := strings.ToLower(strings.ReplaceAll(m.Name, "-", ""))
if prefix, ok := joomlaTypePrefix[m.PackageType]; ok { if prefix, ok := joomlaTypePrefix[m.PackageType]; ok {
return prefix + m.Name return prefix + lower
} }
return m.Name return lower
} }
// FullElementName returns the effective element name: override if set, otherwise auto-constructed. // FullElementName returns the effective element name: override if set, otherwise auto-constructed.