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
Giteabot and Lunny Xiao
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
Giteabot and bytedream
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
Giteabot and Lunny Xiao
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
Giteabot and Lunny Xiao
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
Giteabot and bytedream
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
Giteabot and Tobias Balle-Petersen
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
Giteabot and Tobias Balle-Petersen
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
Giteabot and wxiaoguang
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
Giteabot and Lunny Xiao
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
GiteaBot
e95b946f6d
[skip ci] Updated translations via Crowdin
2024-12-29 00:36:47 +00:00
GiteaBot
14ed553fae
[skip ci] Updated translations via Crowdin
2024-12-28 00:30:57 +00:00
GiteaBot
3c00e89129
[skip ci] Updated translations via Crowdin
2024-12-27 00:32:06 +00:00
GiteaBot
65e45fdcfd
[skip ci] Updated translations via Crowdin
2024-12-25 00:31:17 +00:00
GiteaBot
02c64e48b7
[skip ci] Updated translations via Crowdin
2024-12-24 00:31:53 +00:00
GiteaBot
b5f9a2d7c0
[skip ci] Updated licenses and gitignores
2024-12-23 00:32:58 +00:00
GiteaBot
35c86af164
[skip ci] Updated translations via Crowdin
2024-12-22 00:35:14 +00:00
GiteaBot
c66de245c4
[skip ci] Updated translations via Crowdin
2024-12-20 00:31:51 +00:00
GiteaBot
5ec8df02f6
[skip ci] Updated translations via Crowdin
2024-12-19 00:33:27 +00:00
GiteaBot
e6186bc447
[skip ci] Updated translations via Crowdin
2024-12-18 00:33:18 +00:00
GiteaBot
9f9bff0f04
[skip ci] Updated translations via Crowdin
2024-12-17 00:45:49 +00:00
GiteaBot
5e22e511de
[skip ci] Updated licenses and gitignores
2024-12-16 00:35:55 +00:00
GiteaBot
1893b32670
[skip ci] Updated translations via Crowdin
2024-12-12 00:34:20 +00:00
GiteaBot
734ddf7118
[skip ci] Updated translations via Crowdin
2024-12-11 00:34:48 +00:00
GiteaBot
43ca67eb8c
[skip ci] Updated translations via Crowdin
2024-12-10 00:34:44 +00:00
GiteaBot
145b583631
[skip ci] Updated licenses and gitignores
2024-12-09 00:35:40 +00:00
GiteaBot
a78a466383
[skip ci] Updated translations via Crowdin
2024-12-08 00:37:22 +00:00