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 /models/git | |
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 'models/git')
-rw-r--r-- | models/git/commit_status_test.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/models/git/commit_status_test.go b/models/git/commit_status_test.go index 2197433b3e..a86941a0fe 100644 --- a/models/git/commit_status_test.go +++ b/models/git/commit_status_test.go @@ -31,10 +31,6 @@ func TestGetCommitStatuses(t *testing.T) { assert.Equal(t, structs.CommitStatusPending, statuses[0].State) assert.Equal(t, "https://try.gitea.io/api/v1/repos/user2/repo1/statuses/1234123412341234123412341234123412341234", statuses[0].APIURL(db.DefaultContext)) - assert.Equal(t, "cov/awesomeness", statuses[1].Context) - assert.Equal(t, structs.CommitStatusWarning, statuses[1].State) - assert.Equal(t, "https://try.gitea.io/api/v1/repos/user2/repo1/statuses/1234123412341234123412341234123412341234", statuses[1].APIURL(db.DefaultContext)) - assert.Equal(t, "cov/awesomeness", statuses[2].Context) assert.Equal(t, structs.CommitStatusSuccess, statuses[2].State) assert.Equal(t, "https://try.gitea.io/api/v1/repos/user2/repo1/statuses/1234123412341234123412341234123412341234", statuses[2].APIURL(db.DefaultContext)) |