Restore warning commit status (#27504)
Partial revert of https://github.com/go-gitea/gitea/pull/25839. This commit status is used by a number of external integrations, so I think we should not remove it (See https://github.com/go-gitea/gitea/pull/25839#issuecomment-1729002077). This is a rare case where an existing migration needed to be alterted to avoid data loss. --------- Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
0c2a3f4cdc
commit
5bf367f904
8 changed files with 26 additions and 7 deletions
|
@ -53,6 +53,7 @@ func TestPullCreate_CommitStatus(t *testing.T) {
|
|||
api.CommitStatusError,
|
||||
api.CommitStatusFailure,
|
||||
api.CommitStatusSuccess,
|
||||
api.CommitStatusWarning,
|
||||
}
|
||||
|
||||
statesIcons := map[api.CommitStatusState]string{
|
||||
|
@ -60,6 +61,7 @@ func TestPullCreate_CommitStatus(t *testing.T) {
|
|||
api.CommitStatusSuccess: "octicon-check",
|
||||
api.CommitStatusError: "gitea-exclamation",
|
||||
api.CommitStatusFailure: "octicon-x",
|
||||
api.CommitStatusWarning: "gitea-exclamation",
|
||||
}
|
||||
|
||||
testCtx := NewAPITestContext(t, "user1", "repo1", auth_model.AccessTokenScopeWriteRepository)
|
||||
|
|
|
@ -125,6 +125,10 @@ func TestRepoCommitsWithStatusFailure(t *testing.T) {
|
|||
doTestRepoCommitWithStatus(t, "failure", "octicon-x", "red")
|
||||
}
|
||||
|
||||
func TestRepoCommitsWithStatusWarning(t *testing.T) {
|
||||
doTestRepoCommitWithStatus(t, "warning", "gitea-exclamation", "yellow")
|
||||
}
|
||||
|
||||
func TestRepoCommitsStatusParallel(t *testing.T) {
|
||||
defer tests.PrepareTestEnv(t)()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue