diff --git a/routers/api/v1/repo/actions.go b/routers/api/v1/repo/actions.go index 3326f4e5c0..67d858f02c 100644 --- a/routers/api/v1/repo/actions.go +++ b/routers/api/v1/repo/actions.go @@ -42,6 +42,16 @@ func ListActionTasks(ctx *context.APIContext) { // responses: // "200": // "$ref": "#/responses/TasksList" + // "400": + // "$ref": "#/responses/error" + // "403": + // "$ref": "#/responses/forbidden" + // "404": + // "$ref": "#/responses/notFound" + // "409": + // "$ref": "#/responses/error" + // "422": + // "$ref": "#/responses/validationError" page := ctx.FormInt("page") limit := convert.ToCorrectPageSize(ctx.FormInt("limit")) diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 1b674f0e5e..fb8eef5bde 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -3990,6 +3990,21 @@ "responses": { "200": { "$ref": "#/responses/TasksList" + }, + "400": { + "$ref": "#/responses/error" + }, + "403": { + "$ref": "#/responses/forbidden" + }, + "404": { + "$ref": "#/responses/notFound" + }, + "409": { + "$ref": "#/responses/error" + }, + "422": { + "$ref": "#/responses/validationError" } } }