gitea

Development moved to Codeberg

Commits at 0add627182388ac63fd04b94cdf912fb87fd0326

  1. 0add6271 Fix close issue but time watcher still running (#17643) * Fix close issue but time watcher still running * refactor stopwatch codes * Fix test * Fix test * Fix typo * Fix test Lunny Xiao authored at GitHub comitted at
  2. ab09296d [skip ci] Updated licenses and gitignores GiteaBot authored at GiteaBot comitted at
  3. 0fa41b6d Reset locale on login (#17734) When logging in reset the user's locale to ensure that it matches their preferred locale. Fix #15612 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  4. f8ec43db Extract constant names out for the ReverseProxy and Basic authentication methods (#17735) In order to reduce load on the GC extract out the constant names of the Basic and ReverseProxy methods. As mentioned in https://github.com/go-gitea/gitea/pull/15119#discussion_r730352176 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  5. 931d0cf8 Enable show more files in diff for git <2.31 (#17733) Unfortunately due to a misread on my behalf I missed that git diff only learned --skip-to in version 2.31.0. Thus this functionality was not working on older versions of git. This PR adds a handler that simply allows for us to skip reading the diffs until we find the correct file to skip to. Fix #17731 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  6. 0d69e64e Make a.add-code-comment click handler an event handler (#17737) Instead of directly attaching the add-code-comment on click handler to the a.add-code-comment elements - make this an event handler on the document instead. Fix #17736 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  7. 013fb730 Use `hostmatcher` to replace `matchlist`, improve security (#17605) Use hostmacher to replace matchlist. And we introduce a better DialContext to do a full host/IP check, otherwise the attackers can still bypass the allow/block list by a 302 redirection. wxiaoguang authored at GitHub comitted at
  8. c96be0cd Make SSL cipher suite configurable (#17440) zeripath authored at GitHub comitted at
  9. 9f14fe43 Fix correct usage of teams (#17732) - `.Teams` isn't a field on the User type, thus using the seperate loaded teams. - Add a space between `PathEscape` and argument. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Gusted authored at GitHub comitted at
  10. 52869ef3 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  11. a8fd7655 Better builtin avatar generator (#17707) This PR fixes the builtin avatar generator. 1. The random background color makes some images very dirty. So now we only use white background for avatars. 2. We use left-right mirror avatars to satisfy #14799 3. Fix a small padding error in the algorithm wxiaoguang authored at GitHub comitted at
  12. 38347aa1 Add settings to allow different SMTP envelope from address (#17479) * Add settings to allow different SMTP envelope from address Sometimes it may be advisable to hide or alias the from address on an SMTP mail envelope. This PR adds two new options to the mailer to allow setting of an overriding from address. Fix #17477 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  13. d4e281bc Allow Token API calls be authorized using the reverse-proxy header (#15119) * API calls authorized with HTTP header This mod allows API calls to be authorized with HTTP header when ENABLE_REVERSE_PROXY_AUTHENTICATION is enabled. Without it user authenticated by reverse proxy is able to access gitea UI but not API which is inconsistent. Author-Change-Id: IB#1107572 * Fixed API calls authorized with HTTP header Only reqBasicAuth is modified to allow reverse proxy auth as alternative and reqToken is left untouched. Fixes: dc952c063206d11504085ddea966f121e796a04c Author-Change-Id: IB#1107572 * Reverse proxy API auth separated in docs Related: https://github.com/go-gitea/gitea/pull/15119#discussion_r621322127 Author-Change-Id: IB#1107572 * Reverse proxy API auth separated in docs Related: https://github.com/go-gitea/gitea/pull/15119#discussion_r621322127 Author-Change-Id: IB#1107572 * Reverse proxy API auth separated Related: https://github.com/go-gitea/gitea/pull/15119#discussion_r621322127 Author-Change-Id: IB#1107572 * ReverseProxyAuth removed from swagger ReverseProxyAuth removed from swagger as in upstream's suggestion. Related: https://github.com/go-gitea/gitea/pull/15119#pullrequestreview-692180940 Author-Change-Id: IB#1107572 * ReverseProxyAuth API authorization fixed Related: https://github.com/go-gitea/gitea/pull/15119#issuecomment-868465099 Author-Change-Id: IB#1107572 * ReverseProxyAuth API authorization fixed Related: https://github.com/go-gitea/gitea/pull/15119#issuecomment-868465099 Author-Change-Id: IB#1107572 Paweł Bogusławski authored at GitHub comitted at
  14. fc3d0826 Move attachment into models/repo/ (#17650) * Move attachment into models/repo/ * Fix test * Fix bug Lunny Xiao authored at GitHub comitted at
  15. 7a034731 Use a standalone struct name for Organization (#17632) * Use a standalone struct name for Organization * recover unnecessary change * make the code readable * Fix template failure * Fix template failure * Move HasMemberWithUserID to org * Fix test * Remove unnecessary user type check * Fix test Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Lunny Xiao authored at GitHub comitted at
  16. a09b40de Prevent double sanitize (#16386) * Prevent double sanitize. * Use SanitizeReaderToWriter. At the moment `actualRender` uses `SanitizeReader` to sanitize the output. But `SanitizeReader` gets called in `markup.render` too so the output gets sanitized twice. I moved the `SanitizeReader` call into `RenderRaw` because this method does not use `markup.render`. I would like to remove the `RenderRaw`/`RenderRawString` methods too because they are only called from tests, the fuzzer and the `/markup/raw` api endpoint. This endpoint is not in use so I think we could remove them. If we really in the future need a method to render markdown without PostProcessing we could achieve this with a more flexible `renderer.NeedPostProcess` method. KN4CK3R authored at GitHub comitted at
  17. 381e131f Added comment for changing issue ref (#17672) * Added comment for changing issue ref - Add a comment when someone changes the ref(erence?) of a issue. Gusted authored at GitHub comitted at
  18. 00448ebe Remove unused `user` paramater (#17723) As title Gusted authored at GitHub comitted at
  19. e4b95de3 Prepare and check test env during CI (#17725) This PR should resolve the permission problems during CI, if the uid doesn't match, a more clear message is shown. * CI fails with unknown permission problems #17710 The new drone step dependencies: (root)prepare-test-env -> (gitea)build -> (gitea)test wxiaoguang authored at GitHub comitted at
  20. 9361b65f Fix bug when project board get open issue number (#17703) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Lunny Xiao authored at GitHub comitted at
  21. 96ec656c perf: sent `data-path` once for each file (#17657) - Don't sent it with each line, instead send it at the top-element for each file. - Related: https://github.com/go-gitea/gitea/pull/17618#issuecomment-968192761 2.5K Additions: No-Patch: Unified: 2.14 MB (2.14 MB size) Split: 2.59 MB (2.59 MB size) Patch: Unified: 2.10 MB (2.10 MB size) (-1.8%) Split: 2.55 MB (2.55 MB size) (-1.5%) Gusted authored at GitHub comitted at
  22. a85e75b2 Prevent deadlock in TestPersistableChannelQueue (#17717) * Prevent deadlock in TestPersistableChannelQueue There is a potential deadlock in TestPersistableChannelQueue due to attempting to shutdown the test queue before it is ready. Signed-off-by: Andrew Thornton <art27@cantab.net> * prevent npe Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  23. 72b0882a [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  24. f34151bd Move user/org deletion to services (#17673) KN4CK3R authored at GitHub comitted at
  25. 55be5fe3 Refactor repo-legacy.js, remove messy global variables. Fix errors. (#17646) Refactor repo-legacy.js, remove messy global variables. Fix errors. Fix an error in Sortable Fix a incorrect call assignMenuAttributes from the template wxiaoguang authored at GitHub comitted at
  26. e1d65599 Fix Migrate Description (#17692) Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 99rgosse authored at GitHub comitted at
  27. c3e020ca Add pagination to fork list (#17639) - Resolves #14574 - Adds the necessary code to have pagination working in the forks list of a repo. The code is mostly in par with the stars/watcher implementation. Gusted authored at GitHub comitted at
  28. 257b7171 Fix possible panic (#17694) - The code will get the first and second character `link[{0,1]]`. However in a rare case the `link` could have 1 character and thus the `link[1]` will create a panic. Gusted authored at GitHub comitted at
  29. d1f55840 Simplify code for wrting SHA to name-rev (#17696) Gusted authored at GitHub comitted at
  30. 878c2ce6 Prevent NPE due to missing repo in regression in #17551 (#17697) zeripath authored at GitHub comitted at