Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3aaee24be7 | |||
| 86fc9af3a0 | |||
| 73a1320d72 |
@@ -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>
|
||||||
|
|||||||
@@ -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
@@ -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
|
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user