From 0a5a6ebc9b1e37c0669eb5031044727881526561 Mon Sep 17 00:00:00 2001 From: Christopher Homberger Date: Sat, 3 May 2025 14:24:00 +0200 Subject: [PATCH] sync --- routers/api/v1/org/action.go | 14 ++++++++++++++ templates/swagger/v1_json.tmpl | 26 ++++++++++++++++++++++++-- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/org/action.go b/routers/api/v1/org/action.go index 40640753ed..2785312df6 100644 --- a/routers/api/v1/org/action.go +++ b/routers/api/v1/org/action.go @@ -582,6 +582,13 @@ func (Action) ListWorkflowJobs(ctx *context.APIContext) { // description: name of the organization // type: string // required: true + // responses: + // "200": + // "$ref": "#/responses/WorkflowJobsList" + // "400": + // "$ref": "#/responses/error" + // "404": + // "$ref": "#/responses/notFound" shared.ListJobs(ctx, ctx.Org.Organization.ID, 0, 0) } @@ -597,6 +604,13 @@ func (Action) ListWorkflowRuns(ctx *context.APIContext) { // description: name of the organization // type: string // required: true + // responses: + // "200": + // "$ref": "#/responses/WorkflowRunsList" + // "400": + // "$ref": "#/responses/error" + // "404": + // "$ref": "#/responses/notFound" shared.ListRuns(ctx, ctx.Org.Organization.ID, 0) } diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index a50216aa0f..5bf4d41fab 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -1863,7 +1863,18 @@ "in": "path", "required": true } - ] + ], + "responses": { + "200": { + "$ref": "#/responses/WorkflowJobsList" + }, + "400": { + "$ref": "#/responses/error" + }, + "404": { + "$ref": "#/responses/notFound" + } + } } }, "/orgs/{org}/actions/runners": { @@ -2042,7 +2053,18 @@ "in": "path", "required": true } - ] + ], + "responses": { + "200": { + "$ref": "#/responses/WorkflowRunsList" + }, + "400": { + "$ref": "#/responses/error" + }, + "404": { + "$ref": "#/responses/notFound" + } + } } }, "/orgs/{org}/actions/secrets": {