From 578ab6a3c9e703761898b99f2b3141dcc76fa6eb Mon Sep 17 00:00:00 2001 From: voltagex Date: Sun, 21 Jan 2024 07:06:48 +0000 Subject: [PATCH] [GITEA] API comment update routers/api/v1/shared/runners.go Refs: https://codeberg.org/forgejo/forgejo/pulls/2191 (cherry picked from commit 1e89dd95b9d24377bf50a952c323d9e8b6895bf3) (cherry picked from commit fecc14a16c0f85f84127196609b7eafcb6605e80) (cherry picked from commit b4509aa4c79573be973feae96ae808c195637634) (cherry picked from commit 6fdf3b2ad1a3411e6f1f64cb977ee2f158968d1c) --- routers/api/v1/shared/runners.go | 2 +- templates/swagger/v1_json.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/shared/runners.go b/routers/api/v1/shared/runners.go index a342bd4b63..fe1584d2e7 100644 --- a/routers/api/v1/shared/runners.go +++ b/routers/api/v1/shared/runners.go @@ -12,7 +12,7 @@ import ( "code.gitea.io/gitea/modules/util" ) -// RegistrationToken is response related to registeration token +// RegistrationToken is a string used to register a runner with a server // swagger:response RegistrationToken type RegistrationToken struct { Token string `json:"token"` diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 0d1ac4ba48..92ee62aff9 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -24376,7 +24376,7 @@ } }, "RegistrationToken": { - "description": "RegistrationToken is response related to registeration token", + "description": "RegistrationToken is a string used to register a runner with a server", "headers": { "token": { "type": "string"