snapshot of https://github.com/go-gitea/gitea.git (main, 2026-09-15; blobs > 131072B omitted)
Some checks failed
cache-seeder / prune (push) Has been skipped
cache-seeder / frontend (push) Failing after 3s
cache-seeder / python (push) Failing after 3s
cache-seeder / gobuild (push) Failing after 4s
cache-seeder / lint (bindata, lint-backend) (push) Failing after 3s
giteabot backport / giteabot (push) Has been skipped
giteabot / giteabot (push) Has been skipped
cache-prune / prune (push) Has been skipped
release-nightly-snapcraft / build-and-publish (ubuntu-24.04) (push) Has been cancelled
release-nightly-snapcraft / build-and-publish (ubuntu-24.04-arm) (push) Has been cancelled
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-container (push) Has been cancelled
cron-renovate / cron-renovate (push) Has been skipped

This commit is contained in:
upstream-mirror
2026-09-15 21:41:59 +05:00
commit 52ae0c5802
6280 changed files with 624193 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%" class="mail-footer" style="width: 100%; border-collapse: collapse;">
<tr>
<td height="16" style="height: 16px; font-size: 0; line-height: 0;">&nbsp;</td>
</tr>
<tr>
<td align="center" style="border-top: 1px solid #d0d7de; color: #59636e; font-size: 12px; padding: 8px 0 0; text-align: center;">
<a href="{{AppUrl}}">{{AppName}}</a>
</td>
</tr>
</table>

View File

@@ -0,0 +1,17 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
<title>{{.}}</title>
<style>
body {margin: 0; padding: 0}
body, td {font-family: -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif}
a, a:visited {color: #0969da; text-decoration: none}
a:hover {text-decoration: underline}
blockquote {padding-left: 1em; margin: 1em 0; border-left: 1px solid grey}
@media (prefers-color-scheme: dark) {
a, a:visited {color: #58a6ff}
.mail-footer td {border-top-color: #3f4248 !important; color: #8c959f !important}
}
</style>

View File

@@ -0,0 +1,15 @@
Subject: Inviter Display Name has invited you to join the Organization Display Name organization
Inviter:
DisplayName: Inviter Display Name
Team:
Name: Team name
Organization:
DisplayName: Organization Display Name
InviteURL: http://localhost/org/team/invite
Invite:
Email: invited@example.com

View File

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
{{template "mail/base/head" .Subject}}
</head>
<body>
<p>{{.locale.Tr "mail.team_invite.text_1" (DotEscape .Inviter.DisplayName) (DotEscape .Team.Name) (DotEscape .Organization.DisplayName)}}</p>
<p>{{.locale.Tr "mail.team_invite.text_2"}}</p><p style="word-break: break-all;"><a href="{{.InviteURL}}">{{.InviteURL}}</a></p>
<p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p>
<p>{{.locale.Tr "mail.team_invite.text_3" .Invite.Email}}</p>
{{template "mail/base/footer"}}
</body>
</html>

View File

@@ -0,0 +1,34 @@
Subject: "[user/repo] Failure: workflow.yml (main - 1234567890)"
Run:
HTMLURL: http://localhost/run/1
Jobs:
- Name: Build and test on Ubuntu with PostgreSQL and object storage
StatusIconCID: status-success.png
StatusIconAlt: Success
StatusClass: status-success
Attempt: 1
Duration: 1m23s
HTMLURL: http://localhost/job/1
- Name: Lint backend, frontend, templates, styles, and documentation
StatusIconCID: status-failure.png
StatusIconAlt: Failure
StatusClass: status-failure
Attempt: 2
Duration: 2m34s
HTMLURL: http://localhost/job/2
- Name: Publish release artifacts for Linux, macOS, and Windows
StatusIconCID: status-cancelled.png
StatusIconAlt: Cancelled
StatusClass: status-neutral
Attempt: 1
Duration: 3m45s
HTMLURL: http://localhost/job/3
- Name: Deploy documentation preview to the staging environment
StatusIconCID: status-skipped.png
StatusIconAlt: Skipped
StatusClass: status-neutral
Attempt: 1
Duration: 0s
HTMLURL: http://localhost/job/4

View File

@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html>
<head>
{{template "mail/base/head" .Subject}}
<style>
.job-row td {border-top: 1px solid #d0d7de}
a.status-success {color: #2da44e !important}
a.status-failure {color: #e5534b !important}
a.status-neutral, .job-duration {color: #697077 !important}
img.status-neutral {filter: brightness(75%)}
@media (prefers-color-scheme: dark) {
.job-row td {border-top-color: #3f4248}
a.status-neutral, .job-duration {color: #afbac7 !important}
img.status-neutral {filter: brightness(125%)}
}
</style>
</head>
<body>
<table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%" style="width: 100%; border-collapse: collapse;"><tr><td style="padding: 0 8px;">
{{if .Jobs}}
<table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%" style="width: 100%; border-collapse: collapse;">
{{range $index, $job := .Jobs}}
<tr{{if $index}} class="job-row"{{end}}>
<td width="26" style="width: 26px; padding: 6px 8px 6px 0; vertical-align: middle;"><img class="{{$job.StatusClass}}" src="cid:{{$job.StatusIconCID}}" width="18" height="18" alt="{{$job.StatusIconAlt}}" style="display: block;"></td>
<td align="left" style="padding: 6px 0; text-align: left; vertical-align: middle; word-break: break-word;">
<a class="{{$job.StatusClass}}" href="{{$job.HTMLURL}}" style="font-weight: bold;"><span style="display: none;">{{$job.StatusIconAlt}}: </span>{{$job.Name}}</a>
{{if gt $job.Attempt 1}}({{$.locale.Tr "actions.runs.attempt"}} #{{$job.Attempt}}){{end}}
</td>
<td class="job-duration" width="1%" align="right" style="width: 1%; padding: 6px 0 6px 8px; text-align: right; vertical-align: middle; white-space: nowrap;">{{$job.Duration}}<span style="display: none;"><br></span></td>
</tr>
{{end}}
</table>
{{else}}
<p><a href="{{.Run.HTMLURL}}">{{.Run.WorkflowID}}</a></p>
{{end}}
</td></tr></table>
{{template "mail/base/footer"}}
</body>
</html>

View File

@@ -0,0 +1,3 @@
Subject: DoerName added you to user/repo
Link: http://localhost
RepoName: user/repo

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
{{template "mail/base/head" .Subject}}
</head>
<body>
<p>{{.locale.Tr "mail.repo.collaborator.added.text"}} <a href="{{.Link}}">{{.RepoName}}</a></p>
{{template "mail/base/footer"}}
</body>
</html>

View File

@@ -0,0 +1,11 @@
Subject: "[user/repo] Issue Title (#1)"
Link: http://localhost
Issue:
Index: 1
Repo:
FullName: user/repo
HTMLURL: http://localhost/issue
Doer:
Name: DoerName

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
{{template "mail/base/head" .Subject}}
</head>
{{$repo_url := HTMLFormat "<a href='%s'>%s</a>" .Issue.Repo.HTMLURL .Issue.Repo.FullName}}
{{$link := HTMLFormat "<a href='%s'>#%d</a>" .Link .Issue.Index}}
<body>
<p>
{{if .IsPull}}
{{.locale.Tr "mail.issue_assigned.pull" .Doer.Name $link $repo_url}}
{{else}}
{{.locale.Tr "mail.issue_assigned.issue" .Doer.Name $link $repo_url}}
{{end}}
</p>
{{if .CanReply}}<p>{{.locale.Tr "mail.reply_directly"}}.</p>{{end}}
{{template "mail/base/footer"}}
</body>
</html>

View File

@@ -0,0 +1,7 @@
Subject: "Re: [user/repo] Issue Title (#1)"
Link: http://localhost/issue/1
CanReply: true
Body: Issue body
Issue:
Index: 1

View File

@@ -0,0 +1,75 @@
<!DOCTYPE html>
<html>
<head>
{{template "mail/base/head" .Subject}}
</head>
<body>
{{if .IsMention}}<p>{{.locale.Tr "mail.issue.x_mentioned_you" .Doer.Name}}</p>{{end}}
{{if eq .ActionName "push"}}
<p>
{{if .Comment.IsForcePush}}
{{$oldCommitUrl := printf "%s/commit/%s" .Comment.Issue.PullRequest.BaseRepo.HTMLURL .Comment.OldCommit}}
{{$oldShortSha := ShortSha .Comment.OldCommit}}
{{$oldCommitLink := HTMLFormat "<a href='%[1]s'><b>%[2]s</b></a>" $oldCommitUrl $oldShortSha}}
{{$newCommitUrl := printf "%s/commit/%s" .Comment.Issue.PullRequest.BaseRepo.HTMLURL .Comment.NewCommit}}
{{$newShortSha := ShortSha .Comment.NewCommit}}
{{$newCommitLink := HTMLFormat "<a href='%[1]s'><b>%[2]s</b></a>" $newCommitUrl $newShortSha}}
{{.locale.Tr "mail.issue.action.force_push" .Doer.Name .Comment.Issue.PullRequest.HeadBranch $oldCommitLink $newCommitLink}}
{{else}}
{{.locale.TrN (len .Comment.Commits) "mail.issue.action.push_1" "mail.issue.action.push_n" .Doer.Name .Comment.Issue.PullRequest.HeadBranch (len .Comment.Commits)}}
{{end}}
</p>
{{end}}
<p>
{{if eq .ActionName "close"}}
{{.locale.Tr "mail.issue.action.close" .Doer.Name .Issue.Index}}
{{else if eq .ActionName "reopen"}}
{{.locale.Tr "mail.issue.action.reopen" .Doer.Name .Issue.Index}}
{{else if eq .ActionName "merge"}}
{{.locale.Tr "mail.issue.action.merge" .Doer.Name .Issue.Index .Issue.PullRequest.BaseBranch}}
{{else if eq .ActionName "approve"}}
{{.locale.Tr "mail.issue.action.approve" .Doer.Name}}
{{else if eq .ActionName "reject"}}
{{.locale.Tr "mail.issue.action.reject" .Doer.Name}}
{{else if eq .ActionName "review"}}
{{.locale.Tr "mail.issue.action.review" .Doer.Name}}
{{else if eq .ActionName "review_dismissed"}}
{{.locale.Tr "mail.issue.action.review_dismissed" .Doer.Name .Comment.Review.Reviewer.Name}}
{{else if eq .ActionName "ready_for_review"}}
{{.locale.Tr "mail.issue.action.ready_for_review" .Doer.Name}}
{{end}}
{{- if eq .Body ""}}
{{if eq .ActionName "new"}}
{{.locale.Tr "mail.issue.action.new" .Doer.Name .Issue.Index}}
{{end}}
{{else}}
{{.Body}}
{{end -}}
{{- range .ReviewComments}}
<hr>
{{$.locale.Tr "mail.issue.in_tree_path" .TreePath}}
<div style="padding-left: 1em; margin: 1em 0;">
<pre style="padding: 1em; border-left: 1px solid grey;">{{.Patch}}</pre>
<div>{{.RenderedContent}}</div>
</div>
{{end -}}
</p>
{{if eq .ActionName "push"}}
<ul>
{{$repoURL := $.Comment.Issue.PullRequest.BaseRepo.HTMLURL}}
{{range $commit := $.Comment.Commits}}
{{$gitCommit := $commit.UserCommit.GitCommit}}
<li>
<a href="{{$repoURL}}/commit/{{$gitCommit.ID}}">{{ShortSha $gitCommit.ID.String}}</a> - {{$gitCommit.MessageTitle}}
</li>
{{end}}
</ul>
{{end}}
<p><a href="{{.Link}}">#{{.Issue.Index}}</a>{{if .CanReply}} {{.locale.Tr "mail.reply"}}{{end}}.</p>
{{template "mail/base/footer"}}
</body>
</html>

View File

@@ -0,0 +1,13 @@
Subject: v1.0.0 in user/repo released
# no Attachments mock because "FileSize" requires int64 which yaml cannot produce
Release:
TagName: v1.0.0
Title: v1.0.0 - Great Release
HTMLURL: http://localhost/user/repo/releases/tag/v1.0.0
RenderedNote: This release fixes several bugs and improves performance.
Publisher:
Name: PublisherName
Repo:
FullName: user/repo
HTMLURL: http://localhost/user/repo

View File

@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
{{template "mail/base/head" .Subject}}
</head>
{{$release_url := HTMLFormat "<a href='%s'>%s</a>" .Release.HTMLURL .Release.TagName}}
{{$repo_url := HTMLFormat "<a href='%s'>%s</a>" .Release.Repo.HTMLURL .Release.Repo.FullName}}
<body>
<p>
{{.locale.Tr "mail.release.new.text" .Release.Publisher.Name $release_url $repo_url}}
</p>
<h4>{{.locale.Tr "mail.release.title" .Release.Title}}</h4>
<p>{{.locale.Tr "mail.release.note"}}</p>
{{if ne .Release.RenderedNote ""}}<div>{{.Release.RenderedNote}}</div>{{end}}
<p>{{.locale.Tr "mail.release.downloads"}}</p>
<ul>
{{if not .DisableDownloadSourceArchives}}
<li>
<a href="{{.Release.Repo.HTMLURL}}/archive/{{.Release.TagName | PathEscapeSegments}}.zip" rel="nofollow"><strong>{{.locale.Tr "mail.release.download.zip"}}</strong></a>
</li>
<li>
<a href="{{.Release.Repo.HTMLURL}}/archive/{{.Release.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow"><strong>{{.locale.Tr "mail.release.download.targz"}}</strong></a>
</li>
{{end}}
{{range .Release.Attachments}}
<li>
<a target="_blank" href="{{.DownloadURL}}"><strong>{{.Name}} ({{.Size | FormatByteSize}})</strong></a>
</li>
{{end}}
</ul>
{{template "mail/base/footer"}}
</body>
</html>

View File

@@ -0,0 +1,3 @@
Subject: DoerName would like to transfer "user/repo" to you
Link: http://localhost
Repo: user/repo

View File

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
{{template "mail/base/head" .Subject}}
</head>
{{$url := HTMLFormat "<a href='%[1]s'>%[2]s</a>" .Link .Repo}}
<body>
<p>{{.Subject}}.
{{.locale.Tr "mail.repo.transfer.body" $url}}
</p>
{{template "mail/base/footer"}}
</body>
</html>

View File

@@ -0,0 +1,4 @@
Subject: Please activate your account
DisplayName: User Display Name
Code: The-Activation-Code
ActiveCodeLives: 24h

View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
{{template "mail/base/head" (.locale.Tr "mail.activate_account.title" (.DisplayName|DotEscape))}}
</head>
{{$activate_url := printf "%suser/activate?code=%s" AppUrl (QueryEscape .Code)}}
<body>
<p>{{.locale.Tr "mail.activate_account.text_1" (.DisplayName|DotEscape) AppName}}</p>
<p>{{.locale.Tr "mail.activate_account.text_2" .ActiveCodeLives}}</p><p style="word-break: break-all;"><a href="{{$activate_url}}">{{$activate_url}}</a></p>
<p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p>
{{template "mail/base/footer"}}
</body>
</html>

View File

@@ -0,0 +1,5 @@
Subject: Verify your email address
DisplayName: User Display Name
Code: The-Activation-Code
Email: admin@example.com
ActiveCodeLives: 24h

View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
{{template "mail/base/head" (.locale.Tr "mail.activate_email.title" (.DisplayName|DotEscape))}}
</head>
{{$activate_url := printf "%suser/activate_email?code=%s&email=%s" AppUrl (QueryEscape .Code) (QueryEscape .Email)}}
<body>
<p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}</p>
<p>{{.locale.Tr "mail.activate_email.text" .ActiveCodeLives}}</p><p style="word-break: break-all;"><a href="{{$activate_url}}">{{$activate_url}}</a></p>
<p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p>
{{template "mail/base/footer"}}
</body>
</html>

View File

@@ -0,0 +1,3 @@
Subject: Welcome to Gitea
DisplayName: User Display Name
Username: Username

View File

@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
{{template "mail/base/head" (.locale.Tr "mail.register_notify.title" (.DisplayName|DotEscape) AppName)}}
</head>
{{$set_pwd_url := printf "%[1]suser/forgot_password" AppUrl}}
<body>
<p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}</p>
<p>{{.locale.Tr "mail.register_notify.text_1" AppName}}</p>
<p>{{.locale.Tr "mail.register_notify.text_2" .Username}}</p><p><a href="{{AppUrl}}user/login">{{AppUrl}}user/login</a></p>
<p>{{.locale.Tr "mail.register_notify.text_3" $set_pwd_url}}</p>
{{template "mail/base/footer"}}
</body>
</html>

View File

@@ -0,0 +1,4 @@
Subject: Recover your account
DisplayName: User Display Name
Code: The-Reset-Token
ResetPwdCodeLives: 24h

View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
{{template "mail/base/head" (.locale.Tr "mail.reset_password.title" (.DisplayName|DotEscape))}}
</head>
{{$recover_url := printf "%suser/recover_account?code=%s" AppUrl (QueryEscape .Code)}}
<body>
<p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}</p>
<p>{{.locale.Tr "mail.reset_password.text" .ResetPwdCodeLives}}</p><p style="word-break: break-all;"><a href="{{$recover_url}}">{{$recover_url}}</a></p>
<p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p>
{{template "mail/base/footer"}}
</body>
</html>