gitea

Development moved to Codeberg

Commits at 2dae5b715c8c7eb6510af9915ca866e6d02e6d80

  1. 2dae5b71 Fix keys test (#17776) techknowlogick authored at GitHub comitted at
  2. 188fd2dd Add `PULL_LIMIT` and `PUSH_LIMIT` to cron.update_mirror task (#17568) zeripath authored at GitHub comitted at
  3. 9450410f Improve ellipsis buttons (#17773) * Improve ellipsis buttons - Remove icon font usage - Add aria-expanded attribute * rename function to match Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> silverwind authored at GitHub comitted at
  4. e5959864 Harden authorized keys a bit more (#17772) sshd(8) list restrict as a future-proof way to restrict feature enabled in ssh. It is supported since OpenSSH 7.2, out since 2016-02-29. OpenSSH will ignore unknown options (see sshauthopt_parse in auth-options.c), so it should be safe to add the option and no-user-rc. Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> mscherer authored at GitHub comitted at
  5. a1f5c7bf Add copy Commit ID button in commits list (#17759) * fix: implement commit id copy to clipboard * fix: remove abundant attributes / consider edge-case * fix: locale_en fixed * fix: use ui button * tune copy button * fix: button size * Fix merge Co-authored-by: Ysmr-Ry <ryo.yossy@live.jp> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> velengel authored at GitHub comitted at
  6. b2daa7e2 Add documentation for backend development (#17512) * Add documentation for backend development * Update backend guidline * More sections * Add modules/setting and modules/git * Uniform gitea as Gitea * some improvements * some improvements Lunny Xiao authored at GitHub comitted at
  7. c79cc2d3 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  8. 1dbc58f7 More pleasantly handle broken or missing git repositories (#17747) * More pleasantly handle broken or missing git repositories In #17742 it was noted that there a completely invalid git repository underlying a repo on gitea.com. This happened due to a problem during a migration however, it is not beyond the realms of possibility that a corruption could occur to another user. This PR adds a check to RepoAssignment that will detect if a repository loading has failed due to an absent git repository. It will then show a page suggesting the user contacts the administrator or deletes the repository. Fix #17742 Signed-off-by: Andrew Thornton <art27@cantab.net> * Update options/locale/locale_en-US.ini Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io> zeripath authored at GitHub comitted at
  9. baed01f2 Remove unnecessary attributes of User struct (#17745) * Remove unnecessary functions of User struct * Move more database methods out of user struct * Move more database methods out of user struct * Fix template failure * Fix bug * Remove finished FIXME * remove unnecessary code Lunny Xiao authored at GitHub comitted at
  10. c2ab1988 Support pagination of organizations on user settings pages (#16083) * Add pagination for user setting orgs * Use FindOrgs instead of GetOrgsByUserID * Remove unnecessary functions and fix test * remove unnecessary code Lunny Xiao authored at GitHub comitted at
  11. ed23a6c3 Make `bind` error more readable (#17750) - Add the related fieldNames into the response JSON, such that the developer can figure out what's going on. - Related: https://github.com/go-gitea/gitea/issues/17126#issuecomment-937848295 Gusted authored at GitHub comitted at
  12. a3efd048 Improvements to content history (#17746) * Improvements to content history * initialize content history when making an edit to an old item created before the introduction of content history * show edit history for code comments on pull request files tab * Fix a flaw in keepLimitedContentHistory Fix a flaw in keepLimitedContentHistory, the first and the last should never be deleted * Remove obsolete eager initialization of content history Jimmy Praet authored at GitHub comitted at
  13. 49b2cb99 Fix project board bug and improve documents (#17753) * the project board was broken, this PR fixes it, and refactor the code, and we prevent the uncategorized column from being dragged. * improve the frontend guideline (as discussed in https://github.com/go-gitea/gitea/pull/17699) wxiaoguang authored at GitHub comitted at
  14. 8244cfb8 Fix navbar on project view (#17749) - Shows that the project nav item is active when you're viewing a project. Gusted authored at GitHub comitted at
  15. 58ff86ed Exclude from watching tests (#17744) Gusted authored at GitHub comitted at
  16. 499b05da Add user settings key/value DB table (#16834) techknowlogick authored at GitHub comitted at
  17. a159c317 Add new JS linter rules (#17699) * Add new JS linter rules Adds a few useful rules from eslint-plugin-github. Notable changes: - Forbid dataset usage, its camel-casing behaviour makes it hard to grep for attributes. - Forbid .then() and .catch(), we should generally prefer await for new code. For rare cases where they are useful, a eslint-disable-line directive can be set. - Add docs js to linting * also enable github/array-foreach * small tweak Co-authored-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> silverwind authored at GitHub comitted at
  18. 7743f13b Use `f` variant to parse formatting (#17751) As title. Gusted authored at GitHub comitted at
  19. 55e92288 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  20. 8511eec4 Allow Loading of Diffs that are too large (#17739) * Allow Loading of Diffs that are too large This PR allows the loading of diffs that are suppressed because the file is too large. It does not handle diffs of files which have lines which are too long. Fix #17738 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  21. d710af66 Remove NewSession method from db.Engine interface (#17577) * Remove NewSession method from db.Engine interface * Fix bug * Some improvements * Fix bug * Fix test * Use XXXBean instead of XXXExample Lunny Xiao authored at GitHub comitted at
  22. 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
  23. ab09296d [skip ci] Updated licenses and gitignores GiteaBot authored at GiteaBot comitted at
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. c96be0cd Make SSL cipher suite configurable (#17440) zeripath authored at GitHub comitted at
  30. 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