gitea/modules/context
Jack Hay c5888eb985
Set commit id when ref used explicitly ()
In the `RepoRefForAPI()` context function `CommitID` is not set if `ref`
is used. It is set correctly for other if/else branches where `Commit`
is set. It doesn't appear that any routes that use `RepoRefForAPI()`
also use `CommitID` but that may be the case in the future.

## Changes
- Sets `ctx.Repo.CommitID` when `ref` is explicitly used for api routes
that use `RepoRefForAPI()`
..
access_log.go Replace `interface{}` with `any` ()
api.go Set commit id when ref used explicitly ()
api_org.go Implement FSFE REUSE for golang files ()
api_test.go Implement FSFE REUSE for golang files ()
base.go Introduce ctx.PathParamRaw to avoid incorrect unescaping ()
captcha.go Replace `interface{}` with `any` ()
context.go Use template context function for avatar rendering ()
context_cookie.go Improve Gitea's web context, decouple "issue template" code into service package ()
context_model.go Improve Gitea's web context, decouple "issue template" code into service package ()
context_request.go Decouple the different contexts from each other ()
context_response.go Start using template context function ()
context_template.go Start using template context function ()
context_test.go Use standard HTTP library to serve files ()
csrf.go Refactor cookie ()
org.go Fix inconsistent user profile layout across tabs ()
package.go Revert package access change from ()
pagination.go Replace `interface{}` with `any` ()
permission.go Add context parameter to some database functions ()
private.go Replace `interface{}` with `any` ()
repo.go Add context parameter to some database functions ()
response.go Refactor web package and context package ()
utils.go Decouple the different contexts from each other ()
xsrf.go Update gitea-vet to check FSFE REUSE ()
xsrf_test.go Update gitea-vet to check FSFE REUSE ()