diff --git a/routers/api/v1/admin/runners.go b/routers/api/v1/admin/runners.go index 736c421229..1e15b24076 100644 --- a/routers/api/v1/admin/runners.go +++ b/routers/api/v1/admin/runners.go @@ -14,7 +14,7 @@ import ( func GetRegistrationToken(ctx *context.APIContext) { // swagger:operation GET /admin/runners/registration-token admin adminGetRunnerRegistrationToken // --- - // summary: Get an global actions runner registration token + // summary: Get a global actions runner registration token // produces: // - application/json // parameters: @@ -29,7 +29,7 @@ func GetRegistrationToken(ctx *context.APIContext) { func CreateRegistrationToken(ctx *context.APIContext) { // swagger:operation POST /admin/actions/runners/registration-token admin adminCreateRunnerRegistrationToken // --- - // summary: Get an global actions runner registration token + // summary: Get a global actions runner registration token // produces: // - application/json // parameters: @@ -57,11 +57,11 @@ func ListRunners(ctx *context.APIContext) { shared.ListRunners(ctx, 0, 0) } -// GetRunner get an global runner +// GetRunner get a global runner func GetRunner(ctx *context.APIContext) { // swagger:operation GET /admin/actions/runners/{runner_id} admin getAdminRunner // --- - // summary: Get an global runner + // summary: Get a global runner // produces: // - application/json // parameters: @@ -80,11 +80,11 @@ func GetRunner(ctx *context.APIContext) { shared.GetRunner(ctx, 0, 0, ctx.PathParamInt64("runner_id")) } -// DeleteRunner delete an global runner +// DeleteRunner delete a global runner func DeleteRunner(ctx *context.APIContext) { // swagger:operation DELETE /admin/actions/runners/{runner_id} admin deleteAdminRunner // --- - // summary: Delete an global runner + // summary: Delete a global runner // produces: // - application/json // parameters: diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 9490154f4b..6ed21e0451 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -149,7 +149,7 @@ "tags": [ "admin" ], - "summary": "Get an global actions runner registration token", + "summary": "Get a global actions runner registration token", "operationId": "adminCreateRunnerRegistrationToken", "responses": { "200": { @@ -166,7 +166,7 @@ "tags": [ "admin" ], - "summary": "Get an global runner", + "summary": "Get a global runner", "operationId": "getAdminRunner", "parameters": [ { @@ -196,7 +196,7 @@ "tags": [ "admin" ], - "summary": "Delete an global runner", + "summary": "Delete a global runner", "operationId": "deleteAdminRunner", "parameters": [ { @@ -624,7 +624,7 @@ "tags": [ "admin" ], - "summary": "Get an global actions runner registration token", + "summary": "Get a global actions runner registration token", "operationId": "adminGetRunnerRegistrationToken", "responses": { "200": {