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
Gusted 59fd864fad
Add breaking email restrictions checker in doctor (#19903)
* Add breaking change check in doctor

- This patch introduces a new kind of doctor type, breaking. This file
is made to register checks that helps with detecting when a breaking
change might impact a Gitea instance.
- For now the only check here(and the reason of creating this) is to
check if all users in the database has a valid email address, which
might not be the case after
https://github.com/go-gitea/gitea/pull/17688. This _simply_ uses the
validation function to detect and report these cases.
- Helps admins with detecting #19897.
- I have no clue which priority should be and IsDefault is true, because
when breaking change happen and we have a doctor check for it, we can
say "run `gitea doctor` to help you with this and maybe you find other
errors 😉".

* Makes no sense tbh

* Fix copyright

* Update modules/doctor/breaking.go

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>

Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2 years ago
..
activitypub format with gofumpt (#18184) 2 years ago
analyze Simplify `IsVendor` (#19626) 2 years ago
appstate Use a struct as test options (#19393) 2 years ago
auth Remove legacy `+build:` constraint (#19582) 2 years ago
avatar Remove legacy `+build:` constraint (#19582) 2 years ago
base Update JS dependencies (#19281) 2 years ago
cache Update go-chi/cache to utilize Ping() (#19719) 2 years ago
charset Detect truncated utf-8 characters at the end of content as still representing utf-8 (#19773) 2 years ago
container Move reaction to models/issues/ (#19264) 2 years ago
context Move some repository related code into sub package (#19711) 2 years ago
convert Nuke the incorrect permission report on /api/v1/notifications (#19761) 2 years ago
csv format with gofumpt (#18184) 2 years ago
doctor Add breaking email restrictions checker in doctor (#19903) 2 years ago
emoji format with gofumpt (#18184) 2 years ago
eventsource Improve Stopwatch behavior (#18930) 2 years ago
generate Use base32 for 2FA scratch token (#18384) 2 years ago
git Only log non ErrNotExist errors in git.GetNote (#19884) 2 years ago
gitgraph Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
graceful Remove legacy `+build:` constraint (#19582) 2 years ago
hcaptcha hCaptcha Support (#12594) 4 years ago
highlight format with gofumpt (#18184) 2 years ago
hostmatcher Support `hostname:port` to pass host matcher's check #19543 (#19543) 2 years ago
httpcache Set the LastModified header for raw files (#18356) 2 years ago
httplib refactor httplib (#18338) 2 years ago
indexer Move some repository related code into sub package (#19711) 2 years ago
json Refactor legacy `unknwon/com` package, improve golangci lint (#19284) 2 years ago
lfs Remove legacy `+build:` constraint (#19582) 2 years ago
log Only set CanColorStdout / CanColorStderr to true if the stdout/stderr is a terminal (#19581) 2 years ago
markup Set Setpgid on child git processes (#19865) 2 years ago
metrics format with gofumpt (#18184) 2 years ago
migration Remove legacy `+build:` constraint (#19582) 2 years ago
nosql Remove legacy `unknwon/com` package (#19298) 2 years ago
notification Move access and repo permission to models/perm/access (#19350) 2 years ago
options Remove legacy `+build:` constraint (#19582) 2 years ago
packages Add Helm Chart registry (#19406) 2 years ago
paginator Remove legacy unmaintained packages, refactor to support change default locale (#19308) 2 years ago
password Fixed assert statements. (#16089) 3 years ago
pprof refactor: move from io/ioutil to io and os package (#17109) 3 years ago
private Add Goroutine stack inspector to admin/monitor (#19207) 2 years ago
process Set Setpgid on child git processes (#19865) 2 years ago
proxy Return nil proxy function if proxy not enabled (#16742) 3 years ago
public Remove legacy `+build:` constraint (#19582) 2 years ago
queue Fix 64-bit atomic operations on 32-bit machines (#19531) 2 years ago
recaptcha refactor: move from io/ioutil to io and os package (#17109) 3 years ago
references format with gofumpt (#18184) 2 years ago
repository Move some repository related code into sub package (#19711) 2 years ago
secret Use `CryptoRandomBytes` instead of `CryptoRandomString` (#18439) 2 years ago
session format with gofumpt (#18184) 2 years ago
setting Make AppDataPath absolute against the AppWorkPath if it is not (#19815) 2 years ago
ssh Implement http signatures support for the API (#17565) 2 years ago
storage Add Package Registry (#16510) 2 years ago
structs Respect DefaultUserIsRestricted system default when creating new user (#19310) 2 years ago
svg Remove legacy `+build:` constraint (#19582) 2 years ago
sync Use queue instead of memory queue in webhook send service (#19390) 2 years ago
templates Move access and repo permission to models/perm/access (#19350) 2 years ago
test Move access and repo permission to models/perm/access (#19350) 2 years ago
timeutil Remove legacy unmaintained packages, refactor to support change default locale (#19308) 2 years ago
translation Remove legacy unmaintained packages, refactor to support change default locale (#19308) 2 years ago
typesniffer Fix raw endpoint PDF file headers (#19825) 2 years ago
updatechecker format with gofumpt (#18184) 2 years ago
upload Simplify parameter types (#18006) 3 years ago
uri Prevent NPE if gitea uploader fails to open url (#18080) 3 years ago
user Add gitea-vet (#10948) 4 years ago
util Update go tool dependencies (#19676) 2 years ago
validation use IsLoopback (#19477) 2 years ago
web Ensure responses are context.ResponseWriters (#19843) 2 years ago