gitea/modules
Lunny Xiao dd30d9d5c0
Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods ()
The function `GetByBean` has an obvious defect that when the fields are
empty values, it will be ignored. Then users will get a wrong result
which is possibly used to make a security problem.

To avoid the possibility, this PR removed function `GetByBean` and all
references.
And some new generic functions have been introduced to be used.

The recommand usage like below.

```go
// if query an object according id
obj, err := db.GetByID[Object](ctx, id)
// query with other conditions
obj, err := db.Get[Object](ctx, builder.Eq{"a": a, "b":b})
```
..
actions chore(actions): support cron schedule task ()
activitypub Upgrade to golangci-lint@v1.55.0 ()
analyze Rename code_langauge.go to code_language.go ()
assetfs Use `Set[Type]` instead of `map[Type]bool/struct{}`. ()
auth Next round of `db.DefaultContext` refactor ()
avatar Remove nfnt/resize and oliamb/cutter ()
base Replace `interface{}` with `any` ()
cache improve unit test for caching ()
charset Replace `interface{}` with `any` ()
container Implement FSFE REUSE for golang files ()
context Add guide page to actions when there's no workflows ()
contexttest Replace assert.Fail with assert.FailNow ()
csv Refactor locale number ()
doctor Fix delete-orphaned-repos ()
emoji Update emoji set to Unicode 15 ()
eventsource Final round of `db.DefaultContext` refactor ()
generate Handle base64 decoding correctly to avoid panic ()
git Convert git commit summary to valid UTF8. ()
gitgraph More `db.DefaultContext` refactor ()
graceful Refactor graceful manager to use shared code ()
hcaptcha Consume hcaptcha and pwn deps ()
highlight Upgrade go dependencies ()
hostmatcher Support allowed hosts for webhook to work with proxy ()
html Refactor backend SVG package and add tests ()
httpcache Less naked returns ()
httplib Less naked returns ()
indexer Include public repos in doer's dashboard for issue search ()
issue/template Replace `interface{}` with `any` ()
json Replace `interface{}` with `any` ()
label Make label templates have consistent behavior and priority ()
lfs Upgrade to golangci-lint@v1.55.0 ()
log Reduce some allocations in type conversion ()
markup Use restricted sanitizer for repository description ()
mcaptcha Implement FSFE REUSE for golang files ()
metrics Reduce usage of `db.DefaultContext` ()
migration Replace `interface{}` with `any` ()
nosql Update tool dependencies, lock govulncheck and actionlint ()
options Use a general approach to access custom/static/builtin assets ()
packages Close all hashed buffers ()
paginator Use more specific test methods ()
pprof Implement FSFE REUSE for golang files ()
private Replace `interface{}` with `any` ()
process Replace assert.Fail with assert.FailNow ()
proxy Use proxy for pull mirror ()
proxyprotocol Implement FSFE REUSE for golang files ()
public Serve pre-defined files in "public", add "security.txt", add CORS header for ".well-known" ()
queue Increase queue length ()
recaptcha Implement FSFE REUSE for golang files ()
references Replace 'userxx' with 'orgxx' in all test files when the user type is org ()
regexplru Upgrade go dependencies ()
repository Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods ()
secret Improve decryption failure message ()
session Next round of `db.DefaultContext` refactor ()
setting Use `filepath` instead of `path` to create SQLite3 database file ()
sitemap Fix sitemap ()
ssh Remove SSH workaround ()
storage Fix object storage path handling ()
structs Fix package webhook ()
svg Refactor backend SVG package and add tests ()
sync Implement FSFE REUSE for golang files ()
system Replace more db.DefaultContext ()
templates Render PyPi long description as document ()
test Move web/api context related testing function into a separate package ()
testlogger Replace `interface{}` with `any` ()
timeutil Fix incorrect webhook time and use relative-time to display it ()
translation Replace `interface{}` with `any` ()
turnstile Add new captcha: cloudflare turnstile ()
typesniffer Detect ogg mime-type as audio or video ()
updatechecker Replace more db.DefaultContext ()
upload Implement FSFE REUSE for golang files ()
uri Implement FSFE REUSE for golang files ()
user Implement FSFE REUSE for golang files ()
util Upgrade to golangci-lint@v1.55.0 ()
validation Check blocklist for emails when adding them to account ()
web Make CORS work for oauth2 handlers ()
webhook New webhook trigger for receiving Pull Request review requests ()