]> source.dussan.org Git - gitea.git/commit
Remove commit status running and warning to align GitHub (#25839)
authorcaicandong <50507092+CaiCandong@users.noreply.github.com>
Fri, 21 Jul 2023 08:24:36 +0000 (16:24 +0800)
committerGitHub <noreply@github.com>
Fri, 21 Jul 2023 08:24:36 +0000 (16:24 +0800)
commit840830b655a65c0763e3fd4bd0ced9256d2081a5
treecb7ce50867f197eac04b735d57e15c45c43347b7
parentd57e55cd470ec737c8a9458f0ef96455e0c322ec
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>
models/git/commit_status_test.go
models/migrations/migrations.go
models/migrations/v1_21/v266.go [new file with mode: 0644]
modules/structs/commit_status.go
services/actions/commit_status.go
services/convert/status.go
templates/repo/commit_status.tmpl
tests/integration/pull_status_test.go
tests/integration/repo_commits_test.go