gitea

Development moved to Codeberg

Commits at 3dbdf36d952678aafd1dac1a9fccce51bdbb8fc0

  1. 3dbdf36d Fix CSS specificity issue with easymde's css (#18201) * Fix CSS specificity issue with easymde's css PR #18069 introduced a regression in certain overwritten editor styles because the dynamic loading of easymde.min.css causes its's style to apply after our supposed override styles. Solve this by bundling the styles into index.css. We should later aim to completely replace easymde.min.css completely with our own styles so there are no more conflicts. * Update web_src/js/features/comp/EasyMDE.js Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> silverwind authored at GitHub comitted at
  2. 80705cf4 Fix mermaid rendering in milestone dashboard (#18202) Fixes: https://github.com/go-gitea/gitea/issues/18200 silverwind authored at GitHub comitted at
  3. a1c12fb0 Don't store assets modified time into generated files (#18193) Lunny Xiao authored at GitHub comitted at
  4. 21ed4fd8 Add warning for BIDI characters in page renders and in diffs (#17562) Fix #17514 Given the comments I've adjusted this somewhat. The numbers of characters detected are increased and include things like the use of U+300 to make à instead of à and non-breaking spaces. There is a button which can be used to escape the content to show it. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Gwyneth Morgan <gwymor@tilde.club> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> zeripath authored at GitHub comitted at
  5. ee60f27a [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  6. 36a0f4e4 Bump mermaid from 8.13.4 to 8.13.8 (#18198) Bumps [mermaid](https://github.com/knsv/mermaid) from 8.13.4 to 8.13.8. - [Release notes](https://github.com/knsv/mermaid/releases) - [Changelog](https://github.com/mermaid-js/mermaid/blob/develop/docs/CHANGELOG.md) - [Commits](https://github.com/knsv/mermaid/compare/8.13.4...8.13.8) --- updated-dependencies: - dependency-name: mermaid dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> dependabot[bot] authored at GitHub comitted at
  7. 0acc6a4e fix location for custom/options/license (#18194) yearski authored at GitHub comitted at
  8. 4b3bfd7e Enable partial clone by default (#18195) - Enable partial clones(which are by default disabled from git) by default, unless configured otherwise. - Resolves #18190 Gusted authored at GitHub comitted at
  9. 1514e13b Add option to convert CRLF to LF line endings for sendmail (#18075) It appears that several versions of sendmail require that the mail is sent to them with LF line endings instead of CRLF endings - which of course they will then convert back to CRLF line endings to comply with the SMTP standard. This PR adds another setting SENDMAIL_CONVERT_CRLF which will pass the message writer through a filter. This will filter out and convert CRLFs to LFs before writing them out to sendmail. Fix #18024 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  10. bf7b083c Add replay of webhooks. (#18191) KN4CK3R authored at GitHub comitted at
  11. a38ba634 Load EasyMDE/CodeMirror dynamically, remove RequireEasyMDE (#18069) This PR makes frontend load EasyMDE/CodeMirror dynamically, and removes `RequireEasyMDE`. wxiaoguang authored at GitHub comitted at
  12. 0572c789 refactoring nits (#18188) * no octal for time values * rm artifact from refactoring Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 6543 authored at GitHub comitted at
  13. 6da078d6 slight optimization for default avatar (#18187) * slight optimization * Update comment Co-authored-by: 6543 <6543@obermui.de> Lunny Xiao authored at GitHub comitted at
  14. ec6cc38c code.gitea.io/sdk/gitea v0.14.0 -> v0.15.1 (#18186) 6543 authored at GitHub comitted at
  15. 8760af75 Team permission allow different unit has different permission (#17811) * Team permission allow different unit has different permission * Finish the interface and the logic * Fix lint * Fix translation * align center for table cell content * Fix fixture * merge * Fix test * Add deprecated * Improve code * Add tooltip * Fix swagger * Fix newline * Fix tests * Fix tests * Fix test * Fix test * Max permission of external wiki and issues should be read * Move team units with limited max level below units table * Update label and column names * Some improvements * Fix lint * Some improvements * Fix template variables * Add permission docs * improve doc * Fix fixture * Fix bug * Fix some bug * fix * gofumpt * Integration test for migration (#18124) integrations: basic test for Gitea {dump,restore}-repo This is a first step for integration testing of DumpRepository and RestoreRepository. It: runs a Gitea server, dumps a repo via DumpRepository to the filesystem, restores the repo via RestoreRepository from the filesystem, dumps the restored repository to the filesystem, compares the first and second dump and expects them to be identical The verification is trivial and the goal is to add more tests for each topic of the dump. Signed-off-by: Loïc Dachary <loic@dachary.org> * Team permission allow different unit has different permission * Finish the interface and the logic * Fix lint * Fix translation * align center for table cell content * Fix fixture * merge * Fix test * Add deprecated * Improve code * Add tooltip * Fix swagger * Fix newline * Fix tests * Fix tests * Fix test * Fix test * Max permission of external wiki and issues should be read * Move team units with limited max level below units table * Update label and column names * Some improvements * Fix lint * Some improvements * Fix template variables * Add permission docs * improve doc * Fix fixture * Fix bug * Fix some bug * Fix bug Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Aravinth Manivannan <realaravinth@batsense.net> Lunny Xiao authored at GitHub comitted at
  16. 12ad6dd0 Integration test for migration (#18124) integrations: basic test for Gitea {dump,restore}-repo This is a first step for integration testing of DumpRepository and RestoreRepository. It: runs a Gitea server, dumps a repo via DumpRepository to the filesystem, restores the repo via RestoreRepository from the filesystem, dumps the restored repository to the filesystem, compares the first and second dump and expects them to be identical The verification is trivial and the goal is to add more tests for each topic of the dump. Signed-off-by: Loïc Dachary <loic@dachary.org> Aravinth Manivannan authored at GitHub comitted at
  17. d228d346 Update `TODOs` badge to reflect new default branch (#18182) * Update `TODOs` badge to reflect `main` as default branch * update `README_ZH.md` as well Patrick DeVivo authored at GitHub comitted at
  18. 623c93ff Increase Salt randomness (#18179) - The current implementation of `RandomString` doesn't give you a most-possible unique randomness. It gives you 6*`length` instead of the possible 8*`length` bits(or as `length`x bytes) randomness. This is because `RandomString` is being limited to a max value of 63, this in order to represent the random byte as a letter/digit. - The recommendation of pbkdf2 is to use 64+ bit salt, which the `RandomString` doesn't give with a length of 10, instead of increasing 10 to a higher number, this patch adds a new function called `RandomBytes` which does give you the guarentee of 8*`length` randomness and thus corresponding of `length`x bytes randomness. - Use hexadecimal to store the bytes value in the database, as mentioned, it doesn't play nice in order to convert it to a string. This will always be a length of 32(with `length` being 16). - When we detect on `Authenticate`(source: db) that a user has the old format of salt, re-hash the password such that the user will have it's password hashed with increased salt. Thanks to @zeripath for working out the rouge edges from my first commit 😄. Co-authored-by: lafriks <lauris@nix.lv> Co-authored-by: zeripath <art27@cantab.net> Gusted authored at GitHub comitted at
  19. 165346c1 Add MP4 as default allowed attachment type (#18170) Gusted authored at GitHub comitted at
  20. 0848c716 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  21. 74a5d49e Include folders into size cost (#18158) - Include folders for the disk consumption size, they should be included as they are also saved on the disk :) - Have a more accurate picture of the size of a repo. - Mostly they are the size of the file system's block size. E.g. 4Kb on Linux. Gusted authored at GitHub comitted at
  22. 637c3ec5 Don't delete branch if other PRs with this branch are open (#18164) fix #18149 Signed-off-by: a1012112796 <1012112796@qq.com> a1012112796 authored at GitHub comitted at
  23. 650a50a7 Remove unused route "/tasks/trigger" (#18160) ref: https://github.com/go-gitea/gitea/pull/18160#issuecomment-1004091325 Gusted authored at GitHub comitted at
  24. 48aab263 Fix EasyMDE validation (#18161) wxiaoguang authored at GitHub comitted at
  25. 8eec4030 Fix bug (#18168) Lunny Xiao authored at GitHub comitted at
  26. ade41f3f tests: add coverage for models migration helpers (#18162) They were previously not covered at all, either by integration tests or unit tests. This PR also fixes a bug where the `num_comments` field was incorrectly set to include all types of comments. It sets num_closed_issues: 0 as default in milestone unit test fixtures. If they are not set, Incr("num_closed_issues") will be a noop because the field is null. Aravinth Manivannan authored at GitHub comitted at
  27. f499f230 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  28. 496acbe9 Require codereview to have content (#18156) - Report a validityError when the codeReview have no comment. - Resolves #18151 - Refactor Gusted authored at GitHub comitted at
  29. 948949f4 chore(lint): use golangci-lint to call revive and misspell checker. (#18145) replace revive and misspell with golangci-lint Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> Bo-Yi Wu authored at GitHub comitted at
  30. 766cb481 Update owners for 2022 (#18155) 6543 authored at GitHub comitted at