diff options
author | caicandong <50507092+CaiCandong@users.noreply.github.com> | 2023-07-21 16:24:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 16:24:36 +0800 |
commit | 840830b655a65c0763e3fd4bd0ced9256d2081a5 (patch) | |
tree | cb7ce50867f197eac04b735d57e15c45c43347b7 /templates/repo/commit_status.tmpl | |
parent | d57e55cd470ec737c8a9458f0ef96455e0c322ec (diff) | |
download | gitea-840830b655a65c0763e3fd4bd0ced9256d2081a5.tar.gz gitea-840830b655a65c0763e3fd4bd0ced9256d2081a5.zip |
Remove commit status running and warning to align GitHub (#25839)
Fix #25776. Close #25826.
In the discussion of #25776, @wolfogre's suggestion was to remove the
commit status of `running` and `warning` to keep it consistent with
github.
references:
-
https://docs.github.com/en/rest/commits/statuses?apiVersion=2022-11-28#about-commit-statuses
## :warning: BREAKING :warning:
So the commit status of Gitea will be consistent with GitHub, only
`pending`, `success`, `error` and `failure`, while `warning` and
`running` are not supported anymore.
---------
Co-authored-by: Jason Song <i@wolfogre.com>
Diffstat (limited to 'templates/repo/commit_status.tmpl')
-rw-r--r-- | templates/repo/commit_status.tmpl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/templates/repo/commit_status.tmpl b/templates/repo/commit_status.tmpl index 6a01b9f342..2dfd757ee1 100644 --- a/templates/repo/commit_status.tmpl +++ b/templates/repo/commit_status.tmpl @@ -1,4 +1,4 @@ -{{if or (eq .State "pending") (eq .State "running")}} +{{if eq .State "pending"}} {{svg "octicon-dot-fill" 18 "commit-status icon text yellow"}} {{end}} {{if eq .State "success"}} @@ -10,6 +10,3 @@ {{if eq .State "failure"}} {{svg "octicon-x" 18 "commit-status icon text red"}} {{end}} -{{if eq .State "warning"}} - {{svg "gitea-exclamation" 18 "commit-status icon text yellow"}} -{{end}} |