d018c1b4b1
nix flake update ( #34476 ) ( #34490 )
...
Backport #34476 by techknowlogick
Co-authored-by: techknowlogick <techknowlogick@gitea.com >
2025-05-16 23:00:18 +08:00
d2cbe2fba0
Add migrations tests ( #34456 ) ( #34483 )
...
Backport #34456 by @lunny
Fix #34455
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-16 10:37:06 -04:00
d6233c25b5
Fix project board view ( #34470 ) ( #34475 )
...
Backport #34470 by wxiaoguang
Fix #34469
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-16 01:32:53 +08:00
2bf2d00c8a
When updating comment, if the content is the same, just return and not update the databse ( #34422 ) ( #34464 )
...
Backport #34422 by @lunny
Fix #34318
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-14 21:48:49 -07:00
9bd56a8ba0
Fix Workflow run Not Found page ( #34459 ) ( #34466 )
...
Backport #34459 by NorthRealm
Co-authored-by: NorthRealm <155140859+NorthRealm@users.noreply.github.com >
2025-05-15 11:55:39 +08:00
a1dc3c9bd1
Fix remove org user failure on mssql ( #34449 ) ( #34453 )
...
Backport #34449 by @ChristopherHX
* 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: ChristopherHX <christopher.homberger@web.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-13 13:28:26 -07:00
47ee84d1f3
Fix repo broken check ( #34444 ) ( #34452 )
...
Backport #34444 by wxiaoguang
Fix #34424
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-13 19:02:24 +00:00
89f1df033a
Fix comment textarea scroll issue in Firefox ( #34438 ) ( #34446 )
...
Backport #34438 by @silverwind
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: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-13 18:39:02 +02:00
94b67f1967
Fix releases sidebar navigation link ( #34436 ) ( #34440 )
...
Backport #34436 by @badhezi
Resolves https://github.com/go-gitea/gitea/issues/34435
Co-authored-by: badhezi <zlilaharon@gmail.com >
2025-05-12 14:41:24 -07:00
0a9a84df11
Fix bug webhook milestone is not right. ( #34419 ) ( #34428 )
...
Backport #34419 by @lunny
Fix #34400
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: silverwind <me@silverwind.io >
2025-05-12 00:21:14 +00:00
cdac263bb8
Only git operations should update last changed of a repository ( #34388 ) ( #34427 )
...
Backport #34388 by @lunny
Try to fix #32046
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-05-11 23:23:12 +02:00
a5c7df7a4c
Fix GetUsersByEmails ( #34423 ) ( #34425 )
...
Backport #34423 by wxiaoguang
Fix #34418 , fix #34353
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-11 04:42:59 +08:00
6d738fecc4
Fix a bug when uploading file via lfs ssh command ( #34408 ) ( #34416 )
...
Backport #34408 by @lunny
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-10 02:03:37 +00:00
38cc7453e2
Merge and tweak markup editor expander CSS ( #34409 ) ( #34415 )
...
Backport #34409 by @silverwind
- 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: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-09 18:58:19 +02:00
b44175c071
Refactor commit message rendering and fix bugs ( #34412 ) ( #34414 )
...
Backport #34412 by wxiaoguang
Fix #34398 , fix #33308
Remove all `repo.ComposeCommentMetas` from templates,
only use `repo` to render commit message.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-09 13:08:23 +00:00
947358dffe
Fix incorrect divergence cache after switching default branch ( #34370 ) ( #34406 )
...
Backport #34370 by @GWDx
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
Co-authored-by: GWDx <gwdx@mail.ustc.edu.cn >
2025-05-09 01:31:34 +02:00
be1090cb2d
Grey out expired artifact on Artifacts list ( #34314 ) ( #34404 )
...
Backport #34314 by @NorthRealm
Grey out expired artifact on Artifacts list.


Co-authored-by: NorthRealm <155140859+NorthRealm@users.noreply.github.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-08 10:56:51 -07:00
c8f3402841
Fix LFS file not stored in LFS when uploaded/edited via API or web UI ( #34367 ) ( #34396 )
...
Backport #34367 by bytedream
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: bytedream <bytedream@protonmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-08 05:33:19 +00:00
a3a95a0b67
Upgrade go-github v61 -> v71 ( #34385 ) ( #34387 )
...
Backport #34385 by @lunny
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.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-05-07 10:05:41 -07:00
ed527b664d
Fix only text/* being viewable in web UI ( #34374 ) ( #34378 )
...
Backport #34374 by @bytedream
Regression from #34356 , files like SVGs should be editable too
(https://github.com/go-gitea/gitea/pull/34356#discussion_r2072766240 ).
Co-authored-by: bytedream <bytedream@protonmail.com >
2025-05-06 05:18:12 +00:00
e4717d426e
Fix bug when visiting comparation page ( #34334 ) ( #34365 )
...
Backport #34334 by @lunny
The `ci.HeadGitRepo` was opened and closed in the function
`ParseCompareInfo` but reused in the function `PrepareCompareDiff`.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-05-04 20:43:42 +00:00
16f15d2f7b
Fix bug when API get pull changed files for deleted head repository ( #34333 ) ( #34366 )
...
Backport #34333 by @lunny
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-05-04 20:18:11 +00:00
b3f5196241
Fix LFS files being editable in web UI ( #34356 ) ( #34362 )
...
Backport #34356 by @bytedream
It's possible to edit "raw" lfs files in the web UI when accessing the path manually.

Co-authored-by: bytedream <git@bytedream.dev >
2025-05-04 12:38:23 -07:00
6c5f0af45d
feat: return time of last usage for public keys and access tokens in the api ( #34323 ) ( #34339 )
...
Backport #34323 by @tobiasbp
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
Co-authored-by: Tobias Balle-Petersen <tobiasbp@gmail.com >
2025-05-01 14:45:08 -07:00
c95cb7c7e2
fix: do not return archive download URLs in API if downloads are disabled ( #34324 ) ( #34338 )
...
Backport #34324 by @tobiasbp
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
Co-authored-by: Tobias Balle-Petersen <tobiasbp@gmail.com >
2025-05-01 12:18:43 -07:00
6747e3e0eb
Fix some dropdown problems on the issue sidebar ( #34308 ) ( #34327 )
...
Backport #34308 by wxiaoguang
Also fix #34300
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-01 09:24:18 -07:00
834dad8cef
Fix the ci build ( #34309 ) ( #34310 )
...
Backport #34309 by @lunny
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
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-04-28 22:48:55 -07:00
GiteaBot
bf8f111f53
[skip ci] Updated translations via Crowdin
2025-04-27 00:38:03 +00:00
GiteaBot
8cea1aeea5
[skip ci] Updated translations via Crowdin
2025-04-25 00:35:36 +00:00
GiteaBot
04fab1818b
[skip ci] Updated translations via Crowdin
2025-04-23 00:34:59 +00:00
GiteaBot
310fdeb453
[skip ci] Updated translations via Crowdin
2025-04-22 00:35:41 +00:00
GiteaBot
8b7c0d8f8d
[skip ci] Updated translations via Crowdin
2025-04-19 00:32:56 +00:00
GiteaBot
f1cd90d3bd
[skip ci] Updated translations via Crowdin
2025-04-16 00:35:25 +00:00
GiteaBot
7a587bc2d3
[skip ci] Updated translations via Crowdin
2025-04-12 00:33:41 +00:00
GiteaBot
d725b78824
[skip ci] Updated translations via Crowdin
2025-04-11 00:34:55 +00:00
GiteaBot
c0898f7ed9
[skip ci] Updated translations via Crowdin
2025-04-09 00:34:55 +00:00
GiteaBot
8ca51abadd
[skip ci] Updated translations via Crowdin
2025-04-08 00:34:12 +00:00
GiteaBot
e8b54d9e44
[skip ci] Updated translations via Crowdin
2025-04-04 00:33:58 +00:00
GiteaBot
e2ac789b49
[skip ci] Updated translations via Crowdin
2025-04-02 00:35:16 +00:00
GiteaBot
d54418a7d3
[skip ci] Updated translations via Crowdin
2025-04-01 00:39:56 +00:00
GiteaBot
2f43544c01
[skip ci] Updated translations via Crowdin
2025-03-31 00:36:40 +00:00
GiteaBot
0b847f4584
[skip ci] Updated translations via Crowdin
2025-03-30 00:37:48 +00:00
GiteaBot
3c95b0758f
[skip ci] Updated translations via Crowdin
2025-03-27 00:33:53 +00:00
GiteaBot
536f4c6de8
[skip ci] Updated translations via Crowdin
2025-03-25 00:34:21 +00:00
GiteaBot
08510adefe
[skip ci] Updated translations via Crowdin
2025-03-24 00:35:25 +00:00
GiteaBot
0fee4f1392
[skip ci] Updated translations via Crowdin
2025-03-23 00:37:07 +00:00
GiteaBot
1c5c13a442
[skip ci] Updated translations via Crowdin
2025-03-22 00:33:13 +00:00
GiteaBot
39fc2e7285
[skip ci] Updated translations via Crowdin
2025-03-19 00:33:36 +00:00
GiteaBot
1b4adc0255
[skip ci] Updated translations via Crowdin
2025-03-18 00:33:31 +00:00
GiteaBot
9ebae4a2aa
[skip ci] Updated translations via Crowdin
2025-03-17 00:35:08 +00:00
GiteaBot
f11ac6bf3c
[skip ci] Updated translations via Crowdin
2025-03-16 00:36:54 +00:00
GiteaBot
926f0a19be
[skip ci] Updated translations via Crowdin
2025-03-15 00:33:24 +00:00
GiteaBot
de2d472d90
[skip ci] Updated translations via Crowdin
2025-03-14 00:33:05 +00:00
GiteaBot
cd10456664
[skip ci] Updated translations via Crowdin
2025-03-13 00:33:50 +00:00
GiteaBot
31ddbe1444
[skip ci] Updated translations via Crowdin
2025-03-10 00:29:01 +00:00
GiteaBot
b0ee340969
[skip ci] Updated translations via Crowdin
2025-03-06 00:32:55 +00:00
GiteaBot
b9913d9568
[skip ci] Updated translations via Crowdin
2025-03-05 00:33:24 +00:00
GiteaBot
f3ada61097
[skip ci] Updated translations via Crowdin
2025-03-01 00:36:23 +00:00
GiteaBot
7a8eed13b9
[skip ci] Updated translations via Crowdin
2025-02-28 00:32:56 +00:00
GiteaBot
0e477b590d
[skip ci] Updated translations via Crowdin
2025-02-27 00:32:24 +00:00
GiteaBot
6c5951dabd
[skip ci] Updated translations via Crowdin
2025-02-26 00:32:38 +00:00
GiteaBot
38ccc8e3e4
[skip ci] Updated translations via Crowdin
2025-02-25 00:35:17 +00:00
GiteaBot
9e75c54559
[skip ci] Updated translations via Crowdin
2025-02-23 00:34:45 +00:00
GiteaBot
21af8150b7
[skip ci] Updated translations via Crowdin
2025-02-20 00:32:10 +00:00
GiteaBot
50a5d6bf5d
[skip ci] Updated translations via Crowdin
2025-02-17 00:33:47 +00:00
GiteaBot
fc1b383da9
[skip ci] Updated translations via Crowdin
2025-02-16 00:34:48 +00:00
GiteaBot
42d817e814
[skip ci] Updated translations via Crowdin
2025-02-13 00:31:39 +00:00
GiteaBot
217ffe5492
[skip ci] Updated translations via Crowdin
2025-02-11 00:32:23 +00:00
GiteaBot
dbc18f400a
[skip ci] Updated translations via Crowdin
2025-02-07 00:31:35 +00:00
GiteaBot
943cc4f989
[skip ci] Updated translations via Crowdin
2025-02-06 00:31:49 +00:00
GiteaBot
a6819570be
[skip ci] Updated translations via Crowdin
2025-02-05 00:32:05 +00:00
GiteaBot
3c46cd6aae
[skip ci] Updated translations via Crowdin
2025-02-04 00:31:03 +00:00
GiteaBot
ed84f3737a
[skip ci] Updated licenses and gitignores
2025-02-03 00:32:15 +00:00
GiteaBot
9cd88ef8c7
[skip ci] Updated translations via Crowdin
2025-02-02 00:33:31 +00:00
GiteaBot
5b83203f37
[skip ci] Updated translations via Crowdin
2025-02-01 00:33:46 +00:00
GiteaBot
a89c735303
[skip ci] Updated translations via Crowdin
2025-01-29 00:31:19 +00:00
GiteaBot
121e4c9624
[skip ci] Updated translations via Crowdin
2025-01-28 00:31:19 +00:00
GiteaBot
fae69bc6d4
[skip ci] Updated translations via Crowdin
2025-01-27 00:32:12 +00:00
GiteaBot
2cc65e356e
[skip ci] Updated translations via Crowdin
2025-01-26 00:32:05 +00:00
GiteaBot
3e1b63f75b
[skip ci] Updated translations via Crowdin
2025-01-24 00:31:03 +00:00
GiteaBot
340d9ec42d
[skip ci] Updated translations via Crowdin
2025-01-23 00:31:02 +00:00
GiteaBot
3682231f17
[skip ci] Updated translations via Crowdin
2025-01-22 00:31:50 +00:00
GiteaBot
2e42e96ce2
[skip ci] Updated translations via Crowdin
2025-01-21 00:31:12 +00:00
GiteaBot
13dbd260b7
[skip ci] Updated licenses and gitignores
2025-01-20 00:31:52 +00:00
GiteaBot
f250ee6360
[skip ci] Updated translations via Crowdin
2025-01-19 00:33:43 +00:00
GiteaBot
fffc8550ab
[skip ci] Updated translations via Crowdin
2025-01-18 00:30:24 +00:00
GiteaBot
7582eb0419
[skip ci] Updated translations via Crowdin
2025-01-17 00:31:11 +00:00
GiteaBot
cbf933eb4e
[skip ci] Updated translations via Crowdin
2025-01-15 00:31:44 +00:00
GiteaBot
58ac17c005
[skip ci] Updated translations via Crowdin
2025-01-14 00:31:05 +00:00
GiteaBot
604365efd7
[skip ci] Updated translations via Crowdin
2025-01-13 00:34:26 +00:00
GiteaBot
a7e750414c
[skip ci] Updated translations via Crowdin
2025-01-12 00:35:53 +00:00
GiteaBot
8f8ad8e272
[skip ci] Updated translations via Crowdin
2025-01-10 00:32:29 +00:00
GiteaBot
fa9191b7b9
[skip ci] Updated translations via Crowdin
2025-01-09 00:32:21 +00:00
GiteaBot
ec84687df9
[skip ci] Updated translations via Crowdin
2025-01-08 00:32:07 +00:00
GiteaBot
485d184a5c
[skip ci] Updated translations via Crowdin
2025-01-07 00:32:09 +00:00
GiteaBot
3c1c508421
[skip ci] Updated translations via Crowdin
2025-01-06 00:34:05 +00:00
GiteaBot
3078826d01
[skip ci] Updated translations via Crowdin
2025-01-05 00:35:35 +00:00
GiteaBot
a739c784d9
[skip ci] Updated translations via Crowdin
2025-01-03 00:31:40 +00:00
GiteaBot
2852708fdf
[skip ci] Updated translations via Crowdin
2025-01-02 00:31:55 +00:00
GiteaBot
92a2900a2d
[skip ci] Updated translations via Crowdin
2025-01-01 00:35:43 +00:00