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
activitypub
analyze
auth Fix various bugs for "install" page () () 2023-03-05 11:59:58 +01:00
avatar
base
cache Add context cache as a request level cache () 2023-02-15 21:37:34 +08:00
charset
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
eventsource
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
highlight Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
hostmatcher
html
httpcache
httplib
indexer Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
issue/template
json
label Add loading yaml label template files () () 2023-03-01 21:57:34 -05:00
lfs
log
markup Add context when rendering labels or emojis () () 2023-03-06 10:32:40 -06:00
mcaptcha
metrics
migration Scoped labels () 2023-02-18 21:17:39 +02:00
mirror
nosql
notification
options Add loading yaml label template files () () 2023-03-01 21:57:34 -05:00
packages
paginator
pprof
private
process
proxy
proxyprotocol
public
queue Properly flush unique queues on startup () () 2023-03-06 22:35:07 +08:00
recaptcha
references
regexplru
repository Add loading yaml label template files () () 2023-03-01 21:57:34 -05:00
secret
session
setting Add InsecureSkipVerify to Minio Client for Storage () () 2023-02-28 00:29:17 +02:00
sitemap
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
translation
turnstile
typesniffer
updatechecker
upload
uri
user
util
validation
watcher
web
webhook