gitea

Development moved to Codeberg

Commits at dadcaa48369c809c1f22315ddd7db01f33a7ad24

  1. dadcaa48 fix(CI/CD): correct CI variable. (#19886) default value is true for CI variable see https://docs.drone.io/pipeline/environment/reference/ci/ Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Bo-Yi Wu authored at GitHub comitted at
  2. abb7d4ae Fix typo (#19889) Gusted authored at GitHub comitted at
  3. 090d89e0 Fixing wrong paging when filtering on the issue dashboard (#19801) Fixes #19791 by adding an check if filtering after any repo; if yes, simply set the total count for the pageing to the sum of the issue count for each selected repo by utilize `issueCountByRepo`. Fix #19791 Mai-Lapyst authored at GitHub comitted at
  4. 744e4521 Move `/info` outside authorization (#19888) - To use the web's API to get information about a issue/pull on a repository, doesn't require authorization(nor that the repository isn't archived). - Regressed by: #19318 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Andrew Thornton <art27@cantab.net> Gusted authored at GitHub comitted at
  5. 12c742f8 Fix order by parameter (#19849) Upgrade builder to v0.3.11 Upgrade xorm to v1.3.1 and fixed some hidden bugs. Replace #19821 Replace #19834 Included #19850 Co-authored-by: zeripath <art27@cantab.net> Lunny Xiao authored at GitHub comitted at
  6. 449ea600 Exclude Archived repos from Dashboard Milestones (#19882) Milestones in archived repos should not be displayed on `/milestones`. Therefore we should exclude these repositories from milestones page. Fix #18257 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  7. d0a2c1e8 use exact search instead of fuzzy search for branch filter dropdown (#19885) wxiaoguang authored at GitHub comitted at
  8. df9612bb Add API to serve blob or LFS file content (#19689) * Add LFS API * Update routers/api/v1/repo/file.go Co-authored-by: Gusted <williamzijl7@hotmail.com> * Apply suggestions * Apply suggestions * Update routers/api/v1/repo/file.go Co-authored-by: Gusted <williamzijl7@hotmail.com> * Report errors * ADd test * Use own repo for test * Use different repo name * Improve handling * Slight restructures 1. Avoid reading the blob data multiple times 2. Ensure that caching is only checked when about to serve the blob/lfs 3. Avoid nesting by returning early 4. Make log message a bit more clear 5. Ensure that the dataRc is closed by defer when passed to ServeData Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Gusted <williamzijl7@hotmail.com> Co-authored-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> qwerty287 authored at GitHub comitted at
  9. 14d96ff7 Disable unnecessary mirroring elements (#18527) * Disable unnecessary mirroring elements This mod fixes disabling unnecessary mirroring elements. Related: https://github.com/go-gitea/gitea/pull/16957 Related: https://github.com/go-gitea/gitea/pull/13084 Author-Change-Id: IB#1105104 * Checkbox rendering disabled instead of hiding it Fixes: 02b45051503d4330da9757ff084c9cc5e6e60d84 Related: https://github.com/go-gitea/gitea/pull/18527#pullrequestreview-878061913 Author-Change-Id: IB#1105104 * Update custom/conf/app.example.ini Co-authored-by: silverwind <me@silverwind.io> * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-authored-by: silverwind <me@silverwind.io> * Mirror filter removed only when whole mirroring feature is disabled Fixes: 02b45051503d4330da9757ff084c9cc5e6e60d84 Related: https://github.com/go-gitea/gitea/pull/18527#discussion_r883268890 Author-Change-Id: IB#1105104 Co-authored-by: silverwind <me@silverwind.io> Paweł Bogusławski authored at GitHub comitted at
  10. 867b34d5 [skip ci] Updated translations via Crowdin wxiaoguang authored at wxiaoguang comitted at
  11. 694441fe Remove customized (unmaintained) dropdown, improve aria a11y for dropdown (#19861) * Remove customized (unmaintained) dropdown, improve aria a11y for dropdown * fix repo permission * use action instead of onChange * re-order the CSS selector * fix dropdown behavior for repo permissions, make elements inside menu item non-focusable * use menu/menuitem instead of combobox/option. use tooltip(data-content) for aria-label, prevent from repeated attaching * click menu item when pressing Enter * code format * fix repo permission * repo setting: prevent from misleading users when error occurs * fine tune the repo collaboration access mode dropdown (in case the access mode is undefined in the template) Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> wxiaoguang authored at GitHub comitted at
  12. 1d04e864 Set Setpgid on child git processes (#19865) When Gitea is running as PID 1 git will occassionally orphan child processes leading to (defunct) processes. This PR simply sets Setpgid to true on these child processes meaning that these defunct processes will also be correctly reaped. Fix #19077 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  13. 085924b1 Allow postgres integration tests to run over unix pipe (#19875) zeripath authored at GitHub comitted at
  14. e09fb30d improvement some release related code (#19867) Lunny Xiao authored at GitHub comitted at
  15. 0c759fd4 feat: add DEFAULT_MERGE_STYLE to `repository.pull-request` section for repo init (#19751) ttys3 authored at GitHub comitted at
  16. 808a7803 [skip ci] Updated translations via Crowdin zeripath authored at zeripath comitted at
  17. e32ab429 Prevent NPE on update mirror settings (#19864) A `repo_model.Mirror` repository field (`.Repo`) will not automatically be set, but is used without checking in mirror_pull.go:UpdateAddress. This will cause an NPE. This PR changes UpdateAddress to use the helper function GetRepository() helping prevent future NPEs but also changes modules/context/repo.go to ensure that the Mirror.Repo is set. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> zeripath authored at GitHub comitted at
  18. 6171ea7d update documents (#19868) wxiaoguang authored at GitHub comitted at
  19. 8aaba65e Only return valid stopwatches (#19863) Looking through the logs of try.gitea.io I am seeing a number of reports of being unable to APIformat stopwatches because the issueID is 0. These are invalid StopWatches and they represent a db inconsistency. This PR simply stops sending them to the eventsource. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> zeripath authored at GitHub comitted at
  20. 5283d1ea [skip ci] Updated translations via Crowdin zeripath authored at zeripath comitted at
  21. bbffddaa Add title attribute to dependencies in sidebar (#19807) * Add title attribute to dependencies in sidebar Add the full title as the title attribute on dependencies in the sidebar. Fix #19806 Signed-off-by: Andrew Thornton <art27@cantab.net> * as per silverwind Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> zeripath authored at GitHub comitted at
  22. d002e3da Fix spelling mistake in ProcReceive (#19853) There was a spelling mistake in the ProcReceive handler. This PR fixes this. zeripath authored at GitHub comitted at
  23. 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
  24. 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
  25. 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
  26. 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
  27. e31c6166 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  28. 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
  29. fe4c846c [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  30. 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