aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix remove org user failure on mssql (#34449)ChristopherHX2025-05-145-57/+42
| | | | | | | | | | | * mssql does not support fetching 0 repositories * remove paging by NumRepos that might be 0 * extend admin api test to purge user 2 Fixes #34448 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix repo broken check (#34444)wxiaoguang2025-05-133-21/+34
| | | Fix #34424
* Fix comment textarea scroll issue in Firefox (#34438)silverwind2025-05-131-0/+10
| | | | | | | | | | | | | | | | | | In the comment editor, there is a bug in Firefox where the scroll position unexpectedly moves up, which is annoying. This is not reproducible in Chrome and Safari. To reproduce here are some steps: - Go into an editable issue - Scroll page to bottom - Focus the textarea and press Return many times, causing the textarea to get a scrollbar - Scroll page to bottom again - Press Return once more - Page should not scroll up. This fixes the bug by adding a temporary margin, and I verified it works in all browsers. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix releases sidebar navigation link (#34436)badhezi2025-05-121-1/+1
| | | Resolves https://github.com/go-gitea/gitea/issues/34435
* Add a webhook push test for dev branch (#34421)Lunny Xiao2025-05-121-3/+47
|
* [skip ci] Updated translations via CrowdinGiteaBot2025-05-121-1/+11
|
* Fix bug webhook milestone is not right. (#34419)Lunny Xiao2025-05-115-0/+105
| | | | | | | Fix #34400 --------- Co-authored-by: silverwind <me@silverwind.io>
* Only git operations should update `last changed` of a repository (#34388)Lunny Xiao2025-05-1119-33/+28
| | | Try to fix #32046
* When updating comment, if the content is the same, just return and not ↵Lunny Xiao2025-05-113-31/+89
| | | | | update the databse (#34422) Fix #34318
* Remove legacy template helper functions (#34426)wxiaoguang2025-05-114-108/+2
| | | | These functions have been marked as `panicIfDevOrTesting` since 1.23 (#32422)
* Fix GetUsersByEmails (#34423)wxiaoguang2025-05-103-35/+29
| | | Fix #34418, fix #34353
* [skip ci] Updated translations via CrowdinGiteaBot2025-05-101-0/+4
|
* Fix a bug when uploading file via lfs ssh command (#34408)Lunny Xiao2025-05-097-76/+149
| | | Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Merge and tweak markup editor expander CSS (#34409)silverwind2025-05-095-97/+98
| | | | | | | | | | | | | | | | | | | | | | | - Merge the CSS for the two expanders (text-expander-element and tribute.js) into one file - Fix overflow issues - Remove min-width - Various other tweaks like borders, colors, padding, gaps. text-expander: <img width="645" alt="Screenshot 2025-05-09 at 02 21 24" src="https://github.com/user-attachments/assets/33276dc4-38e8-45e1-8216-2a4baa9bc039" /> tribute: <img width="624" alt="Screenshot 2025-05-09 at 02 21 37" src="https://github.com/user-attachments/assets/91fbcd1a-9bfc-40fd-93f0-a05b4bd4c98d" /> --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Bump `@github/relative-time-element` to v4.4.8 (#34413)Yarden Shoham2025-05-092-5/+5
| | | | | | | | Tested, it works as before. Changelog: https://github.com/github/relative-time-element/releases/tag/v4.4.8 Signed-off-by: Yarden Shoham <git@yardenshoham.com>
* Refactor commit message rendering and fix bugs (#34412)wxiaoguang2025-05-0917-107/+102
| | | | | | Fix #34398, fix #33308 Remove all `repo.ComposeCommentMetas` from templates, only use `repo` to render commit message.
* [skip ci] Updated translations via CrowdinGiteaBot2025-05-0928-42/+115
|
* Fix autofocus behavior (#34397)wxiaoguang2025-05-0811-49/+45
| | | | | | | | | | | | | | | | The "autofocus" was abused or misbehaved: 1. When users visit a page but they are not going to change a field, then the field shouldn't get "autofocus" * the "auth" / "user" page: in most cases, users do not want to change the names * see also the GitHub's "settings" page behavior. 2. There shouldn't be duplicate "autofocus" inputs in most cases, only the first one focuses 3. When a panel is shown, the "autofocus" should get focus * "add ssh key" panel This PR fixes all these problems and by the way remove duplicate "isElemHidden" function.
* Fix incorrect divergence cache after switching default branch (#34370)GWDx2025-05-083-3/+105
| | | | | | | | | | Issue: After switching the default branch, other branches are still compared against the old default branch due to outdated divergence cache. Change: Clear the divergence cache in SetRepoDefaultBranch to ensure correct comparisons against the new default branch. Fixes #34369
* Add a button editing action secret (#34348)NorthRealm2025-05-085-14/+62
| | | | | | | | Add a button editing action secret Closes #34190 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix LFS file not stored in LFS when uploaded/edited via API or web UI (#34367)bytedream2025-05-083-2/+24
| | | | | | | | Files that should be stored in LFS and are uploaded/edited from the API or web UI aren't stored in LFS. This may be a regression from #34154. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2025-05-082-0/+3
|
* Fix "The sidebar of the repository file list does not have a fixed height ↵Kerwin Bryant2025-05-072-1/+6
| | | | | | | | | | #34298" (#34321) There is a known issue where scrolling to the bottom of the page is affected by unknown elements in the footer area: https://github.com/go-gitea/gitea/blob/24145f811069295b9727f25469f1dd3a7c2c5dd7/templates/base/footer.tmpl#L11-L18 ![after](https://github.com/user-attachments/assets/4cdbce32-d22e-4907-a78b-c8e301017fac)
* feat: add label 'state' to metric 'gitea_users' (#34326)Tobias Balle-Petersen2025-05-073-4/+30
| | | | | | | | | | | | | | | | | | This PR adds the label _state_ to the metric _gitea_users_. With the change, _gitea_users_ would be reported like this: ``` ... # HELP gitea_users Number of Users # TYPE gitea_users gauge gitea_users{state="active"} 20 gitea_users{state="inactive"} 10 ... ``` The metrics above would be from a Gitea instance with 30 user accounts. 20 of the accounts are active and 10 of the accounts are not active. Resolve #34325
* Update JS and PY dependencies (#34391)silverwind2025-05-076-809/+1050
| | | Result of `make update-js update-py svg`. Quick test of the UI worked.
* Upgrade go-github v61 -> v71 (#34385)Lunny Xiao2025-05-066-23/+33
| | | | | There will be a possible bug when migrating from Github https://github.com/google/go-github/issues/3229 This PR upgrades go-github from v61 to v71 to resolve that problem.
* Bump `@github/relative-time-element` to v4.4.7 (#34384)Yarden Shoham2025-05-062-14/+6
| | | | | | | Tested, it works as before. Changelog: https://github.com/github/relative-time-element/releases/tag/4.4.7 Signed-off-by: Yarden Shoham <git@yardenshoham.com>
* gitignore: Visual Studio settings folder (#34375)65432025-05-061-0/+3
|
* Grey out expired artifact on Artifacts list (#34314)NorthRealm2025-05-055-12/+32
| | | | | | | | | | | Grey out expired artifact on Artifacts list. ![1](https://github.com/user-attachments/assets/79c00e39-29f5-4264-b7b2-7ed638ab71c1) ![2](https://github.com/user-attachments/assets/686b745f-d6d7-4921-8e1b-3472ac8b6c17) --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* 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>