gitea/routers/private
Giteabot 9b698362a3
Redefine the meaning of column is_active to make Actions Registration Token generation easier () ()
Backport  by @lunny

Partially Fix 

This PR redefined the meaning of column `is_active` in table
`action_runner_token`.
Before this PR, `is_active` means whether it has been used by any
runner. If it's true, other runner cannot use it to register again.

In this PR, `is_active` means whether it's validated to be used to
register runner. And if it's true, then it can be used to register
runners until it become false. When creating a new `is_active` register
token, any previous tokens will be set `is_active` to false.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
..
tests/repos Fix verifyCommits error when push a new branch ()
actions.go Redefine the meaning of column is_active to make Actions Registration Token generation easier () ()
default_branch.go Reduce usage of `db.DefaultContext` ()
hook_post_receive.go Use the type RefName for all the needed places and fix pull mirror sync bugs ()
hook_pre_receive.go Add context parameter to some database functions ()
hook_proc_receive.go Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" ()
hook_verification.go Fix verifyCommits error when push a new branch ()
hook_verification_test.go Fix verifyCommits error when push a new branch ()
internal.go Add gitea manager reload-templates command ()
internal_repo.go Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" ()
key.go Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" ()
mail.go Prevent multiple `To` recipients ()
main_test.go Fix verifyCommits error when push a new branch ()
manager.go Fix logger refactoring regression: manager logging add ()
manager_process.go Replace `interface{}` with `any` ()
manager_unix.go Implement FSFE REUSE for golang files ()
manager_windows.go Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" ()
restore_repo.go Fix regression: access log template, gitea manager cli command ()
serv.go Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" ()
ssh_log.go Refactor the setting to make unit test easier ()