diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index c97e525660..ba83c890fe 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -21032,7 +21032,7 @@ "x-go-name": "SHA" }, "state": { - "$ref": "#/definitions/CommitStatusState" + "$ref": "#/definitions/CombinedStatusState" }, "statuses": { "type": "array", @@ -21053,6 +21053,11 @@ }, "x-go-package": "code.gitea.io/gitea/modules/structs" }, + "CombinedStatusState": { + "type": "string", + "title": "CombinedStatusState represents the combined status of a commit.", + "x-go-package": "code.gitea.io/gitea/modules/commitstatus" + }, "Comment": { "description": "Comment represents a comment on a commit or issue", "type": "object", @@ -21281,7 +21286,7 @@ "CommitStatusState": { "description": "CommitStatusState holds the state of a CommitStatus\nIt can be \"pending\", \"success\", \"error\" and \"failure\"", "type": "string", - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "code.gitea.io/gitea/modules/commitstatus" }, "CommitUser": { "type": "object",