aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Improve oauth2 error handling (#33969)wxiaoguang11 days4-18/+32
| | | | Show the callback error to end users, it should be safe. Fix #33967
* [skip ci] Updated translations via CrowdinGiteaBot11 days24-30/+7
|
* Cover `go.mod` and `go.sum` in `.editorconfig` (#33960)silverwind11 days1-0/+3
| | | | These files were previously set to use spaces for indendation but they are supposed to use tabs, so set this in editorconfig.
* Drop timeout for requests made to the internal hook api (#33947)Kai Leonhardt11 days1-11/+14
| | | | | | | | | This change targets https://github.com/go-gitea/gitea/issues/32663 We drop the hardcoded timeout of 60 seconds for requests to the internal hook api. With this change the timeout is completly removed. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix file name could not be searched if the file was not a text file when ↵charles11 days1-1/+2
| | | | | | | | | using the Bleve indexer (#33959) Close #33828 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix oauth2 auth and UI (#33961)wxiaoguang11 days3-43/+38
|
* Allow filtering issues by any assignee (#33343)Andreas Svanberg12 days22-103/+169
| | | | | | | | | | | | | | | | This is the opposite of the "No assignee" filter, it will match all issues that have at least one assignee. Before ![Before change](https://github.com/user-attachments/assets/4aea194b-9add-4a84-8d6b-61bfd8d9e58e) After ![After change with any filter](https://github.com/user-attachments/assets/99f1205d-ba9f-4a0a-a60b-cc1a0c0823fe) --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Optimize total count of feed when loading activities in user dashboard. (#33841)Lunny Xiao12 days4-7/+46
| | | | | | | | | | | | Two SQLs are very slow when `action` table have over 5M records. ``` database duration=1.8881s db.sql="SELECT created_unix DIV 900 * 900 AS timestamp, count(user_id) as contributions FROM `action` WHERE user_id=? AND act_user_id=? AND (created_unix > ?) GROUP BY timestamp ORDER BY timestamp" database duration=1.5408s db.sql="SELECT count(*) FROM `action` WHERE (user_id = ?) AND (is_deleted = ?)" ``` This will cache the count for the first loading or when the activities changed.
* Extract code to their own functions for push update (#33944)Lunny Xiao12 days1-86/+111
|
* Optimize heatmap query (#33853)Lunny Xiao12 days3-1/+61
| | | | | | | | | | | When there are over 5M records on `action` table, the heatmap on dashboard is very slow as below SQL. ``` database duration=1.8881s db.sql="SELECT created_unix DIV 900 * 900 AS timestamp, count(user_id) as contributions FROM `action` WHERE user_id=? AND act_user_id=? AND (created_unix > ?) GROUP BY timestamp ORDER BY timestamp" ``` This PR add a new index for `action` table with columns `user_id`, `act_user_id` and `created_unix` so that this query will become about 6 times faster than before.
* Add cli flags LDAP group configuration (#33933)TheFox0x713 days2-0/+77
| | | | | Add 7 new flags to ldap subcommands corresponding to UI options Closes CLI part of https://github.com/go-gitea/gitea/issues/20716
* Don't create duplicated functions for code repositories and wiki ↵Lunny Xiao13 days20-77/+56
| | | | | | | | | | repositories (#33924) Fix https://github.com/go-gitea/gitea/pull/33910#pullrequestreview-2688913865 This PR changed the Repositroy interface in `gitrepo` package which makes it only focus the relative path in the disk and abstract whether it's a wiki repository or not.
* Fix "toAbsoluteLocaleDate" test when system locale is not en-US (#33939)YaFou13 days1-2/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot14 days1-0/+1
|
* Optimize Layout Styles of Filelist (#33920)Kerwin Bryant2025-03-192-9/+21
| | | | | | | Align items --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2025-03-1827-1/+28
|
* update go version for devcontainers (#33923)metiftikci2025-03-171-1/+1
|
* Added Description Field for Secrets and Variables (#33526)John Smith2025-03-1720-63/+247
| | | | | | | Fixes #33484 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Try to figure out attribute checker problem (#33901)wxiaoguang2025-03-174-15/+96
| | | For #31600
* Defer captcha script loading (#33919)wxiaoguang2025-03-171-3/+3
| | | Fix #33899
* Fix file tree issues (#33916)Kerwin Bryant2025-03-173-4/+3
|
* Remove unused or abused styles (#33918)wxiaoguang2025-03-178-64/+13
| | | | | | * `top aligned` => `tw-align-top` * label list: it was broken, this PR fixes it * reference link: simplified * settings/repos: not affected
* [skip ci] Updated translations via CrowdinGiteaBot2025-03-172-7/+11
|
* Update tool dependencies (#33907)silverwind2025-03-161-2/+2
| | | | | | | `gopls` is currently excluded because its [new analyzers](https://github.com/golang/tools/releases/tag/gopls%2Fv0.18.0) raise many issue, to be fixed before we can upgrade it. And I think the modernize fixer still has a number of [unresolved/undiscovered bugs](https://github.com/golang/go/issues/71847).
* Move hooks function to gitrepo and reduce expose repopath (#33890)Lunny Xiao2025-03-168-24/+38
| | | | Extract from #28966 Follow #33874
* Replace text-align classes with tailwind (#33905)silverwind2025-03-1640-136/+83
| | | | | | | Small refactor to remove these CSS classes in favor of tailwind. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Simplify secure context check (#33906)silverwind2025-03-161-7/+4
| | | | As discussed in https://github.com/go-gitea/gitea/pull/33820/files#r1997532169.
* Update JS and PY deps, misc tweaks (#33903)silverwind2025-03-1610-1228/+1188
| | | | | | | | | - Update all updateable dependencies - Add a few more unupgradable ones to updates blocklist - Adapt to breaking changes - Update to typescript 5.8, enable `erasableSyntaxOnly` which necessitated a change because of forbidden syntax - Misc cleanups - Tested htmx, easymde, swagger, chart.js
* Refactor functions to reduce repopath expose (#33892)Lunny Xiao2025-03-166-25/+25
|
* Move git references checking to gitrepo packages to reduce expose of ↵Lunny Xiao2025-03-1524-46/+79
| | | | repository path (#33891)
* [skip ci] Updated translations via CrowdinGiteaBot2025-03-161-0/+2
|
* Add missing translation (#33900)Lunny Xiao2025-03-152-1/+2
|
* Give organisation members access to organisation feeds (#33508)Job2025-03-156-50/+110
| | | | | | | | | | | | | | | | | | | | | | | | Currently the organisation feed only includes items for public repositories (for non-administrators). This pull requests adds notifications from private repositories to the organisation-feed (for accounts that have access to the organisation). Feed-items only get shown for repositories where the users team(s) should have access to, this filtering seems to get done by some existing code. Needs some tests, but am unsure where/how to add them. Before: ![image](https://github.com/user-attachments/assets/8b63f430-227a-4b19-ad1a-f6f5175de301) After: ![image](https://github.com/user-attachments/assets/b439ce0e-4946-421c-a399-421806c7a6d8) --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add lock for a repository pull mirror (#33876)Lunny Xiao2025-03-151-0/+12
| | | | | Fix #33647 This PR add a global lock for repository pulling mirror.
* Fix cannot delete runners via the modal dialog (#33895)ChristopherHX2025-03-151-1/+1
| | | | | delete-button and show-modal class are conflicting Closes #33894
* Add file tree to file view page (#32721)Kerwin Bryant2025-03-1522-162/+696
| | | | | | | | | | | Resolve #29328 This pull request introduces a file tree on the left side when reviewing files of a repository. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2025-03-151-0/+4
|
* Feature: Ephemeral action runners (#33570)ChristopherHX2025-03-1410-19/+238
| | | | | | | | * This includes a runner mock test for hardend PickTask behavior like described in my proposal * Runner register ephemeral flag introduced in https://gitea.com/gitea/act_runner/pulls/649 Closes #32461
* Add abstraction layer to delete repository from disk (#33879)Lunny Xiao2025-03-146-11/+37
| | | | Extract from #28966 Follow #33874
* Make SearchMode have default value and add comments (#33863)wxiaoguang2025-03-148-19/+34
| | | | | | | * Make `SearchMode` have default value if it is empty * Add some comments for the "match" queries * Fix a copy-paste mistake in `buildMatchQuery` (`db.go`) * Add missing `q.Analyzer = repoIndexerAnalyzer`, it is in old code, although I do not see real difference ....
* Fix maven panic when no package exists (#33888)wxiaoguang2025-03-141-0/+5
| | | | | | Fix #33886 Restore the old logic from #16510, which was incorrectly removed by #33678
* Add old svg class name to git entry icon (#33884)wxiaoguang2025-03-142-6/+16
| | | Fix https://github.com/go-gitea/gitea/pull/33837#discussion_r1995521288
* Ignore trivial errors when updating push data (#33864)wxiaoguang2025-03-142-18/+20
| | | Fix #23213
* Improve repo commit view (#33877)wxiaoguang2025-03-1412-46/+116
| | | | | | | | | | | | | | | | | Fix #24623 Major changes: 1. Redirect `/owner/repo/blob/*` requests to `/owner/repo/src/commit/*` (like GitHub) 2. Add a "view file diff" link (see screenshot below) 3. Refactor "AssertHTMLElement" to generic, now we can accurately assert existence or number. 4. Add more tests --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: delvh <dev.lh@web.de>
* Add abstraction layer to check if the repository exists on disk (#33874)Lunny Xiao2025-03-146-47/+45
| | | | | | | | | | Extract from #28966 This PR uses `gitrepo.IsRepositoryExist` instead of `util.IsExist` to detect whether the repository exist in disk. This will move `RepoPath` detail behind of package `gitrepo` to make it easier to do possible changes where storing the repositories. No code change
* Pull request updates will also trigger code owners review requests (#33744)Lunny Xiao2025-03-138-37/+157
| | | | | | | | | | Fix #33490 It will only read the changed file on the pushed commits but not all the files of this PR. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2025-03-142-2/+11
|
* remove context from retry downloader (#33871)TheFox0x72025-03-142-17/+15
| | | | follow up to https://github.com/go-gitea/gitea/pull/33399 as I apparently missed this one.
* Fine tune push mirror UI (#33866)wxiaoguang2025-03-142-29/+34
|
* Fix markdown render (#33870)wxiaoguang2025-03-134-21/+22
| | | | | Fix #33869, some code block is moved to make it easier to test. Added a new test