1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-25 17:56:21 +00:00
forgejo/modules
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()`
2023-08-12 07:33:12 +00:00
..
actions Fix the bug when getting files changed for pull_request_target event () 2023-08-05 14:26:06 +08:00
activitypub Update tool dependencies, lock govulncheck and actionlint () 2023-07-09 11:58:06 +00:00
analyze Rename code_langauge.go to code_language.go () 2023-08-07 15:00:53 -04:00
assetfs Skip unuseful error message in dev mode when watching local filesystem () 2023-07-17 09:47:55 +00:00
auth Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
avatar Remove nfnt/resize and oliamb/cutter () 2023-07-20 19:52:42 +08:00
base Replace interface{} with any () 2023-07-04 18:36:08 +00:00
cache improve unit test for caching () 2023-07-27 22:24:40 +02:00
charset Replace interface{} with any () 2023-07-04 18:36:08 +00:00
container Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
context Set commit id when ref used explicitly () 2023-08-12 07:33:12 +00:00
csv Refactor locale number () 2023-04-17 11:37:23 +08:00
doctor Upgrade go dependencies () 2023-07-14 11:00:31 +08:00
emoji Update emoji set to Unicode 15 () 2023-06-29 16:29:48 +00:00
eventsource Less naked returns () 2023-07-07 05:31:56 +00:00
generate Bump github.com/golang-jwt/jwt to v5 () 2023-07-19 09:57:10 +00:00
git Make git batch operations use parent context timeout instead of default timeout () 2023-08-04 14:50:41 +02:00
gitgraph Add context cache as a request level cache () 2023-02-15 21:37:34 +08:00
graceful Allow the use of alternative net.Listener implementations by downstreams () 2023-07-24 07:18:17 +00:00
hcaptcha Consume hcaptcha and pwn deps () 2023-01-29 09:49:51 -06:00
highlight Upgrade go dependencies () 2023-07-14 11:00:31 +08:00
hostmatcher Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
html Refactor backend SVG package and add tests () 2023-08-05 04:34:59 +00:00
httpcache Less naked returns () 2023-07-07 05:31:56 +00:00
httplib Less naked returns () 2023-07-07 05:31:56 +00:00
indexer Refactor and enhance issue indexer to support both searching, filtering and paging () 2023-07-31 06:28:53 +00:00
issue/template Replace interface{} with any () 2023-07-04 18:36:08 +00:00
json Replace interface{} with any () 2023-07-04 18:36:08 +00:00
label Make label templates have consistent behavior and priority () 2023-04-10 16:44:02 +08:00
lfs Rewrite logger system () 2023-05-21 22:35:11 +00:00
log Use stderr as fallback if the log file can't be opened () 2023-07-24 04:57:21 +00:00
markup Make user-content-* consistent with github () 2023-08-09 09:30:31 +00:00
mcaptcha Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
metrics Use a separate admin page to show global stats, remove actions stat () 2023-06-03 22:03:41 +08:00
migration Replace interface{} with any () 2023-07-04 18:36:08 +00:00
mirror Improve queue and logger context () 2023-05-26 07:31:55 +00:00
nosql Update tool dependencies, lock govulncheck and actionlint () 2023-07-09 11:58:06 +00:00
notification Refactor and enhance issue indexer to support both searching, filtering and paging () 2023-07-31 06:28:53 +00:00
options Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
packages Prevent newline errors with Debian packages () 2023-08-05 10:59:52 +02:00
paginator Use more specific test methods () 2023-04-22 17:56:27 -04:00
pprof Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
private Replace interface{} with any () 2023-07-04 18:36:08 +00:00
process Less naked returns () 2023-07-07 05:31:56 +00:00
proxy Use proxy for pull mirror () 2023-02-11 08:39:50 +08:00
proxyprotocol Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
public Serve pre-defined files in "public", add "security.txt", add CORS header for ".well-known" () 2023-07-21 12:14:20 +00:00
queue Calculate MAX_WORKERS default value by CPU number () 2023-07-27 16:40:35 +08:00
recaptcha Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
references Use correct captured group range when parsing cross-reference () 2023-01-31 10:08:05 +01:00
regexplru Upgrade go dependencies () 2023-07-14 11:00:31 +08:00
repository Refactor and enhance issue indexer to support both searching, filtering and paging () 2023-07-31 06:28:53 +00:00
secret Improve decryption failure message () 2023-05-07 19:29:43 +08:00
session Replace interface{} with any () 2023-07-04 18:36:08 +00:00
setting Pre-register OAuth2 applications for git credential helpers () 2023-08-09 14:24:07 +02:00
sitemap Fix sitemap () 2022-12-30 23:31:00 +08:00
ssh Fix admin queue page title () 2023-08-10 02:05:37 +00:00
storage minio: add missing region on client initialization () 2023-08-10 11:21:09 +00:00
structs Doc update swagger doc for POST /orgs/{org}/teams () 2023-07-26 10:22:56 +00:00
svg Refactor backend SVG package and add tests () 2023-08-05 04:34:59 +00:00
sync Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
system Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
templates Use template context function for avatar rendering () 2023-08-10 11:19:39 +08:00
test Start using template context function () 2023-08-08 01:22:47 +00:00
testlogger Replace interface{} with any () 2023-07-04 18:36:08 +00:00
timeutil Fix incorrect webhook time and use relative-time to display it () 2023-05-03 19:53:43 -04:00
translation Replace interface{} with any () 2023-07-04 18:36:08 +00:00
turnstile Add new captcha: cloudflare turnstile () 2023-02-05 15:29:03 +08:00
typesniffer Do not recognize text files as audio () 2023-03-07 22:40:41 -05:00
updatechecker Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
upload Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
uri Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
user Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
util Less naked returns () 2023-07-07 05:31:56 +00:00
validation Replace interface{} with any () 2023-07-04 18:36:08 +00:00
web Fix incorrect router logger () 2023-07-25 22:21:09 +00:00
webhook New webhook trigger for receiving Pull Request review requests () 2023-05-24 22:06:27 -04:00