Compare commits

...

2 Commits

Author SHA1 Message Date
a813bf45ff リリースなのじゃ
Some checks failed
cron-translations / crowdin-pull (push) Has been skipped
release-tag-version / binary (push) Has been cancelled
release-tag-version / docker-rootful (push) Has been cancelled
release-tag-version / docker-rootless (push) Has been cancelled
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
2026-02-15 17:26:18 -03:00
1ae5ce9d67 Tippyなのじゃ
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
2026-02-15 11:56:58 -03:00
11 changed files with 21 additions and 38 deletions

1
.envrc
View File

@@ -1 +0,0 @@
use flake

View File

@@ -68,10 +68,10 @@ else ifeq ($(patsubst Windows%,Windows,$(OS)),Windows)
endif
ifeq ($(IS_WINDOWS),yes)
GOFLAGS := -v -buildmode=exe
EXECUTABLE ?= gitea.exe
EXECUTABLE ?= cocoa.exe
else
GOFLAGS := -v
EXECUTABLE ?= gitea
EXECUTABLE ?= cocoa
endif
ifeq ($(shell sed --version 2>/dev/null | grep -q GNU && echo gnu),gnu)

View File

@@ -1,4 +1,4 @@
![](/repo-avatars/4daf97aab1941faf81780299ab32e7fcceed021e5881cd400f5faf9863f942ea)
![](assets/logo.svg)
# Cocoa (ココア)
This is a fork of [Gitea](https://gitea.io) used within the scope of [Yakumo Laboratories](https://yakumolabs.privatedns.org).

View File

@@ -23,13 +23,13 @@ func init() {
}
// cliHelpPrinterNew helps to print "DEFAULT CONFIGURATION" for the following cases ( "-c" can apper in any position):
// * ./gitea -c /dev/null -h
// * ./gitea -c help /dev/null help
// * ./gitea help -c /dev/null
// * ./gitea help -c /dev/null web
// * ./gitea help web -c /dev/null
// * ./gitea web help -c /dev/null
// * ./gitea web -h -c /dev/null
// * ./cocoa -c /dev/null -h
// * ./cocoa -c help /dev/null help
// * ./cocoa help -c /dev/null
// * ./cocoa help -c /dev/null web
// * ./cocoa help web -c /dev/null
// * ./cocoa web help -c /dev/null
// * ./cocoa web -h -c /dev/null
func cliHelpPrinterNew(out io.Writer, templ string, data any) {
cmd, _ := data.(*cli.Command)
if cmd != nil {

View File

@@ -41,11 +41,11 @@ func IsWorkflow(path string) bool {
return false
}
return strings.HasPrefix(path, ".gitea/workflows") || strings.HasPrefix(path, ".github/workflows")
return strings.HasPrefix(path, ".cocoa/workflows") || strings.HasPrefix(path, ".github/workflows")
}
func ListWorkflows(commit *git.Commit) (string, git.Entries, error) {
rpath := ".gitea/workflows"
rpath := ".cocoa/workflows"
tree, err := commit.SubTree(rpath)
if _, ok := err.(git.ErrNotExist); ok {
rpath = ".github/workflows"

View File

@@ -96,7 +96,7 @@ func InitCfgProvider(file string) {
func MustInstalled() {
if !InstallLock {
log.Fatal(`Unable to load config file for a installed Gitea instance, you should either use "--config" to set your config file (app.ini), or run "gitea web" command to install Gitea.`)
log.Fatal(`Unable to load config file for a installed Cocoa instance, you should either use "--config" to set your config file (app.ini), or run "cocoa web" command to install Cocoa.`)
}
}
@@ -176,9 +176,9 @@ func loadRunModeFrom(rootCfg ConfigProvider) {
if os.Getuid() == 0 {
if !unsafeAllowRunAsRoot {
// Special thanks to VLC which inspired the wording of this messaging.
log.Fatal("Gitea is not supposed to be run as root. Sorry. If you need to use privileged TCP ports please instead use setcap and the `cap_net_bind_service` permission")
log.Fatal("Cocoa is not supposed to be run as root. Sorry. If you need to use privileged TCP ports please instead use setcap and the `cap_net_bind_service` permission (if you are on a Linux system)")
}
log.Critical("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.Critical("You are running Cocoa using the root user, and have purposely chosen to skip built-in protections around this. You have been warned against this.")
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 51 KiB

View File

@@ -23,8 +23,8 @@ import (
var templateDirCandidates = []string{
"ISSUE_TEMPLATE",
"issue_template",
".gitea/ISSUE_TEMPLATE",
".gitea/issue_template",
".cocoa/ISSUE_TEMPLATE",
".cocoa/issue_template",
".github/ISSUE_TEMPLATE",
".github/issue_template",
".gitlab/ISSUE_TEMPLATE",
@@ -32,8 +32,8 @@ var templateDirCandidates = []string{
}
var templateConfigCandidates = []string{
".gitea/ISSUE_TEMPLATE/config",
".gitea/issue_template/config",
".cocoa/ISSUE_TEMPLATE/config",
".cocoa/issue_template/config",
".github/ISSUE_TEMPLATE/config",
".github/issue_template/config",
}

View File

@@ -67,7 +67,7 @@ func getMergeMessage(ctx context.Context, baseGitRepo *git.Repository, pr *issue
reviewedBy := pr.GetApprovers(ctx)
if mergeStyle != "" {
templateFilepath := fmt.Sprintf(".gitea/default_merge_message/%s_TEMPLATE.md", strings.ToUpper(string(mergeStyle)))
templateFilepath := fmt.Sprintf(".cocoa/default_merge_message/%s_TEMPLATE.md", strings.ToUpper(string(mergeStyle)))
commit, err := baseGitRepo.GetBranchCommit(pr.BaseRepo.DefaultBranch)
if err != nil {
return "", "", err

View File

@@ -1,7 +1,7 @@
<footer class="page-footer" role="group" aria-label="{{ctx.Locale.Tr "aria.footer"}}">
<div class="left-links" role="contentinfo" aria-label="{{ctx.Locale.Tr "aria.footer.software"}}">
{{if ShowFooterPoweredBy}}
<a target="_blank" rel="noopener noreferrer" href="https://cocoa-project.frama.io">{{ctx.Locale.Tr "powered_by" "Cocoa"}}</a>
<a target="_blank" rel="noopener noreferrer" href="https://cocoa-project.laidback.moe">{{ctx.Locale.Tr "powered_by" "Cocoa"}}</a>
{{end}}
{{if (or .ShowFooterVersion .PageIsAdmin)}}
{{ctx.Locale.Tr "version"}}:

View File

@@ -12,14 +12,6 @@
</div>
</div>
<div class="ui stackable middle very relaxed page grid">
<div class="eight wide center column">
<h1 class="hero ui icon header">
{{svg "octicon-flame"}} {{ctx.Locale.Tr "startpage.install"}}
</h1>
<p class="large tw-text-balance">
{{ctx.Locale.Tr "startpage.install_desc" "https://docs.gitea.com/installation/install-from-binary" "https://github.com/go-gitea/gitea/tree/master/docker" "https://docs.gitea.com/installation/install-from-package"}}
</p>
</div>
<div class="eight wide center column">
<h1 class="hero ui icon header">
{{svg "octicon-device-desktop"}} {{ctx.Locale.Tr "startpage.platform"}}
@@ -38,14 +30,6 @@
{{ctx.Locale.Tr "startpage.lightweight_desc"}}
</p>
</div>
<div class="eight wide center column">
<h1 class="hero ui icon header">
{{svg "octicon-code"}} {{ctx.Locale.Tr "startpage.license"}}
</h1>
<p class="large tw-text-balance">
{{ctx.Locale.Tr "startpage.license_desc" "https://code.gitea.io/gitea" "code.gitea.io/gitea" "https://github.com/go-gitea/gitea"}}
</p>
</div>
</div>
</div>
{{template "base/footer" .}}