From 737bd7d765da9069a3cd5a3b5c56cc6414952930 Mon Sep 17 00:00:00 2001 From: Fabien Benetou Date: Tue, 23 Sep 2025 13:17:40 +0200 Subject: [PATCH 1/3] Update issue.go labels as string of content, not ids Signed-off-by: Fabien Benetou --- routers/api/v1/repo/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index b11e889eb502e..c8ca95fe9d95b 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 labels. Fetch only issues that have any of this labels. Non existent labels are discarded. Use label content as string, not labels id. // type: string // - name: q // in: query From 45f4ef0360dfa49a971211c6d4bca2450ee85d79 Mon Sep 17 00:00:00 2001 From: Utopiah Date: Tue, 23 Sep 2025 20:09:59 +0200 Subject: [PATCH 2/3] result from make generate-swagger --- templates/swagger/v1_json.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 6dbc7e2a0e817..4b121661fc431 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 labels. Fetch only issues that have any of this labels. Non existent labels are discarded. Use label content as string, not labels id.", "name": "labels", "in": "query" }, From 5ed2dbb614777802d028eeebcd49360e5d5a8e05 Mon Sep 17 00:00:00 2001 From: Utopiah Date: Wed, 24 Sep 2025 08:27:01 +0200 Subject: [PATCH 3/3] phrasing on API v1 issues labels to label names --- 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 c8ca95fe9d95b..3a85054e61b49 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. Use label content as string, not labels id. + // 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 4b121661fc431..77a622cb63546 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. Use label content as string, not labels id.", + "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" },