gitea

Development moved to Codeberg

Commits at 4396d0e7c9eb4e05db9ce55b72c6a55cc68efbfe

  1. 4396d0e7 Note where frontend files are located in docs (#19379) Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> ktprograms authored at GitHub comitted at
  2. f029b9ae Document 409 error returned by repos/migrate api (#19376) * Document 409 error returned by repos/migrate api * Generate swagger spec Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Chongyi Zheng authored at GitHub comitted at
  3. 0d3d9675 Fix middleware function's placements for some `/user/...` (#19377) - Add reqSignIn to `/user/task/{task}` as it specific to a logged in user currently not-logged in user could cause a NPE. - Move `/user/stopwatch` & `/user/search` middleware before the actual function is called, because functions are executed in order and currently hadn't any effect and could as well cause a NPE due to that. - Remove `/user/active` reqSignIn middleware, because when you want to active a account you're not "signed in" so it doesn't make sense to add that middleware. Gusted authored at GitHub comitted at
  4. d139c239 Fix panic in teams API when requesting members (#19360) delvh authored at GitHub comitted at
  5. ee769f74 Add logic to switch between source/rendered on Markdown (#19356) Adds a button to switch between the source blob and the rendered markdown. Gusted authored at GitHub comitted at
  6. 6d51b9f6 Fixed registry host value. (#19363) KN4CK3R authored at GitHub comitted at
  7. 72479bff [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  8. 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
  9. d9068588 Use "main" as default branch name (#19354) * Use "main" as default branch name * fix test code wxiaoguang authored at GitHub comitted at
  10. 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
  11. 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
  12. 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
  13. 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
  14. c6531de3 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  15. 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
  16. bb7e0619 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  17. 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
  18. 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
  19. 8ddcd37f [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  20. 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
  21. 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
  22. d4f4e95c escape fake link techknowlogick authored at GitHub comitted at
  23. 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
  24. 5ae875a1 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  25. 256204be [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  26. be9ef15f Fix links to packages documentation (#19315) Steven authored at GitHub comitted at
  27. 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
  28. 27c34dd0 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  29. 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
  30. 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