aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* fix(i18n): clarify ownership in password change error messages (#34092)Håkon Harnes12 days1-2/+2
| | | | | | This PR updates the English localization messages `password_username_disabled` and `password_full_name_disabled` to replace "their" with "your", making it clear that the messages refer to the currently signed-in user.
* Enable addtional linters (#34085)TheFox0x712 days294-805/+848
| | | | | | | | enable mirror, usestdlibbars and perfsprint part of: https://github.com/go-gitea/gitea/issues/34083 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add flat-square action badge style (#34062)bytedream12 days7-30/+84
| | | | | | | | | Adds the `flat-square` style to action badges. Styles can be selected by adding `?style=<style>` to the badge endpoint. If no style query is given, or if the query is invalid, the style defaults to `flat`. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix some UI bugs and clean up unused tests (#34088)wxiaoguang12 days4-69/+23
| | | | | 1. Make the material icon falls back to basic theme correctly 2. Remove `TestAttributeReader`, the problem has been resolved. 3. Fix `toggleElem` bug and add tests
* [skip ci] Updated translations via CrowdinGiteaBot12 days19-19/+10
|
* fix users being able bypass limits with repo transfers (#34031)TheFox0x713 days6-15/+91
| | | | prevent user from being able to transfer repo to user who cannot have more repositories
* Improve pull request list api (#34052)Lunny Xiao13 days2-56/+39
| | | | | | | | The pull request list API is slow, for every pull request, it needs to open a git repository. Assume it has 30 records, there will be 30 sub processes back because every repository will open a git cat-file --batch sub process. This PR use base git repository to get the head commit id rather than read it from head repository to avoid open any head git repository.
* fix(#34076):replace assgniee translation key (#34077)Simon Priet13 days3-3/+3
| | | | | | | | | | | | | | | | Fix the typo on the `filter_assginee_no_assigne` key used in translations. The typo itself doesn't produce a bug (as it's there both on the code and on the locales) Side Note: Github UI is not the best to bulk change this :/ Squashing commits on the PR should be adequate. Closes #34076 . --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* [Fix] Resolve the problem of commit_statuses not being loaded at the top - ↵Kerwin Bryant13 days3-12/+12
| | | | | right when switching files from the file tree (#34079) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Enable testifylint rules (#34075)TheFox0x713 days262-1369/+1319
| | | | enable testifylint rules disabled in: https://github.com/go-gitea/gitea/pull/34054
* Fix markup content overflow (#34072)Kerwin Bryant13 days1-5/+1
| | | | Fix #34069: use `overflow-wrap: anywhere` to correctly wrap overflowed content.
* [skip ci] Updated translations via CrowdinGiteaBot13 days2-0/+11
|
* Add toggleClass function in dom.ts (#34063)Kerwin Bryant2025-03-302-30/+24
| | | | | | | | This PR adds a toggleClass function in dom.ts, aiming to implement DOM class toggling functionality. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add a config option to block "expensive" pages for anonymous users (#34024)wxiaoguang2025-03-3021-37/+225
| | | | | | | | | | | Fix #33966 ``` ;; User must sign in to view anything. ;; It could be set to "expensive" to block anonymous users accessing some pages which consume a lot of resources, ;; for example: block anonymous AI crawlers from accessing repo code pages. ;; The "expensive" mode is experimental and subject to change. ;REQUIRE_SIGNIN_VIEW = false ```
* add additional ReplaceAll in pathsep to cater for different pathsep (#34061)JonRB2025-03-301-1/+1
| | | | | | | | | | | | | | The doctor storage check reconstructs the lfs oid by producing a string where the path separator is stripped ab/dc/efg -> abdcefg. Windows however uses a backslash and thus the ReplaceAll call doesn't produce the correct oid resulting in all lfs objects being classed as orphaned. This PR allows this to be more OS agnostic. Closes #34039 --------- Co-authored-by: Giteabot <teabot@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2025-03-305-5/+0
|
* enable staticcheck QFxxxx rules (#34064)TheFox0x72025-03-2947-143/+179
|
* update to golangci-lint v2 (#34054)TheFox0x72025-03-292-127/+156
| | | | | updates config to v2. config was generated with migrate command. disable all newly exposed issues because there are too many.
* Add descriptions for private repo public access settings and improve the UI ↵yp053272025-03-292-32/+55
| | | | | (#34057) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add anonymous access support for private/unlisted repositories (#34051)wxiaoguang2025-03-2913-210/+414
| | | | | | | | | | | Follow #33127 Fix #8649, fix #639 This is a complete solution. A repo unit could be set to: * Anonymous read (non-signed-in user) * Everyone read (signed-in user) * Everyone write (wiki-only)
* Hide activity contributors, recent commits and code frequrency left tabs if ↵Lunny Xiao2025-03-284-26/+15
| | | | | | | | | | | there is no code permission (#34053) When a team have no code unit permission of a repository, the member of the team should not view activity contributors, recent commits and code frequrency. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Update action status badge layout (#34018)bytedream2025-03-287-136/+413
| | | | | | | | | | The current action status badge are looking different from most other badges renders, which is especially noticeable when using them along with other badges. This PR updates the action badges to match the commonly used badges from other providers. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add anonymous access support for private repositories (backend) (#33257)wxiaoguang2025-03-287-731/+886
| | | | | | | | | | | Follow #33127 This PR add backend logic and test for "anonymous access", it shares the same logic as "everyone access", so not too much change. By the way, split `SettingsPost` into small functions to make it easier to make frontend-related changes in the future. Next PR will add frontend support for "anonymous access"
* Simplify emoji rendering (#34048)silverwind2025-03-282-13/+1
| | | | | | | | | | | | | | | | It seems like most of our custom styles around the .emoji class are useless and we can just make them render like any other text. Rendering should now match GitHub. Fixes: https://github.com/go-gitea/gitea/issues/34019 Also see https://github.com/go-gitea/gitea/pull/11541 and https://github.com/go-gitea/gitea/pull/12317 for some context. I think browser emoji rendering has improved in recent years so these hacks are no longer needed. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Adjust the layout of the toolbar on the Issues/Projects page (#33667)Kerwin Bryant2025-03-285-35/+27
| | | | | | | | | | | On the list page, labels and milestones do not serve as a switch-tab. Instead, they function as page navigation. The switch-tab is only appropriate for use on the labels and milestones pages. And fix projects page layout. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix bug on downloading job logs (#34041)Lunny Xiao2025-03-272-70/+117
| | | Fix #34038
* Fix git client accessing renamed repo (#34034)wxiaoguang2025-03-282-16/+25
| | | | | | | | Fix #28460 The `reqGitSignIn` is just copied-pasted code (from githtttp.go) and causes the regression bug. Co-authored-by: Giteabot <teabot@gitea.io>
* Decouple Batch from git.Repository to simplify usage without requiring the ↵Lunny Xiao2025-03-274-24/+13
| | | | | creation of a Repository struct. (#34001) No logic change
* fix org repo creation being limited by user limits (#34030)TheFox0x72025-03-274-27/+37
| | | | | | | | | | | fixes an issue where user is unable to create new repository in organization via UI if repository limits are in place and user has exhausted them for their own namespace. closes: https://github.com/go-gitea/gitea/issues/15504 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix the issue with error message logging for the `check-attr` command on ↵charles2025-03-271-1/+2
| | | | | | | | | | Windows OS. (#34035) Close #34022 , #33550 This error message always appears when using the `check-attr` command, even though it works correctly. The issue occurs when the stdin writer is closed, so I added a special case to handle and check the error message when the exit code is 1.
* Try to fix check-attr bug (#34029)wxiaoguang2025-03-271-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2025-03-271-0/+3
|
* Download actions job logs from API (#33858)Lunny Xiao2025-03-268-52/+264
| | | | | | | | | | | | | | Related to #33709, #31416 It's similar with https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#download-job-logs-for-a-workflow-run--code-samples. This use `job_id` as path parameter which is consistent with Github's APIs. --------- Co-authored-by: ChristopherHX <christopher.homberger@web.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fail mirroring more gracefully (#34002)Royce Remer2025-03-262-11/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * reuse recoverable error checks across mirror_pull * add new cases for 'cannot lock ref/not our ref' (race condition in fetch) and 'Unable to create/lock" * move lfs sync right after commit graph write, and before other maintenance which may fail * try a prune for 'broken reference' as well as 'not our ref' * always sync LFS right after commit graph write, and before other maintenance which may fail This handles a few cases where our very large and very active repositories could serve mirrored git refs, but be missing lfs files: ## Case 1 (multiple variants): Race condition in git fetch There was already a check for 'unable to resolve reference' on a failed git fetch, after which a git prune and then subsequent fetch are performed. This is to work around a race condition where the git remote tells Gitea about a ref for some HEAD of a branch, then fails a few seconds later because the remote branch was deleted, or the ref was updated (force push). There are two more variants to the error message you can get, but for the same kind of race condition. These *may* be related to the git binary version Gitea has access to (in my case, it was 2.48.1). ## Case 2: githttp.go can serve updated git refs before it's synced lfs oids There is probably a more aggressive refactor we could do here to have the cat-file loop use FETCH_HEAD instead of relying on the commit graphs to be committed locally (and thus serveable to clients of Gitea), but a simple reduction in the occurrences of this for me was to move the lfs sync block immediately after the commit-graph write and before any other time-consuming (or potentially erroring/exiting) blocks. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix dropdown module accessing (#34026)wxiaoguang2025-03-261-2/+5
| | | Follow #34014.
* Polyfill WeakRef (#34025)wxiaoguang2025-03-262-0/+23
| | | Fix #33407
* Fix dropdown delegating and some UI problems (#34014)wxiaoguang2025-03-266-47/+64
| | | | | | | | | | | | | | | | The old logic is incomplete. See the comment for the improved logic. Fix #34011 And more fixes: 1. use empty "alt" for images, otherwise the width is not right when the image fails to load 2. remove the "dropdown icon" patch, because it has been clearly done in "dropdown.js" now 3. remove the "dropdown filtered item" patch, added a clear callback, and improve the logic 4. fix global init when a node is removed and added back gain (eg: the "cherry pick" dialog with a dropdown)
* Enable color output in govulncheck (#34012)silverwind2025-03-251-1/+1
| | | | Make `govulncheck` show color, which by default it doesn't for some reason.
* Update Makefile test comments (#34013)Rafael de Mattos2025-03-251-2/+2
| | | | The comments are referring to the wrong project section (backend and frontend).
* Move duplicated functions (#33977)Lunny Xiao2025-03-254-35/+35
| | | | Remove duplicated functions `IsExist`, `IsFile` and `IsDir` in package `modules/git` and use the exists functions in `modules/util`.
* Git client will follow 301 but 307 (#34005)Lunny Xiao2025-03-251-1/+3
| | | | | | | Fix #28460 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Prepare common tmpl functions in a middleware (#33957)wxiaoguang2025-03-256-80/+91
| | | | Fix the TODO in `routers/web/web.go`, and avoid the unnecessary `GetActiveStopwatch` SQL query in non-related route handlers.
* Update go mod dependencies (#33988)wxiaoguang2025-03-254-164/+178
| | | | | | | | blevesearch is skipped because it causes errors --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
* Fix some migration and repo name problems (#33986)wxiaoguang2025-03-2412-31/+123
| | | | | | 1. Ignore empty inputs in `UnmarshalHandleDoubleEncode` 2. Ignore non-existing `stateEvent.User` in gitlab migration 3. Enable `release` and `wiki` units when they are selected in migration 4. Sanitize repo name for migration and new repo
* [skip ci] Updated translations via CrowdinGiteaBot2025-03-251-0/+1
|
* Use filepath.Join instead of path.Join for file system file operations (#33978)Lunny Xiao2025-03-2412-56/+23
|
* Add changelog for 1.23.6 (#33975)Lunny Xiao2025-03-241-0/+22
| | | | Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix incorrect code search indexer options (#33992)wxiaoguang2025-03-241-3/+2
| | | | | Fix #33798 Co-authored-by: Giteabot <teabot@gitea.io>
* Auto expand "New PR" form (#33971)wxiaoguang2025-03-249-43/+64
| | | Follow GitHub's behavior: use `?expand=1` to expand the "New PR" form
* Move ParseBool to optional (#33979)Lunny Xiao2025-03-246-34/+31
|