gitea

Development moved to Codeberg

Commits at 72479bff89679136d75638384a77f42a477040c5

  1. 72479bff [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  2. c003491c Allow package linking to private repository (#19348) * Display private repos too. * lint Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> KN4CK3R authored at GitHub comitted at
  3. d9068588 Use "main" as default branch name (#19354) * Use "main" as default branch name * fix test code wxiaoguang authored at GitHub comitted at
  4. 1dfa26e0 Move milestone to models/issues/ (#19278) * Move milestone to models/issues/ * Fix lint * Fix test * Fix lint * Fix lint Lunny Xiao authored at GitHub comitted at
  5. 84ceaa98 Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) Do a refactoring to the CSRF related code, remove most unnecessary functions. Parse the generated token's issue time, regenerate the token every a few minutes. wxiaoguang authored at GitHub comitted at
  6. 3c3d4989 Remove dependent on session auth for api/v1 routers (#19321) * Remove dependent on session auth for api/v1 routers * Remove unnecessary session on API context * remove missed header * fix test * fix missed api/v1 Lunny Xiao authored at GitHub comitted at
  7. 75f8534c API: Search Issues, dont show 500 if filter result in empty list (#19244) * remove error who is none * use setupSessionNoLimit instead of setupSessionWithLimit when no pagination Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 6543 authored at GitHub comitted at
  8. c6531de3 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  9. 783a0218 Never use /api/v1 from Gitea UI Pages (#19318) Reusing `/api/v1` from Gitea UI Pages have pros and cons. Pros: 1) Less code copy Cons: 1) API/v1 have to support shared session with page requests. 2) You need to consider for each other when you want to change something about api/v1 or page. This PR moves all dependencies to API/v1 from UI Pages. Partially replace #16052 Lunny Xiao authored at GitHub comitted at
  10. bb7e0619 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  11. 18430266 Show ssh command directly in template instead of i18n translation (#19335) * add missing space for generate ssh token command Signed-off-by: Junjie Yuan <yuan@junjie.pro> * Do not use i18n for ssh command * Remove unnecessary settings.ssh_token_code * Revert locale_zh-CN.ini Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 原俊杰 authored at GitHub comitted at
  12. 5e242e02 Package registry changes (#19305) * removed debug logs * fixed SELECT * removed unneeded error type * use common SearchVersions method * remove empty container upload versions * return err KN4CK3R authored at GitHub comitted at
  13. 8ddcd37f [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  14. e20952a9 Add `ENABLE_SSH_LOG` to debugging problems (#19316) - Add this option to the debugging problems section. So users that are trying to debug SSH-related problems will get the errors logged from `cmd/serv.go` Gusted authored at GitHub comitted at
  15. 606e33d3 Warn on SSH connection for incorrect configuration (#19317) * Warn on SSH connection for incorrect configuration - When `setting.RepoRootPath` cannot be found(most likely due to incorrect configuration) show "Gitea: Incorrect configuration" on the client-side to help easier with debugging the problem. * Update cmd/serv.go Co-authored-by: delvh <dev.lh@web.de> * Don't leak configuration * Update cmd/serv.go Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Gusted authored at GitHub comitted at
  16. d4f4e95c escape fake link techknowlogick authored at GitHub comitted at
  17. 48dc88ac Allow custom redirect for landing page (#19324) * Allow custom redirect for landing page * Update modules/setting/setting.go Co-authored-by: delvh <dev.lh@web.de> * fix lint * one option Co-authored-by: delvh <dev.lh@web.de> techknowlogick authored at GitHub comitted at
  18. 5ae875a1 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  19. 256204be [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  20. be9ef15f Fix links to packages documentation (#19315) Steven authored at GitHub comitted at
  21. d242511e Remove legacy unmaintained packages, refactor to support change default locale (#19308) Remove two unmaintained vendor packages `i18n` and `paginater`. Changes: * Rewrite `i18n` package with a more clear fallback mechanism. Fix an unstable `Tr` behavior, add more tests. * Refactor the legacy `Paginater` to `Paginator`, test cases are kept unchanged. Trivial enhancement (no breaking for end users): * Use the first locale in LANGS setting option as the default, add a log to prevent from surprising users. wxiaoguang authored at GitHub comitted at
  22. 27c34dd0 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  23. 7b4c3c7b Prevent intermittent NPE in queue tests (#19301) There appears to be an intermittent NPE in queue tests relating to the deferred shutdown/terminate functions. This PR more formally asserts that shutdown and termination occurs before starting and finishing the tests but leaves the defer in place to ensure that if there is an issue shutdown/termination will occur. Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  24. cf5d4a72 Upgrade xorm/builder from v0.3.9 to v0.3.10 (#19296) xorm/builder v0.3.10 add support to EXISTS and NOT EXISTS. Lunny Xiao authored at GitHub comitted at
  25. 43ff92e1 An attempt to sync a non-mirror repo must give 400 (Bad Request) (#19300) * An attempt to sync a non-mirror repo must give 400 (Bad Request) * add missing return statement Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Peter Gardfjäll authored at GitHub comitted at
  26. 4f27c289 Remove legacy `unknwon/com` package (#19298) Follows: #19284 * The `CopyDir` is only used inside test code * Rewrite `ToSnakeCase` with more test cases * The `RedisCacher` only put strings into cache, here we use internal `toStr` to replace the legacy `ToStr` * The `UniqueQueue` can use string as ID directly, no need to call `ToStr` wxiaoguang authored at GitHub comitted at
  27. 4c5cb1e2 Improve package registry docs (#19273) * Improve package registry docs * move new content down * add hint re upload a package * wording, formatting Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Norwin authored at GitHub comitted at
  28. 58c9d129 A pull-mirror repo should be marked as such on creation (#19295) Right now, a pull-mirror repo does not get marked as such until *after* the mirroring completes. In the meantime, it will show up (in API and UI) as a regular repo. Peter Gardfjäll authored at GitHub comitted at
  29. 65f17bfc Refactor legacy `unknwon/com` package, improve golangci lint (#19284) The main purpose is to refactor the legacy `unknwon/com` package. 1. Remove most imports of `unknwon/com`, only `util/legacy.go` imports the legacy `unknwon/com` 2. Use golangci's depguard to process denied packages 3. Fix some incorrect values in golangci.yml, eg, the version should be quoted string `"1.18"` 4. Use correctly escaped content for `go-import` and `go-source` meta tags 5. Refactor `com.Expand` to our stable (and the same fast) `vars.Expand`, our `vars.Expand` can still return partially rendered content even if the template is not good (eg: key mistach). wxiaoguang authored at GitHub comitted at
  30. 5b746605 Skip frontend ROOT_URL check on installation page, remove unnecessary global var (#19291) Skip `checkAppUrl` message on installation page because the ROOT_URL is not determined yet Move global var `supportedDbTypeNames` into `install.Init` as a local var wxiaoguang authored at GitHub comitted at