mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-19 21:05:10 +01:00
Principles: let the caller decide what it needs, but not let the framework (middleware) guess what it should do. Then a lot of hacky code can be removed. And some FIXMEs can be fixed. This PR introduces a new kind of middleware: "PreMiddleware", it will be executed before all other middlewares on the same routing level, then a route can declare its options for other middlewares. By the way, allow the workflow badge to be accessed by Basic or OAuth2 auth. Fixes: https://github.com/go-gitea/gitea/pull/36830 Fixes: https://github.com/go-gitea/gitea/issues/36859 |
||
|---|---|---|
| .. | ||
| tests/repos | ||
| actions.go | ||
| default_branch.go | ||
| hook_post_receive_test.go | ||
| hook_post_receive.go | ||
| hook_pre_receive.go | ||
| hook_proc_receive.go | ||
| hook_verification_test.go | ||
| hook_verification.go | ||
| internal_repo.go | ||
| internal.go | ||
| key.go | ||
| mail.go | ||
| main_test.go | ||
| manager_process.go | ||
| manager_unix.go | ||
| manager_windows.go | ||
| manager.go | ||
| restore_repo.go | ||
| serv.go | ||
| ssh_log.go | ||