{{.Name}} {{.Tag}}
{{short .CommitSHA}}
{{if .Body}}{{.Body}}{{end}}
-
{{$tag := .Tag}}{{$path := $.Repo.FullPath}}
{{range .Assets}}
- {{.Name}} {{.Size}} {{t "rel.bytes"}} {{end}}
{{define "mergeopts"}}
{{if .Banner}}{{.Banner.StateLabel}}{{else}}{{.MR.Status}}{{end}} {{if .MR.Draft}}{{t "mr.draft"}}{{end}}
{{if .Banner.AuthorURL}}{{if .Banner.Avatar}}{{else}}{{.Banner.Initial}}{{end}}{{.Banner.Author}}{{else if .Banner.Author}}{{.Banner.Initial}} {{.Banner.Author}}{{end}}
{{t "mr.wantsLead"}}
{{.Banner.CommitPhrase}}
{{t "mr.wantsFrom"}}
{{.MR.SourceBranch}}
{{t "mr.wantsInto"}}
{{.MR.TargetBranch}}
{{if ne (t "mr.wantsTail") "-"}}{{t "mr.wantsTail"}}{{end}}
{{range .Labels}}{{.}}{{end}}
{{end}}{{t "mr.overview"}} {{t "mr.commits"}}{{if .Banner}} {{.Banner.NCommits}}{{end}} {{t "mr.pipelines"}}{{if .Banner}} {{.Banner.NPipes}}{{end}} {{t "mr.changes"}}{{if .Banner}} {{.Banner.NChanges}}{{end}}
{{.Body}}{{end}}
{{if .HTML}}{{.Short}} {{if .UserURL}}{{.Author}}{{else}}{{.Author}}{{end}}{{t "mr.noPipeline"}}
{{end}}{{t "mr.noDiff"}}
{{end}}{{else}}{{t "mr.noDiff"}}
{{end}} {{if .CanComment}} {{end}}{{t "pipe.title"}} {{t "edit.title"}}
{{end}} {{define "pipelines"}} {{template "layout-start" .}}| {{t "pipe.col.status"}} | {{t "pipe.col.pipeline"}} | {{t "pipe.col.by"}} | {{t "pipe.col.stages"}} |
|---|---|---|---|
| {{t "pipe.none"}} | |||
{{.Pipe.CommitSHA}} {{template "pipe-retry" (dict "Can" .CanWrite "CSRF" .CSRF "Path" .Repo.FullPath "ID" .Pipe.ID "Failed" .PipeFailed "Back" (printf "/%s/-/pipelines/%d" .Repo.FullPath .Pipe.ID))}}{{t "pipe.runningOn" .RunnerName}}
{{.Label}}{{if .Queue}} {{.Queue}}{{end}} {{t "pipe.started"}} {{.When}} {{t "pipe.by"}} {{if .ActorURL}}{{end}}{{if .Avatar}}{{else if .Actor}}{{.Initial}}{{end}} {{.Actor}}{{if .ActorURL}}{{end}}
{{t "pipe.runningOn" $.RunnerName}}
{{t "pipe.utc"}}
{{range .Blocks}}{{if .Section}}{{range .Spans}}{{if .Class}}{{.Text}}{{else}}{{.Text}}{{end}}{{end}}{{range .Spans}}{{if .Class}}{{.Text}}{{else}}{{.Text}}{{end}}{{end}}{{t "pipe.emptyLog"}}
{{end}}{{short .CommitSHA}}
{{if .Body}}{{.Body}}{{end}}
{{t "rel.none"}}
{{end}} {{template "layout-end" .}} {{end}} {{define "approvalform"}} {{if .Approval}} {{if .Approval.Warn}}{{.Approval.WarnText}}
{{end}} {{if .Approval.Locked}}{{t "appr.locked"}} {{.Approval.GroupPath}}
{{t "appr.required"}}: {{if .Approval.MaintainerRequired}}{{t "appr.on"}}{{else}}{{t "appr.off"}}{{end}}
{{t "appr.count"}}: {{.Approval.RequiredCount}}
{{t "appr.developers"}}: {{if .Approval.DevelopersApprove}}{{t "appr.on"}}{{else}}{{t "appr.off"}}{{end}}
{{t "set.onlyAdmin" (roleName .Role)}}
{{end}} {{if .CanAdmin}}{{t "set.general"}} {{t "set.members"}} {{t "set.branches"}} {{t "set.tags"}} {{t "set.secrets"}} {{t "set.webhooks"}} {{t "appr.tab"}}
{{if eq .Tab "members"}}{{.}}
{{t "set.protectHint"}}
{{else if eq .Tab "tags"}}{{.}}
{{t "set.tagHint"}}
{{else if eq .Tab "secrets"}} {{template "secretpanel" .}} {{else if eq .Tab "webhooks"}} {{template "webhookform" .}} {{else if eq .Tab "approvals"}} {{template "approvalform" .}} {{else}} {{end}} {{end}} {{template "layout-end" .}} {{end}} {{define "secretpanel"}} {{if .Secrets}}| {{t "set.secretName"}} | {{t "wh.flags"}} | {{t "wh.actions"}} |
|---|---|---|
{{.Name}} |
{{if .Protected}}{{t "vis.protected"}}{{end}} {{if .Invisible}}{{t "set.invisible"}}{{end}} |
{{if .Invisible}}
{{t "action.replace"}}{{t "action.edit"}} |
{{t "set.valuesHidden"}}
{{end}} {{define "webhookform"}}| {{t "set.whName"}} | {{t "wh.url"}} | {{t "wh.events"}} | {{t "wh.actions"}} |
|---|---|---|---|
| {{.Name}} {{presetName .Preset}} | {{.Method}} {{.URL}} | {{range .Badges}}{{.}}{{end}}{{if .Filter}}{{.Filter}}{{end}} | |
| {{range .Deliveries}}{{.EventType}} → {{.StatusCode}} {{.Error}} {{end}} | |||
{{.Group.Description}}
{{end}}{{end}} {{if eq .Tab "members"}} {{if .CanAdmin}} {{end}}{{t "own.needMember"}}
{{end}} {{end}}{{t "group.secretsNote"}}
{{template "webhookform" .}} {{else}} {{if .Heat}}{{template "heatmap" .Heat}}{{end}}