0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-15 02:28:27 -05:00
forgejo/modules
Giteabot dcf1717793
Add context when rendering labels or emojis () ()
Backport 

This branch continues the work of  and attempts to rid the
codebase of any `nil` contexts when using a `RenderContext`.

Anything that renders markdown or does post processing may call
`markup.sha1CurrentPatternProcessor()`, and this runs
`git.OpenRepository()`, which needs a context. It will panic if the
context is `nil`. This branch attempts to _always_ include a context
when creating a `RenderContext` to prevent future crashes.

Co-authored-by: Jonathan Tran <jon@allspice.io>
2023-03-06 10:32:40 -06:00
..
actions Fix actions workflow branches match bug () 2023-02-02 20:40:08 +08:00
activitypub Add Chef package registry () 2023-02-06 09:49:21 +08:00
analyze
auth Fix various bugs for "install" page () () 2023-03-05 11:59:58 +01:00
avatar Unify hashing for avatar () 2023-01-02 22:46:39 +01:00
base
cache Add context cache as a request level cache () 2023-02-15 21:37:34 +08:00
charset Fix isAllowed of escapeStreamer () 2023-02-09 20:51:36 +08:00
container
context Render access log template as text instead of HTML () 2023-02-21 10:22:13 +08:00
csv Add context when rendering labels or emojis () () 2023-03-06 10:32:40 -06:00
doctor Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
emoji Fix unstable emoji sort () 2023-01-05 13:58:51 +02:00
eventsource Move convert package to services () 2022-12-29 10:57:15 +08:00
generate
git Fix GetFilesChangedBetween if the file name may be escaped () () 2023-03-04 00:38:31 -05:00
gitgraph Add context cache as a request level cache () 2023-02-15 21:37:34 +08:00
graceful
hcaptcha Consume hcaptcha and pwn deps () 2023-01-29 09:49:51 -06:00
highlight Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
hostmatcher
html
httpcache Add some comments for recent code () 2023-02-02 11:39:38 -06:00
httplib
indexer Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
issue/template Allow issue templates to not render title () 2023-01-26 22:45:49 -06:00
json Update gitea-vet to check FSFE REUSE () 2022-12-02 22:14:57 +08:00
label Add loading yaml label template files () () 2023-03-01 21:57:34 -05:00
lfs escape filename when assemble URL () 2023-02-12 09:31:14 +08:00
log Improve trace logging for pulls and processes () 2023-02-03 18:11:48 -05:00
markup Add context when rendering labels or emojis () () 2023-03-06 10:32:40 -06:00
mcaptcha
metrics include build info in Prometheus metrics () 2023-02-08 19:54:01 +02:00
migration Scoped labels () 2023-02-18 21:17:39 +02:00
mirror
nosql
notification Implement actions () 2023-01-31 09:45:19 +08:00
options Add loading yaml label template files () () 2023-03-01 21:57:34 -05:00
packages Use import of OCI structs () 2023-02-06 10:07:09 +00:00
paginator Update gitea-vet to check FSFE REUSE () 2022-12-02 22:14:57 +08:00
pprof
private Implement actions () 2023-01-31 09:45:19 +08:00
process Improve trace logging for pulls and processes () 2023-02-03 18:11:48 -05:00
proxy Use proxy for pull mirror () 2023-02-11 08:39:50 +08:00
proxyprotocol
public
queue Properly flush unique queues on startup () () 2023-03-06 22:35:07 +08:00
recaptcha
references Use correct captured group range when parsing cross-reference () 2023-01-31 10:08:05 +01:00
regexplru
repository Add loading yaml label template files () () 2023-03-01 21:57:34 -05:00
secret
session Update gitea-vet to check FSFE REUSE () 2022-12-02 22:14:57 +08:00
setting Add InsecureSkipVerify to Minio Client for Storage () () 2023-02-28 00:29:17 +02:00
sitemap Fix sitemap () 2022-12-30 23:31:00 +08:00
ssh
storage Add InsecureSkipVerify to Minio Client for Storage () () 2023-02-28 00:29:17 +02:00
structs Add scopes to API to create token and display them () 2023-02-20 15:28:44 -06:00
svg
sync
system
templates Add context when rendering labels or emojis () () 2023-03-06 10:32:40 -06:00
test Rename repo.GetOwner to repo.LoadOwner () 2023-02-18 20:11:03 +08:00
timeutil Check for zero time instant in TimeStamp.IsZero() () 2022-12-20 10:04:55 +08:00
translation
turnstile Add new captcha: cloudflare turnstile () 2023-02-05 15:29:03 +08:00
typesniffer
updatechecker
upload
uri
user
util Move IsReadmeFile* from modules/markup/ to modules/util () 2023-02-13 15:01:09 -05:00
validation Map OIDC groups to Orgs/Teams () 2023-02-08 14:44:42 +08:00
watcher
web Map OIDC groups to Orgs/Teams () 2023-02-08 14:44:42 +08:00
webhook Restructure webhook module () 2023-01-01 23:23:15 +08:00