From 43ed1366090abbade90375f37c4c6013accb8c21 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 25 May 2025 11:42:59 -0700 Subject: [PATCH] generate swagger doc --- templates/swagger/v1_json.tmpl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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",