feat(api): add tag_filter query parameter to release list API (#38681)

Adds a `tag_filter` query parameter to `GET /repos/{owner}/{repo}/releases` that filters releases by tag name, with `*` as a wildcard (e.g. `v1*`, `*beta`, `*rc*`). Matching is
case-insensitive and done in the database query. Literal `%`, `_` and `\` in the filter are escaped.

Fixes: https://github.com/go-gitea/gitea/issues/38513
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
Mitrahsoft
2026-07-31 10:40:17 +00:00
committed by GitHub
co-authored by wxiaoguang silverwind
parent a30d865b78
commit bcf45803af
5 changed files with 59 additions and 42 deletions
+6
View File
@@ -16196,6 +16196,12 @@
"name": "pre-release",
"in": "query"
},
{
"type": "string",
"description": "filter releases by tag. supports \"*\" as a wildcard (for example: v1*, *beta, *rc*).",
"name": "tag_filter",
"in": "query"
},
{
"type": "integer",
"description": "page number of results to return (1-based)",
+8
View File
@@ -28109,6 +28109,14 @@
"type": "boolean"
}
},
{
"description": "filter releases by tag. supports \"*\" as a wildcard (for example: v1*, *beta, *rc*).",
"in": "query",
"name": "tag_filter",
"schema": {
"type": "string"
}
},
{
"description": "page number of results to return (1-based)",
"in": "query",