From 2e86f2597757739fb7e29f4fcfaa1bf97b72aa50 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sat, 18 Jul 2026 13:25:06 -0500 Subject: [PATCH] chore(rebrand): user-facing Gitea->MokoGIT brand strings (issue #801 phase 1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Conservative, source-controlled brand-string pass — user-facing display text only. NO blanket gitea->mokogit (import paths, runtime paths, binary/command names, GITEA_* env, copyright/attribution all intentionally left untouched). - cmd/web.go: startup "Gitea version:" / "Starting|Restarting Gitea on PID" logs - modules/graceful/manager_unix.go: systemd sd_notify "Starting Gitea" status - modules/setting/setting.go: run-as-root Fatal/Warn messages - services/doctor/dbconsistency.go: doctor model-version Critical message - snap/snapcraft.yaml: summary text only (name:/command:/adopt-info: kept) - .github/ISSUE_TEMPLATE/bug-report.yaml: "Gitea Version" label + description (form field id: gitea-ver kept as a stable key) - .mokogit/issue_template.md: version checklist label - options/fileicon/material-icon-rules.json: rename stale ".mokogitea/workflows" keys -> ".mokogit/workflows" (values folder-gitea-workflows* kept; JSON-aware) - rename .mokogit/ISSUE_TEMPLATE/test-mokogitea.md -> test-mokogit.md Authored-by: Moko Consulting --- .github/ISSUE_TEMPLATE/bug-report.yaml | 4 ++-- .../ISSUE_TEMPLATE/{test-mokogitea.md => test-mokogit.md} | 0 .mokogit/issue_template.md | 2 +- cmd/web.go | 6 +++--- modules/graceful/manager_unix.go | 2 +- modules/setting/setting.go | 4 ++-- options/fileicon/material-icon-rules.json | 4 ++-- services/doctor/dbconsistency.go | 2 +- snap/snapcraft.yaml | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) rename .mokogit/ISSUE_TEMPLATE/{test-mokogitea.md => test-mokogit.md} (100%) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yaml b/.github/ISSUE_TEMPLATE/bug-report.yaml index 4dbe1a4c56..d99c47b1f5 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yaml +++ b/.github/ISSUE_TEMPLATE/bug-report.yaml @@ -27,8 +27,8 @@ body: - type: input id: gitea-ver attributes: - label: Gitea Version - description: Gitea version (or commit reference) of your instance + label: MokoGIT Version + description: MokoGIT version (or commit reference) of your instance validations: required: true - type: dropdown diff --git a/.mokogit/ISSUE_TEMPLATE/test-mokogitea.md b/.mokogit/ISSUE_TEMPLATE/test-mokogit.md similarity index 100% rename from .mokogit/ISSUE_TEMPLATE/test-mokogitea.md rename to .mokogit/ISSUE_TEMPLATE/test-mokogit.md diff --git a/.mokogit/issue_template.md b/.mokogit/issue_template.md index cf173a67ca..c8096271f7 100644 --- a/.mokogit/issue_template.md +++ b/.mokogit/issue_template.md @@ -10,7 +10,7 @@ incomplete details will be handled as an invalid report. --> -- Gitea version (or commit ref): +- MokoGIT version (or commit ref): - Git version: - Operating system: diff --git a/cmd/web.go b/cmd/web.go index 06587a124e..09b3be128e 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -112,7 +112,7 @@ func createPIDFile(pidPath string) { } func showWebStartupMessage(msg string) { - log.Info("Gitea version: %s%s", setting.AppVer, setting.AppBuiltWith) + log.Info("MokoGIT version: %s%s", setting.AppVer, setting.AppBuiltWith) log.Info("* RunMode: %s", setting.RunMode) log.Info("* AppPath: %s", setting.AppPath) log.Info("* WorkPath: %s", setting.AppWorkPath) @@ -258,9 +258,9 @@ func runWeb(ctx context.Context, cmd *cli.Command) error { defer cancel() if os.Getppid() > 1 && len(os.Getenv("LISTEN_FDS")) > 0 { - log.Info("Restarting Gitea on PID: %d from parent PID: %d", os.Getpid(), os.Getppid()) + log.Info("Restarting MokoGIT on PID: %d from parent PID: %d", os.Getpid(), os.Getppid()) } else { - log.Info("Starting Gitea on PID: %d", os.Getpid()) + log.Info("Starting MokoGIT on PID: %d", os.Getpid()) } // Set pid file setting diff --git a/modules/graceful/manager_unix.go b/modules/graceful/manager_unix.go index d3ad7cea34..ba1767f123 100644 --- a/modules/graceful/manager_unix.go +++ b/modules/graceful/manager_unix.go @@ -50,7 +50,7 @@ func (g *Manager) start() { g.isChild = len(os.Getenv(listenFDsEnv)) > 0 && os.Getppid() > 1 - g.notify(statusMsg("Starting Gitea")) + g.notify(statusMsg("Starting MokoGIT")) g.notify(pidMsg()) go g.handleSignals(g.managerCtx) diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 12a19a2b05..26c2d22be9 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -230,9 +230,9 @@ func mustNotRunAsRoot(rootSec ConfigSection) { if !allowRunAsRoot { // Special thanks to VLC which inspired the wording of this messaging. - log.Fatal("Gitea is not supposed to be run as root. If you need to use privileged TCP ports please instead use `setcap` and the `cap_net_bind_service` permission.") + log.Fatal("MokoGIT is not supposed to be run as root. If you need to use privileged TCP ports please instead use `setcap` and the `cap_net_bind_service` permission.") } - log.Warn("You are running Gitea using the root user, and have purposely chosen to skip built-in protections around this. You have been warned against this.") + log.Warn("You are running MokoGIT using the root user, and have purposely chosen to skip built-in protections around this. You have been warned against this.") } // HasInstallLock checks the install-lock in ConfigProvider directly, because sometimes the config file is not loaded into setting variables yet. diff --git a/options/fileicon/material-icon-rules.json b/options/fileicon/material-icon-rules.json index dab7e89bfa..e2a4210dcc 100644 --- a/options/fileicon/material-icon-rules.json +++ b/options/fileicon/material-icon-rules.json @@ -617,7 +617,7 @@ "__github/workflows__": "folder-gh-workflows", "gitea/workflows": "folder-gitea-workflows", ".gitea/workflows": "folder-gitea-workflows", - ".mokogitea/workflows": "folder-gitea-workflows", + ".mokogit/workflows": "folder-gitea-workflows", "_gitea/workflows": "folder-gitea-workflows", "-gitea/workflows": "folder-gitea-workflows", "__gitea/workflows__": "folder-gitea-workflows", @@ -5238,7 +5238,7 @@ "__github/workflows__": "folder-gh-workflows-open", "gitea/workflows": "folder-gitea-workflows-open", ".gitea/workflows": "folder-gitea-workflows-open", - ".mokogitea/workflows": "folder-gitea-workflows-open", + ".mokogit/workflows": "folder-gitea-workflows-open", "_gitea/workflows": "folder-gitea-workflows-open", "-gitea/workflows": "folder-gitea-workflows-open", "__gitea/workflows__": "folder-gitea-workflows-open", diff --git a/services/doctor/dbconsistency.go b/services/doctor/dbconsistency.go index b794377713..039867330c 100644 --- a/services/doctor/dbconsistency.go +++ b/services/doctor/dbconsistency.go @@ -250,7 +250,7 @@ func prepareDBConsistencyChecks() []consistencyCheck { func checkDBConsistency(ctx context.Context, logger log.Logger, autofix bool) error { // make sure DB version is uptodate if err := db.InitEngineWithMigration(ctx, migrations.EnsureUpToDate); err != nil { - logger.Critical("Model version on the database does not match the current Gitea version. Model consistency will not be checked until the database is upgraded") + logger.Critical("Model version on the database does not match the current MokoGIT version. Model consistency will not be checked until the database is upgraded") return err } consistencyChecks := prepareDBConsistencyChecks() diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 6996a91d9e..9f66d100f4 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,5 +1,5 @@ name: gitea -summary: Gitea - A painless self-hosted Git service +summary: MokoGIT - A painless self-hosted Git service description: | The goal of this project is to make the easiest, fastest, and most painless way of setting up a self-hosted Git service. With Go, this can be done with -- 2.52.0