gitea/routers/api/v1/user
Philip Peterson c5e78fc7ad
Do not mutate incoming options to SearchRepositoryByName (#34553)
Similar to #34544, this PR changes the `opts` argument in
`SearchRepositoryByName()` to be passed by value instead of by pointer,
as its mutations do not escape the function scope and are not used
elsewhere. This simplifies reasoning about the function and avoids
unnecessary pointer usage.

This insight emerged during an initial attempt to refactor
`RenderUserSearch()`, which currently intermixes multiple concerns.

---------

Co-authored-by: Philip Peterson <philip-peterson@users.noreply.github.com>
2025-06-02 17:33:25 +00:00
..
action.go fix: return 201 Created for CreateVariable API responses (#34517) 2025-05-26 12:12:49 -04:00
app.go feat: return time of last usage for public keys and access tokens in the api (#34323) 2025-05-01 21:42:17 +03:00
avatar.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
block.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
email.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
follower.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
gpg_key.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
helper.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
hook.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
key.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
repo.go Do not mutate incoming options to SearchRepositoryByName (#34553) 2025-06-02 17:33:25 +00:00
runners.go Actions Runner rest api (#33873) 2025-04-18 15:22:41 +00:00
settings.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
star.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
user.go Do not mutate incoming options to RenderUserSearch and SearchUsers (#34544) 2025-05-27 19:36:02 +00:00
watch.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00