From 53dfbbb2eee5f9ae7b1a127b51fd9ab5accf5e89 Mon Sep 17 00:00:00 2001 From: Fabien Benetou Date: Thu, 25 Sep 2025 18:56:49 +0200 Subject: [PATCH] Update issue.go with labels documentation (labels content, not ids) (#35522) For https://github.com/go-gitea/gitea/issues/35521 --------- Signed-off-by: Fabien Benetou --- routers/api/v1/repo/issue.go | 2 +- templates/swagger/v1_json.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index b11e889eb50..3a85054e61b 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -351,7 +351,7 @@ func ListIssues(ctx *context.APIContext) { // enum: [closed, open, all] // - name: labels // in: query - // description: comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded + // description: comma separated list of label names. Fetch only issues that have any of this label names. Non existent labels are discarded. // type: string // - name: q // in: query diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 6dbc7e2a0e8..77a622cb635 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -9109,7 +9109,7 @@ }, { "type": "string", - "description": "comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded", + "description": "comma separated list of label names. Fetch only issues that have any of this label names. Non existent labels are discarded.", "name": "labels", "in": "query" },