aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorCirnoT <1447794+CirnoT@users.noreply.github.com>2020-04-16 21:08:20 +0200
committerGitHub <noreply@github.com>2020-04-16 14:08:20 -0500
commite93826675c387ff3a1a2b969f69186071eb832c1 (patch)
treedf08103e1f9cf3b93751e4e9979e49c5de98a5f6 /templates
parent9ffa89249e707d2f977a6fb11a1b56a527fa2640 (diff)
downloadgitea-e93826675c387ff3a1a2b969f69186071eb832c1.tar.gz
gitea-e93826675c387ff3a1a2b969f69186071eb832c1.zip
Add missing commit states to PR checks template (#11085)
* Add missing commit states to PR checks template * Add separate translation strings for warning and error * Fix failure status string * Revert accidental change with whitespace
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/pulls/status.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/repo/pulls/status.tmpl b/templates/repo/pulls/status.tmpl
index 76a4eb5423..a15c10582e 100644
--- a/templates/repo/pulls/status.tmpl
+++ b/templates/repo/pulls/status.tmpl
@@ -4,6 +4,10 @@
{{$.i18n.Tr "repo.pulls.status_checking"}}
{{else if eq .LatestCommitStatus.State "success"}}
{{$.i18n.Tr "repo.pulls.status_checks_success"}}
+ {{else if eq .LatestCommitStatus.State "warning"}}
+ {{$.i18n.Tr "repo.pulls.status_checks_warning"}}
+ {{else if eq .LatestCommitStatus.State "failure"}}
+ {{$.i18n.Tr "repo.pulls.status_checks_failure"}}
{{else if eq .LatestCommitStatus.State "error"}}
{{$.i18n.Tr "repo.pulls.status_checks_error"}}
{{else}}