gitea

Development moved to Codeberg

Commits at 730b9a5a624651e4821a043fe3f596c92be2df01

  1. 730b9a5a Ensure responses are context.ResponseWriters (#19843) In order for web.Wrap to be able to detect if a response has been written we need to wrap any non-context.ResponseWriters as a such. Otherwise responses will be incorrectly detected as non-written to and handlers can double run. In the case of GZip this handler will change the response to a non-context.RW and this failure to correctly detect response writing causes fallthrough and a NPE. Fix #19839 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  2. 0e516949 Fix inconsistency in doctor output (#19836) * Fix inconsistency in doctor output - Use `logger.Info` instead of `logger.Warn` when no errors were found. * Update modules/doctor/fix16961.go Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Gusted authored at GitHub comitted at
  3. 40e87d03 docs: recommendations to ensure backup consistency and reliability (#19845) * docs: recommendations to ensure backup consistency and reliability * s/stooping/stopping/ * Update docs/content/doc/usage/backup-and-restore.en-us.md Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: delvh <dev.lh@web.de> singuliere authored at GitHub comitted at
  4. 4a295d4a feat: Add support for extra sshd_config parameters via 'Include' file (#19842) Co-authored-by: techknowlogick <techknowlogick@gitea.io> Thomas Andrade authored at GitHub comitted at
  5. e31c6166 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  6. fdc784db docs: update the ROOT documentation and error messages (#19832) * docs: update the ROOT documentation and error messages * The documentation now reflects what happens in the setting/repository.go::newRepository function: filepath.Join(AppWorkPath, RepoRootPath) was missing. * The error message displayed when RepoRootPath is not found now displays the value of RepoRootPath. Given the complexity of the construction of this value, only referring to it in the abstract is likely to be misleading to the Gitea admin trying to interpret the message. Co-authored-by: delvh <dev.lh@web.de> singuliere authored at GitHub comitted at
  7. fe4c846c [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  8. 5976e3e8 Add version hint in the docs when packages are available (#19838) * Add version hint in the docs when packages are available * Change italic to bold delvh authored at GitHub comitted at
  9. 4cac9082 docs(hacking-on-gitea): fix installation instruction for elasticsearch docker (#19829) Yehonatan Ezron authored at GitHub comitted at
  10. e0273bad Fix i18n for Link Account button, re-format tmpl (#19835) wxiaoguang authored at GitHub comitted at
  11. 76681883 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  12. 4698a1ec Adding button to link accounts from user settings (#19792) * Adding button to link accounts from user settings * Only display button to link user accounts when at least one OAuth2 provider is active Mai-Lapyst authored at GitHub comitted at
  13. f2439b7e fix(telegram): fix link bot to release tag (#19830) * fix(telegram): fix link bot to release tag * test(webhook): fix matrixPayload Release * test(webhook): fix TestTelegramPayload Release Yehonatan Ezron authored at GitHub comitted at
  14. 65e0688a Fix raw endpoint PDF file headers (#19825) Lauris BH authored at GitHub comitted at
  15. 410df1fb docs: FAQ: the WorkPath can be set from --work-path (#19822) singuliere authored at GitHub comitted at
  16. cfb4c23a [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  17. b41111bc Fix duplicate paragraph in documentation (#19820) Vladimir Yakovlev authored at GitHub comitted at
  18. 8720f876 Make WIP prefixes case insensitive, e.g. allow `Draft` as a WIP prefix (#19780) The issue was that only the actual title was converted to uppercase, but not the prefix as specified in `WORK_IN_PROGRESS_PREFIXES`. As a result, the following did not work: WORK_IN_PROGRESS_PREFIXES=Draft:,[Draft],WIP:,[WIP] One possible workaround was: WORK_IN_PROGRESS_PREFIXES=DRAFT:,[DRAFT],WIP:,[WIP] Then indeed one could use `Draft` (as well as `DRAFT`) in the title. However, the link `Start the title with DRAFT: to prevent the pull request from being merged accidentally.` showed the suggestion in uppercase; so it is not possible to show it as `Draft`. This PR fixes it, and allows to use `Draft` in `WORK_IN_PROGRESS_PREFIXES`. Fixes #19779. Co-authored-by: zeripath <art27@cantab.net> Ondřej Čertík authored at GitHub comitted at
  19. 9574626a Fix follower display on user page (#19805) silverwind authored at GitHub comitted at
  20. 0692f437 Show source/target branches on PR's list (#19747) Add ability to show source/target branches for Pull Request's list. It can be useful to see which branches are used in each PR right in the list. Co-authored-by: Alexey Korobkov <akorobkov@cian.ru> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv> IT-AlexKor authored at GitHub comitted at
  21. 35d0358c Github style following followers (#19482) Removed tabbed following and followers from user page and added Github style following followers. istiak101 authored at GitHub comitted at
  22. 0cbec3cd alpine 3.16 (#19797) Co-authored-by: 6543 <6543@obermui.de> techknowlogick authored at GitHub comitted at
  23. 93ab9074 Prevent loop if there is an error in GetNotificationCount (#19799) If the context is cancelled `.NotificationUnreadCount` in a template can cause an infinite loop with `ctx.ServerError()` being called, which creates a template that then calls `.NotificationUnreadCount` calling `GetNotificationCount()` with the cancelled context resulting in an error that calls `ctx.ServerError`... and so on... This PR simply stops calling `ctx.ServerError` in the error handler code for `.NotificationUnreadCount` as we have already started rendering and so it is too late to call `ctx.ServerError`. Additionally we skip logging the error if it's a context cancelled error. Fix #19793 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> zeripath authored at GitHub comitted at
  24. b24db66a Add 'make tidy' (#19800) Convenience command to run 'go mod tidy'. The compat flag is set to the minimum supported go version instead of min version minus one which is go's default, which eliminated some checksums in go.sum as a result. silverwind authored at GitHub comitted at
  25. 4266bd92 Update document to use FHS `/usr/local/bin/gitea` instead of `/app/...` for Docker (#19794) * Update document to use FHS `/usr/local/bin/gitea` instead of `/app/...` in Docker * Update docs/content/doc/installation/with-docker.zh-cn.md wxiaoguang authored at GitHub comitted at
  26. 7671a332 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  27. b65ad70f Add the possibility to allow the user to have a favicon which differs from the main logo (#18542) * Changed the filename of the favicon SVG This allows the user to have a favicon which differs from the logo. * Added favicon.svg This is needed to accommodate the changes for allowing the user to have a differing logo and favicon * Adjusted page to accommodate what icon is used as favicon * Added functionality to also generate the favicon.svg via generate-images.js * Adjusted the description for the new favicon compatibility Co-authored-by: silverwind <me@silverwind.io> * Updated generate-images.js to generate favicons from a separate favicons.svg file This belongs to PR #18542. * Added description on how custom favicons can be generated * Replaced space indents with tabs * Synced changes with current state of the file * Synced changes with current state of the file Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv> Jan-Eric Schober authored at GitHub comitted at
  28. d2a91e5e [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  29. fa5dec96 [skip ci] Updated licenses and gitignores GiteaBot authored at GiteaBot comitted at
  30. ffb7ab31 Estimate Action Count in Statistics (#19775) zeripath authored at GitHub comitted at