Giteabot
175a425825
Fix bug on notification read ( #36339 ) ( #36387 )
...
Backport #36339 by @lunny
When a user has been revoked permission to access a repository, the
related notification could still be visited. But the repository's
information should not be leaked any more.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2026-01-16 09:58:56 +02:00
Lunny Xiao
6132f639e7
Fix bug when compare in the pull request ( #36363 ) ( #36372 )
...
The pull request comparison should not use `direct compare`.
Backport #36363
2026-01-15 01:58:42 +00:00
Giteabot
dfe4055b92
Release attachments must belong to the intended repo ( #36347 ) ( #36375 )
...
Backport #36347 by @lunny
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2026-01-15 02:30:18 +01:00
Giteabot
5fe9703586
Fix permission check on org project operations ( #36318 ) ( #36373 )
...
Backport #36318 by @lunny
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2026-01-14 14:22:27 -08:00
Giteabot
53d67dae28
clean watches when make a repository private and check permission when send release emails ( #36319 ) ( #36370 )
...
Backport #36319 by @lunny
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2026-01-14 19:28:02 +01:00
Giteabot
ef6ab681f7
Fix incorrect text content detection ( #36364 ) ( #36369 )
...
Backport #36364 by wxiaoguang
Fix #36325
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2026-01-15 00:45:38 +08:00
Giteabot
812a3cffb3
Add more check for stopwatch read or list ( #36340 ) ( #36368 )
...
Backport #36340 by @lunny
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2026-01-14 16:04:02 +00:00
Giteabot
669b22100b
Fix openid setting check ( #36346 ) ( #36361 )
...
Backport #36346 by @lunny
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2026-01-13 16:47:00 +02:00
Giteabot
a0c77673ff
fill missing has_code in repository api ( #36338 ) ( #36359 )
...
Backport #36338 by @TheFox0x7
fixes: https://github.com/go-gitea/gitea/issues/36332
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2026-01-13 10:31:18 +00:00
Giteabot
d96b68cbf5
Fix notifications pagination query parameters ( #36351 ) ( #36358 )
...
Backport #36351 by @wxiaoguang
Fix #36350
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2026-01-13 04:37:20 +00:00
Giteabot
f8ec5b3e43
Fix cancel auto merge bug ( #36341 ) ( #36356 )
...
Backport #36341 by @lunny
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2026-01-12 18:55:41 -08:00
Lunny Xiao
11891c2dac
Fix delete attachment check ( #36320 ) ( #36355 )
...
Backport #36320
2026-01-12 13:48:07 -08:00
Giteabot
2c778ff067
LFS locks must belong to the intended repo ( #36344 ) ( #36349 )
...
Backport #36344 by @lunny
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2026-01-12 09:09:16 +02:00
wxiaoguang
83ce45b186
Fix some trivial problems ( #36336 ) ( #36337 )
...
Partially backport #36336
1. correctly parse git protocol's "OldCommit NewCommit RefName" line, it
should be explicitly split by space
2. trim space for the "commit status context name" to follow the same
behavior of git_model.NewCommitStatus
2026-01-09 20:59:03 +02:00
silverwind
39e83bd3fd
Fix WebAuthn error checking ( #36219 ) ( #36235 )
...
Backport of https://github.com/go-gitea/gitea/pull/36219
Fixes: https://github.com/go-gitea/gitea/issues/36216
Now `detectWebAuthnSupport` returns the error type and lets the caller
decide whether they call `webAuthnError` and show the error. It no
longer shows the error during page load when the user has not even
interacted with the feature.
The bug affects all users on HTTP, so I think a quick fix release for
this might be good.
2026-01-06 04:57:59 +00:00
Giteabot
c2f9edd673
fix: prevent panic when GitLab release has more links than sources ( #36295 ) ( #36305 )
...
Backport #36295 by argoyle
Fixes #36292
Co-authored-by: Joakim Olsson <joakim@unbound.se >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2026-01-05 17:29:28 +00:00
Giteabot
aa575672ac
Fix stats bug when syncing release ( #36285 ) ( #36294 )
...
Backport #36285 by @lunny
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2026-01-04 12:14:00 +02:00
TheFox0x7
e9c14723b6
add more routes to the "expensive" list ( #36290 )
...
backport: https://github.com/go-gitea/gitea/pull/35547
closes https://github.com/go-gitea/gitea/issues/36229
Signed-off-by: Steven Noonan <steven@uplinklabs.net >
Co-authored-by: Steven Noonan <steven@uplinklabs.net >
2026-01-03 16:59:48 +02:00
Giteabot
76b6e94b5b
Always honor user's choice for "delete branch after merge" ( #36281 ) ( #36286 )
...
Backport #36281 by wxiaoguang
Fix #36280
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2026-01-03 03:06:10 +00:00
Giteabot
163113d173
Make "commit statuses" API accept slashes in "ref" ( #36264 ) ( #36275 )
...
Backport #36264 by wxiaoguang
Fix #36253
Support slashes in `{ref}` (follow GitHub's behavior)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2026-01-01 03:04:03 +00:00
Lunny Xiao
7d010c6932
Fix panic when get editor config file ( #36241 ) ( #36247 )
...
Fix #36239
Backport #36241
2025-12-27 20:29:22 -08:00
Giteabot
b71e688634
Use the requested host for LFS links ( #36242 ) ( #36258 )
...
Backport #36242 by sollyu
Co-authored-by: sollyu <43105186+sollyu@users.noreply.github.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-12-27 07:23:18 +00:00
Giteabot
e147a8223a
Fix regression in writing authorized principals ( #36213 ) ( #36218 )
...
Backport #36213 by peterverraedt
Fixes : #36212
Signed-off-by: Peter Verraedt <peter.verraedt@kuleuven.be >
Co-authored-by: Peter Verraedt <peter.verraedt@kuleuven.be >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-12-20 01:57:26 +00:00
Lunny Xiao
9a7cfd8620
Add changelog for 1.25.3 ( #36182 )
v1.25.3
2025-12-18 09:36:38 -08:00
Lunny Xiao
79f4cd754b
Fix bugs when comparing and creating pull request ( #36144 )
...
Backport #36166
2025-12-17 16:17:33 -08:00
a1012112796
522cc25921
fix webAuthn insecure error view ( #36165 ) ( #36179 )
...
backport #36165
Signed-off-by: a1012112796 <1012112796@qq.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-12-17 08:49:29 -08:00
Giteabot
a99ccfdf74
Fix OrgAssignment opts ( #36174 ) ( #36177 )
...
Backport #36174 by @wxiaoguang
Fix #36084
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-12-17 18:56:58 +08:00
Giteabot
d448ab9ad4
Check user visibility when redirecting to a renamed user ( #36148 ) ( #36159 )
...
Backport #36148 by @lunny
Fix #34169
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-12-15 11:42:59 +02:00
wxiaoguang
c97b89a662
Fix bug when viewing the commit diff page with non-ANSI files ( #36149 ) ( #36150 )
...
Backport #36149
2025-12-14 01:14:06 +08:00
Giteabot
2dd8ef8368
Fix various bugs ( #36139 ) ( #36151 )
...
Backport #36139
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-12-13 13:31:49 +00:00
Giteabot
432e128074
Hide RSS icon when viewing a file not under a branch ( #36135 ) ( #36141 )
...
Backport #36135 by @lunny
Fix #35855
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-12-12 18:39:16 +01:00
silverwind
8d6442a43e
Fix SVG size calulation, only use style attribute ( #36133 ) ( #36134 )
...
Backport of https://github.com/go-gitea/gitea/pull/36133 , only the
bugfix part.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-12-12 09:40:27 +02:00
wxiaoguang
3d66e75a47
Make Golang correctly delete temp files during uploading ( #36128 ) ( #36129 )
...
Fix #36127
Partially backport #36128
And by the way partially backport #36017
2025-12-11 20:10:59 +01:00
Giteabot
e98d9bb93e
Improve math rendering ( #36124 ) ( #36125 )
...
Backport #36124 by @wxiaoguang
Fix #36108
Fix #36107
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-12-11 01:40:01 +08:00
Giteabot
a601c09826
Changed a small typo in an error message and code comments. ( #36117 ) ( #36123 )
...
Backport #36117 by @schinkelg
Changed a small typo in an English error message and code comments. Very
small PR.
Co-authored-by: Ger Schinkel <schinkelg@users.noreply.github.com >
2025-12-10 18:45:56 +08:00
Giteabot
b5f50ff63b
Add strikethrough button to markdown editor ( #36087 ) ( #36104 )
...
Backport #36087 by silverwind
Co-authored-by: silverwind <me@silverwind.io >
2025-12-08 09:07:27 +08:00
Giteabot
b1b35e934e
Fix the bug when ssh clone with redirect user or repository ( #36039 ) ( #36090 )
...
Backport #36039 by @lunny
Fix #36026
The redirect should be checked when original user/repo doesn't exist.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-12-04 20:06:14 -08:00
Giteabot
544450a212
fix some file icon ui ( #36078 ) ( #36088 )
...
Backport #36078 by @a1012112796
fix #36071
looks that's because if an svg in hiden env, it's color added by
`fill="url(#a)"` will become not usefull. by ai helping, I think moving
it out of page by position is a good solution. fell free creat a new
pull request if you have a better soluton. Thanks.
<img width="2198" height="1120" alt="image"
src="https://github.com/user-attachments/assets/bbf7c171-0b7f-412a-a1bc-aea3f1629636 "
/>
Signed-off-by: a1012112796 <1012112796@qq.com >
Co-authored-by: a1012112796 <1012112796@qq.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-12-04 19:39:35 +00:00
Giteabot
0ab447005d
Use Golang net/smtp instead of gomail's smtp to send email ( #36055 ) ( #36083 )
...
Backport #36055 by @lunny
Replace #36032
Fix #36030
This PR use `net/smtp` instead of gomail's smtp. Now
github.com/wneessen/go-mail will be used only for generating email
message body.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-12-04 18:58:01 +00:00
Giteabot
52902d4ece
Fix edit user email bug in API ( #36068 ) ( #36081 )
...
Backport #36068 by @lunny
Follow #36058 for API edit user bug when editing email.
- The Admin Edit User API includes a breaking change. Previously, when
updating a user with an email from an unallowed domain, the request
would succeed but return a warning in the response headers. Now, the
request will fail and return an error in the response body instead.
- Removed `AdminAddOrSetPrimaryEmailAddress` because it will not be used
any where.
Fix https://github.com/go-gitea/gitea/pull/36058#issuecomment-3600005186
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-12-04 18:25:52 +00:00
silverwind
0e91c8a068
Bump toolchain to go1.25.5, misc fixes ( #36082 )
...
Backport toolchain change into 1.25. This is needed because of the
govulncheck issue
[present](https://github.com/go-gitea/gitea/actions/runs/19921920886/job/57112316941 )
in the branch.
---------
Signed-off-by: silverwind <me@silverwind.io >
2025-12-04 17:57:59 +00:00
Giteabot
45cdc5d8fd
Fix bug when updating user email ( #36058 ) ( #36066 )
...
Backport #36058 by @lunny
Fix #20390
We should use `ReplacePrimaryEmailAddress` instead of
`AdminAddOrSetPrimaryEmailAddress` when modify user's email from admin
panel. And also we need a database transaction to keep deletion and
insertion succeed at the same time.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-12-02 02:57:21 +01:00
Zettat123
b276849cd8
Fix Actions pull_request.paths being triggered incorrectly by rebase ( #36045 ) ( #36054 )
...
Backport #36045
Partially fix #34710
The bug described in #34710 can be divided into two parts: `push.paths`
and `pull_request.paths`. This PR fixes the issue related to
`pull_request.paths`. The root cause is that the check for whether the
workflow can be triggered happens **before** updating the PR’s merge
base. This causes the file-change detection to use the old merge base.
Therefore, we need to update the merge base first and then check whether
the workflow can be triggered.
2025-11-29 05:45:30 +00:00
Giteabot
46d1d154e8
Fix error handling in mailer and wiki services ( #36041 ) ( #36053 )
...
Backport #36041 by @hamkido
- Updated error message in `incoming.go` to remove unnecessary wrapping
of the error.
- Corrected typo in error message in `wiki.go` for clarity.
Co-authored-by: hamkido <hamki.do2000@gmail.com >
2025-11-28 20:34:38 -08:00
Giteabot
f164e38e04
Fix incorrect viewed files counter if file has changed ( #36009 ) ( #36047 )
...
Backport #36009 by @bytedream
File changes since last review didn't decrease the viewed files counter
---
<img width="440" height="178" alt="image"
src="https://github.com/user-attachments/assets/da34fcf4-452f-4f71-8da2-97edbfc31fdd "
/>
Also reported here ->
https://github.com/go-gitea/gitea/issues/35803#issuecomment-3567850285
Co-authored-by: bytedream <me@bytedream.dev >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-11-28 11:33:37 +01:00
Giteabot
d4d338f1c1
Fix container registry error handling ( #36021 ) ( #36037 )
...
Backport #36021 by wxiaoguang
1. the `if` check in `handleCreateManifestResult` didn't handler err
correctly
2. add more error details for debugging
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-11-26 08:01:35 -08:00
Giteabot
f6895f632e
Add "site admin" back to profile menu ( #36010 ) ( #36013 )
...
Backport #36010 by @wxiaoguang
Fix #35904
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-11-23 14:07:44 -08:00
Lunny Xiao
eaa916a786
release notes for 1.25.2 ( #35986 )
...
~Wait #35988~
---------
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
v1.25.2
2025-11-22 11:05:00 -08:00
Lunny Xiao
91901c2a60
Allow empty commit when merging pull request with squash style ( #35989 ) ( #36003 )
2025-11-22 09:17:28 -08:00
Lunny Xiao
20cf4b7849
Fix various permission & login related bugs ( #36002 ) ( #36004 )
...
Backport #36002
Permission & protection check:
- Fix Delete Release permission check
- Fix Update Pull Request with rebase branch protection check
- Fix Issue Dependency permission check
- Fix Delete Comment History ID check
Information leaking:
- Show unified message for non-existing user and invalid password
- Fix #35984
- Don't expose release draft to non-writer users.
- Make API returns signature's email address instead of the user
profile's.
Auth & Login:
- Avoid GCM OAuth2 attempt when OAuth2 is disabled
- Fix #35510
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-11-22 12:33:48 +00:00