You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/context
Jack Hay c5888eb985
Set commit id when ref used explicitly (#26447)
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()`
11 months ago
..
access_log.go Replace `interface{}` with `any` (#25686) 1 year ago
api.go Set commit id when ref used explicitly (#26447) 11 months ago
api_org.go Implement FSFE REUSE for golang files (#21840) 2 years ago
api_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
base.go Introduce ctx.PathParamRaw to avoid incorrect unescaping (#26392) 12 months ago
captcha.go Replace `interface{}` with `any` (#25686) 1 year ago
context.go Use template context function for avatar rendering (#26385) 12 months ago
context_cookie.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 1 year ago
context_model.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 1 year ago
context_request.go Decouple the different contexts from each other (#24786) 1 year ago
context_response.go Start using template context function (#26254) 12 months ago
context_template.go Start using template context function (#26254) 12 months ago
context_test.go Use standard HTTP library to serve files (#24693) 1 year ago
csrf.go Refactor cookie (#24107) 1 year ago
org.go Fix inconsistent user profile layout across tabs (#25625) 1 year ago
package.go Revert package access change from #23879 (#25707) 1 year ago
pagination.go Replace `interface{}` with `any` (#25686) 1 year ago
permission.go Add context parameter to some database functions (#26055) 1 year ago
private.go Replace `interface{}` with `any` (#25686) 1 year ago
repo.go Add context parameter to some database functions (#26055) 1 year ago
response.go Refactor web package and context package (#25298) 1 year ago
utils.go Decouple the different contexts from each other (#24786) 1 year ago
xsrf.go Update gitea-vet to check FSFE REUSE (#22004) 2 years ago
xsrf_test.go Update gitea-vet to check FSFE REUSE (#22004) 2 years ago