From e7d103319e037b8c48dc44d8ad610877b9eea84f Mon Sep 17 00:00:00 2001 From: forgejo-backport-action Date: Tue, 11 Mar 2025 14:03:19 +0000 Subject: [PATCH] [v10.0/forgejo] fix(api): typo in API description for `repoSearch` (#7202) **Backport:** https://codeberg.org/forgejo/forgejo/pulls/7199 Corrected miss-spelled description for the `is_private` field on `repoSearch`, in which 'public' was spelled as 'pubic'. Co-authored-by: luxzi Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7202 Reviewed-by: Gusted Co-authored-by: forgejo-backport-action Co-committed-by: forgejo-backport-action --- routers/api/v1/repo/repo.go | 2 +- templates/swagger/v1_json.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index 04c6fde453..457f179f39 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.go @@ -85,7 +85,7 @@ func Search(ctx *context.APIContext) { // type: boolean // - name: is_private // in: query - // description: show only pubic, private or all repositories (defaults to all) + // description: show only public, private or all repositories (defaults to all) // type: boolean // - name: template // in: query diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 1feeebba98..36781b1419 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -4455,7 +4455,7 @@ }, { "type": "boolean", - "description": "show only pubic, private or all repositories (defaults to all)", + "description": "show only public, private or all repositories (defaults to all)", "name": "is_private", "in": "query" },