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
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:
34
templates/mail/repo/actions/workflow_run.devtest.yml
Normal file
34
templates/mail/repo/actions/workflow_run.devtest.yml
Normal 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
|
||||
42
templates/mail/repo/actions/workflow_run.tmpl
Normal file
42
templates/mail/repo/actions/workflow_run.tmpl
Normal 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>
|
||||
3
templates/mail/repo/collaborator.devtest.yml
Normal file
3
templates/mail/repo/collaborator.devtest.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
Subject: DoerName added you to user/repo
|
||||
Link: http://localhost
|
||||
RepoName: user/repo
|
||||
11
templates/mail/repo/collaborator.tmpl
Normal file
11
templates/mail/repo/collaborator.tmpl
Normal 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>
|
||||
11
templates/mail/repo/issue/assigned.devtest.yml
Normal file
11
templates/mail/repo/issue/assigned.devtest.yml
Normal 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
|
||||
20
templates/mail/repo/issue/assigned.tmpl
Normal file
20
templates/mail/repo/issue/assigned.tmpl
Normal 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>
|
||||
7
templates/mail/repo/issue/default.devtest.yml
Normal file
7
templates/mail/repo/issue/default.devtest.yml
Normal 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
|
||||
75
templates/mail/repo/issue/default.tmpl
Normal file
75
templates/mail/repo/issue/default.tmpl
Normal 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>
|
||||
13
templates/mail/repo/release.devtest.yml
Normal file
13
templates/mail/repo/release.devtest.yml
Normal 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
|
||||
34
templates/mail/repo/release.tmpl
Normal file
34
templates/mail/repo/release.tmpl
Normal 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>
|
||||
3
templates/mail/repo/transfer.devtest.yml
Normal file
3
templates/mail/repo/transfer.devtest.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
Subject: DoerName would like to transfer "user/repo" to you
|
||||
Link: http://localhost
|
||||
Repo: user/repo
|
||||
14
templates/mail/repo/transfer.tmpl
Normal file
14
templates/mail/repo/transfer.tmpl
Normal 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>
|
||||
Reference in New Issue
Block a user