aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix only text/* being viewable in web UI (#34374)bytedream2025-05-061-1/+1
| | | | Regression from #34356, files like SVGs should be editable too (https://github.com/go-gitea/gitea/pull/34356#discussion_r2072766240).
* add maintainer tobiasbp (#34372)Tobias Balle-Petersen2025-05-051-0/+1
| | | | | | | This PR adds me as a _maintainer_ as suggested by @techknowlogick. A couple of my recent PRs: * https://github.com/go-gitea/gitea/pull/34324 * https://github.com/go-gitea/gitea/pull/34323
* [skip ci] Updated translations via CrowdinGiteaBot2025-05-0527-27/+0
|
* Use lfs label for lfs file rather than a long description (#34363)Lunny Xiao2025-05-054-6/+5
| | | | | | | | | | | Before ![image](https://github.com/user-attachments/assets/ed6c9221-5a6a-4717-8178-e5528fd180bf) After ![image](https://github.com/user-attachments/assets/baa94350-ead4-46bf-b4b7-1bfd3aa5dcac)
* Fix bug when API get pull changed files for deleted head repository (#34333)Lunny Xiao2025-05-042-1/+101
|
* Fix bug when visiting comparation page (#34334)Lunny Xiao2025-05-042-13/+2
| | | | The `ci.HeadGitRepo` was opened and closed in the function `ParseCompareInfo` but reused in the function `PrepareCompareDiff`.
* Fix LFS files being editable in web UI (#34356)bytedream2025-05-041-8/+7
| | | | | It's possible to edit "raw" lfs files in the web UI when accessing the path manually. ![image](https://github.com/user-attachments/assets/62610e9e-24db-45ec-ad04-28062073164c)
* Bump `@github/relative-time-element` to v4.4.6 (#34352)Yarden Shoham2025-05-032-6/+14
| | | | | | | | Tested, it works as before. Changelog: https://github.com/github/relative-time-element/releases/tag/v4.4.6 Signed-off-by: Yarden Shoham <git@yardenshoham.com>
* Fix repo search input height (#34330)bytedream2025-05-011-1/+1
| | | | | | | | | | | | | | before: ![before](https://github.com/user-attachments/assets/1abdcb8a-d005-4f35-8d2e-1581fde26e0c) after: ![after](https://github.com/user-attachments/assets/41dab645-c5a7-4c45-9215-1340fb411130) The difference is minimal, only a few pixels above and beneath, but it stands out when switching fast between the tabs on the explore route.
* feat: return time of last usage for public keys and access tokens in the api ↵Tobias Balle-Petersen2025-05-015-5/+26
| | | | | | | | | | | | | | | | | | | | | | | | (#34323) In the Gitea GUI, the user can see the time that _AccessTokens_ and _PublicKeys_ were last used. This information is not returned by the _/users/{username}/tokens_ and _/user/keys_ endpoints in the API. This PR adds the missing data. The time of last usage for for _tokens_ & _keys_ seem to be stored in the _Updated_ field of the structs internally. For consistency, I have used the name _updated_at_ for the new field returned by the _API_. However, for the _API_ user, I don't think that name reflects the data returned, as I believe it is the time of last usage. I propose that we use the name _last_used_at_ instead. Let's hear reviewers opinion on that. * PublicKey 1. _last_used_at_: string($date-time) * AccessToken 1. _created_at_: string($date-time) (for parity with public keys) 2. _last_used_at_: string($date-time) Fix #34313
* fix: do not return archive download URLs in API if downloads are disabled ↵Tobias Balle-Petersen2025-04-302-4/+13
| | | | | | | | | | | | (#34324) If archive downloads are are disabled using _DISABLE_DOWNLOAD_SOURCE_ARCHIVES_, archive links are still returned by the API. This PR changes the data returned, so the fields _zipball_url_ and _tarball_url_ are omitted if archive downloads have been disabled. Resolve #32159
* Fix some dropdown problems on the issue sidebar (#34308)wxiaoguang2025-04-3012-48/+45
| | | Also fix #34300
* [skip ci] Updated translations via CrowdinGiteaBot2025-04-302-0/+2
|
* Fix button alignments (#34307)Kerwin Bryant2025-04-291-1/+1
| | | Continue with #34206.
* fix go version (#34299)Mingzhu Yan2025-04-291-1/+1
| | | | go cmd will download and cache a copy of the Go toolchain, go1.24 is not a valid version since https://github.com/golang/go/issues/57631.
* Fix the ci build (#34309)Lunny Xiao2025-04-282-2/+4
| | | | | | Fix https://github.com/go-gitea/gitea/actions/runs/14722306878/job/41318217870 A fork has been created under https://gitea.com/gitea/go-xsd-duration
* support the open-icon of folder (#34168)Kerwin Bryant2025-04-2820-108/+191
| | | Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix wrong review requests when updating the pull request (#34286)v1.25.0-devLunny Xiao2025-04-282-20/+23
| | | | | | | | Fix #34224 The previous implementation in #33744 will get the pushed commits changed files. But it's not always right when push a merged commit. This PR reverted the logic in #33744 and will always get the PR's changed files and get code owners.
* Enforce two-factor auth (2FA: TOTP or WebAuthn) (#34187)wxiaoguang2025-04-2847-223/+324
| | | | | | | | | | | | | | | | | | | | | Fix #880 Design: 1. A global setting `security.TWO_FACTOR_AUTH`. * To support org-level config, we need to introduce a better "owner setting" system first (in the future) 2. A user without 2FA can login and may explore, but can NOT read or write to any repositories via API/web. 3. Keep things as simple as possible. * This option only aggressively suggest users to enable their 2FA at the moment, it does NOT guarantee that users must have 2FA before all other operations, it should be good enough for real world use cases. * Some details and tests could be improved in the future since this change only adds a check and seems won't affect too much. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* actions artifacts api list/download check status upload confirmed (#34273)ChristopherHX2025-04-285-7/+81
| | | | | | | | | | | * fixes a fixture status to upload confirmed * add another fixture as noise to break tests as soon they are exposed to api * v4 delete test added check that artifact is no longer visible in internal api with status pending delete * removal of http 404 on empty list: actions/upload-artifact@v4 now backoff on http 404 of ListArtifacts endpoint * fixes artifacts with pending delete etc. are able to be found and downloaded if the storage is not freed
* Fix button alignments (#34276)Kerwin Bryant2025-04-275-8/+14
| | | | | | | | Continue with #34206. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Update token creation API swagger documentation (#34288)Lunny Xiao2025-04-272-2/+15
| | | Fix #34231
* [skip ci] Updated translations via CrowdinGiteaBot2025-04-271-0/+3
|
* Explicitly not update indexes when sync database schemas (#34281)Lunny Xiao2025-04-2613-20/+64
| | | | | | | Fix #34275 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Introduce `--page-space-bottom` at 64px (#30692)silverwind2025-04-251-1/+2
| | | | | | | | | Previously we would always leave 80px space before the page footer, but this is problematic with small viewport heights on projects page for example. I think it' ideal that we use `--page-spacing` which is already in use for spacing on top of the page. The `secondary-nav` margin is also adjusted as I see no value why this shouldn't be the same value.
* [skip ci] Updated translations via CrowdinGiteaBot2025-04-2521-21/+4
|
* Option to delay conflict checking of old pull requests until page view (#27779)Brecht Van Lommel2025-04-2432-244/+437
| | | | | | | | | | | | | | | | | | | | | | `[repository.pull-request] DELAY_CHECK_FOR_INACTIVE_DAYS` is a new setting to delay the mergeable check for pull requests that have been inactive for the specified number of days. This avoids potentially long delays for big repositories with many pull requests. and reduces system load overall when there are many repositories or pull requests. When viewing the PR, checking will start immediately and the PR merge box will automatically reload when complete. Accessing the PR through the API will also start checking immediately. The default value of `7` provides a balance between system load, and keeping behavior similar to what it was before both for users and API access. With `0` all conflict checking will be delayed, while `-1` always checks immediately to restore the previous behavior. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Update unrs-resolver (#34279)wxiaoguang2025-04-242-100/+115
|
* Fix panic when comment is nil (#34257)Lunny Xiao2025-04-243-22/+10
| | | Fix #34254
* Fix various trivial frontend problems (#34263)wxiaoguang2025-04-2418-33/+35
| | | | | | | | | | 1. Fix #20606 2. Fix #34246 3. Fix missing spaces, fix misspells, no visual change. 4. Fix missing "not-mobile", fix #34265 --------- Co-authored-by: silverwind <me@silverwind.io>
* update go&js dependencies (#34262)wxiaoguang2025-04-238-478/+513
|
* Fix runner list tmpl (#34270)wxiaoguang2025-04-232-19/+7
| | | | | Fix #34269 And fix some layout problems.
* Improve "not found" error messages for API (#34267)wxiaoguang2025-04-235-7/+6
| | | Make the message clear, for example: #34266
* Add fullscreen mode as a more efficient operation way to view projects (#34081)Kerwin Bryant2025-04-239-57/+119
| | | | | | | Maybe fix #33482, maybe fix #34015 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2025-04-231-0/+7
|
* Display when a release attachment was uploaded (#34261)wxiaoguang2025-04-222-18/+27
| | | Fix #34260
* Fix Set Email Preference dropdown and button placement (#34255)badhezi2025-04-221-3/+5
| | | | | | | Resolves https://github.com/go-gitea/gitea/issues/34209 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2025-04-2222-22/+0
|
* Update compare.tmpl (#34251)Kerwin Bryant2025-04-211-2/+2
| | | | | | | | | before: ![1745215925689](https://github.com/user-attachments/assets/36a02f59-b23e-444c-b00a-dd69b81dd910) after: ![1745215793514](https://github.com/user-attachments/assets/d3f7c228-923a-40bd-9f4c-353947478d0f)
* Make public URL generation configurable (#34250)wxiaoguang2025-04-225-32/+59
| | | | | | | Follow up #32564 Co-authored-by: Jannis Pohl <838818+jannispl@users.noreply.github.com> Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
* Add API endpoint to request contents of multiple files simultaniously (#34139)Denys Konovalov2025-04-2224-415/+581
| | | | | | | | | | | | | | | | Adds an API POST endpoint under `/repos/{owner}/{repo}/file-contents` which receives a list of paths and returns a list of the contents of these files. This API endpoint will be helpful for applications like headless CMS (reference: https://github.com/sveltia/sveltia-cms/issues/198) which need to retrieve a large number of files by reducing the amount of needed API calls. Close #33495 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add API routes to lock and unlock issues (#34165)YaFou2025-04-2111-51/+364
| | | | | | | | | | | | | | | This pull request adds a GitHub-compatible API endpoint to lock and unlock an issue. The following routes exist now: - `PUT /api/v1/repos/{owner}/{repo}/issues/{id}/lock` to lock an issue - `DELETE /api/v1/repos/{owner}/{repo}/issues/{id}/lock` to unlock an issue Fixes #33677 Fixes #20012 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Make ROOT_URL support using request Host header (#32564)Jannis Pohl2025-04-205-32/+80
| | | | | | | Resolve #32554 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Valid email address should only start with alphanumeric (#28174)Dejan Kitic2025-04-203-10/+43
| | | | | | | | | | | | This fixes issue #27847 where regular expression allowed email address to start with special symbols. Valid email addresses should start with alphanumeric character, and as such will be rendered as email. Added test cases from the bug report to validate, such input will not be rendered anymore as email address. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix notify watch failure when the content is too long (#34233)Lunny Xiao2025-04-201-15/+15
| | | | | | | Fix #28193 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add "--fullname" arg to gitea admin user create (#34241)Eric Hawicz2025-04-192-11/+31
| | | Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix various UI problems (#34243)wxiaoguang2025-04-1912-59/+43
| | | Also fix #34242
* markup: improve code block readability and isolate copy button (#34009)D2025-04-195-25/+95
| | | | | | | | Fix #33197 Improve the rendering of code blocks in markdown content for better readability and UI stability across screen sizes. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Don't assume the default wiki branch is master in the wiki API (#34244)Kemal Zebari2025-04-191-4/+4
| | | | | | Resolves #34218. In the recent past, the default wiki branch was made to be changeable. This change reflects this.
* [skip ci] Updated translations via CrowdinGiteaBot2025-04-191-0/+17
|