gitea

Development moved to Codeberg

Commits at 076eaad7430dd80f202446487c99e95e8d803ab3

  1. 076eaad7 Improve dashboard's repo list performance (#18963) * Improve dashboard's repo list performance - Avoid a lot of database lookups for all the repo's, by adding a undocumented "minimal" mode for this specific task, which returns the data that's only needed by this list which doesn't require any database lookups. - Makes fetching these list faster. - Less CPU overhead when a user visits home page. * Refactor javascript code + fix Fork icon - Use async in the function so we can use `await`. - Remove `archivedFilter` check for count, as it doesn't make sense to show the count of repos when you can't even see them(as they are filited away). * Add `count_only` * Remove uncessary code * Improve comment Co-authored-by: delvh <dev.lh@web.de> * Update web_src/js/components/DashboardRepoList.js Co-authored-by: delvh <dev.lh@web.de> * Update web_src/js/components/DashboardRepoList.js Co-authored-by: delvh <dev.lh@web.de> * By default apply minimal mode * Remove `minimal` paramater * Refactor count header * Simplify init Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: zeripath <art27@cantab.net> Gusted authored at GitHub comitted at
  2. 89eec15d By default force vertical tabs on mobile (#19486) * By default force vertical tabs on mobile - While experimenting with using vertical tabs instead of horizontal tabs on gitea for a better mobile experience, I made a recent PR(https://github.com/go-gitea/gitea/pull/19468) in order to see if there was any objections to this new behavior for the repo headers(one of the most annoying horizontal tabs). This PR had no objections and even a user commenting that this change is brilliant. - This PR now improves upon the previous PR by making this the de-facto behavior for all menu's on mobile. The only exemption is the navbar which also uses the menu but caught some layout errors with the changes. * Fix organisation * Fix repo/wiki buttons Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Gusted authored at GitHub comitted at
  3. d71df010 Refactor readme file renderer (#19502) * Refactor readme file renderer * improve Lunny Xiao authored at GitHub comitted at
  4. e4274f64 Allow package dump skipping (#19506) * Added addReader to support verbose. * Allow skipping packages. * Updated docs. * Update cmd/dump.go Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> KN4CK3R authored at GitHub comitted at
  5. 6dd36379 Unset git author/committer variables when running integration tests (#19512) TestAPIGitTag (and likely others) will fail if the running environment contains GIT_AUTHOR_NAME and other env variables like it. This PR simply unsets these when running the integration tests. Fix #14247 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  6. 2347c9eb Allow commit status popup on /pulls page (#19507) * Allow commit status popup on /pulls page The /pulls page doesn't contain a "repository" element, so the early-out here was preventing the commit status popup hook from working. However, the only thing the .repository element is being used for here is determining whether the popup should be on the right or on the left, so we don't actually need the element to exist for the hook to work. Pull request #19375 allows the statuses on /pulls pages to appear clickable, but this commit is required to make the popup actually work there. * Move commit statuses popup hook to dedicated func * Add missing import parnic authored at GitHub comitted at
  7. 3c140f0d Use router param for filepath in GetRawFile (#19499) * Use router param for filepath Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move TreePath back into RepoRefForAPI Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> John Olheiser authored at GitHub comitted at
  8. 6cc8aed7 Fix two typos (#19504) Lunny Xiao authored at GitHub comitted at
  9. 03eba32b Add a new menu in file view to open blame view and fix blame view select range bug (#19500) Lunny Xiao authored at GitHub comitted at
  10. fef26c15 Fix two UI bugs: JS error in imagediff.js, 500 error in diff/compare.tmpl Co-authored-by: 6543 <6543@obermui.de> wxiaoguang authored at GitHub comitted at
  11. 741c55b4 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  12. 4e912a61 Improve Stopwatch behavior (#18930) - Don't send empty stopwatch over and over again, only send once. - Stop interval to update stopwatch's timer when there is no more stopwatch. Gusted authored at GitHub comitted at
  13. 1ebb30e4 Pass gitRepo down to GetRawDiff, since its used for main repo and wiki (#19461) as per https://github.com/go-gitea/gitea/pull/19449#issuecomment-1105283931 pass gitRepo down to GetRawDiff, since its used for main repo and wiki 6543 authored at GitHub comitted at
  14. 7c164d5a Use queue instead of memory queue in webhook send service (#19390) Lunny Xiao authored at GitHub comitted at
  15. 257cea65 add a directory prefix `gitea-src-VERSION` to release-tar-file (#19396) Use a directory prefix instead on creating the tar file. Fixes: #19066 jklippel authored at GitHub comitted at
  16. ddbbe6e1 User specific repoID or xorm builder conditions for issue search (#19475) * extend models.IssuesOptions to have more specific repo filter options * use new options * unrelated refactor * rm RepoIDs 6543 authored at GitHub comitted at
  17. fe274c14 Add notags to fetch (#19487) 6543 authored at GitHub comitted at
  18. fc002860 Simplify the code to get issue count (#19380) * Simple the code to get issue count * Improve codes Lunny Xiao authored at GitHub comitted at
  19. 2ec2baf2 use IsLoopback (#19477) Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 6543 authored at GitHub comitted at
  20. 5e4134b1 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  21. ef164d33 Add RSS Feed buttons to Repo, User and Org pages (#19370) ktprograms authored at GitHub comitted at
  22. ebb23967 [doctor] authorized-keys: fix displayed check name (#19464) The registered check name is authorized-keys, not authorized_keys. Pilou authored at GitHub comitted at
  23. 0abd8b0a [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  24. 1f054178 Use horizontal tabs for repo header on mobile (#19468) * Use horizontal tabs for repo header on mobile - The current behavior of the repo header on mobile is to display them vertically column-by-column. I've only experience annoyance due to this while trying to visit gitea instanced on mobile. This commit changes this behavior to use horizontal tabs, it uses less tabs and doesn't bloat 60% of your mobile screen with the repo headers. - A small fix added in this commit is to give some space around the repo buttons, current behavior is that they are too "close" to the repo title. * Fix lint Gusted authored at GitHub comitted at
  25. 9550e5a2 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  26. 240b3aa2 Mark TemplateLoading error as "UnprocessableEntity" (#19445) - Don't return Internal Server error if the user provide incorrect label template, instead return UnprocessableEntity. - Resolves #19399 Gusted authored at GitHub comitted at
  27. 0dcc74a8 Prevent dangling cat-file calls (goroutine alternative) (#19454) If an `os/exec.Command` is passed non `*os.File` as an input/output, go will create `os.Pipe`s and wait for their closure in `cmd.Wait()`. If the code following this is responsible for closing `io.Pipe`s or other handlers then on process death from context cancellation the `Wait` can hang. There are two possible solutions: 1. use `os.Pipe` as the input/output as `cmd.Wait` does not wait for these. 2. create a goroutine waiting on the context cancellation that will close the inputs. This PR provides the second option - which is a simpler change that can be more easily backported. Closes #19448 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  28. 0dfc2e55 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  29. ebe569a2 Set correct PR status on 3way on conflict checking (#19457) * Set correct PR status on 3way on conflict checking - When 3-way merge is enabled for conflict checking, it has a new interesting behavior that it doesn't return any error when it found a conflict, so we change the condition to not check for the error, but instead check if conflictedfiles is populated, this fixes a issue whereby PR status wasn't correctly on conflicted PR's. - Refactor the mergeable property(which was incorrectly set and lead me this bug) to be more maintainable. - Add a dedicated test for conflicting checking, so it should prevent future issues with this. * Fix linter Gusted authored at GitHub comitted at
  30. 3ec1b6c2 Fix logging of Transfer API (#19456) - Use the correct fullname's in tracing calls. - Return correct function name in error. Co-authored-by: 6543 <6543@obermui.de> Gusted authored at GitHub comitted at