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
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
79f4cd754b
Fix bugs when comparing and creating pull request ( #36144 )
...
Backport #36166
2025-12-17 16:17:33 -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
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
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
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
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
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
Giteabot
1b01d6de82
Fix container push tag overwriting ( #35936 ) ( #35954 )
...
Backport #35936 by wxiaoguang
Fix #35853
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-11-14 12:22:23 +08:00
Giteabot
d67cd622d0
Fix corrupted external render content ( #35946 ) ( #35950 )
...
Backport #35946 by wxiaoguang
Fix #35944
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-11-14 02:15:36 +00:00
Giteabot
327f2207dc
Make OAuth2 issuer configurable ( #35915 ) ( #35916 )
...
Backport #35915 by wxiaoguang
2025-11-10 16:12:25 +00:00
Giteabot
70ee6b9029
Fix conda null depend issue ( #35900 ) ( #35902 )
...
Backport #35900 by Luohaothu
This fixes issue #35895
Co-authored-by: Luohao Wang <luohaothu@live.com >
2025-11-08 16:37:00 +00:00
Lunny Xiao
6a55749359
Fix incorrect pull request counter ( #35819 ) ( #35841 )
...
Fix #35781 , #27472
Backport #35819
The PR will not correct the wrong numbers automatically.
There is a cron task `check_repo_stats` which will be run when Gitea
start or midnight. It will correct the numbers.
2025-11-04 01:49:47 +00:00
Giteabot
e95378329b
Fix clone mixed bug ( #35810 ) ( #35822 )
2025-11-02 10:20:27 -08:00
Giteabot
fddf6cd63f
Fix cli "Before" handling ( #35797 ) ( #35808 )
...
Backport #35797 by @wxiaoguang
Regression of #34973
Fix #35796
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-31 22:00:14 +01:00
Zettat123
04b6f90889
Fix actions rerun bug ( #35783 ) ( #35784 )
...
Backport #35783
Fix #35780 , fix #35782
Rerunning a job or a run is only allowed when the job is done and the
run is done.
Related PR: #34970
https://github.com/go-gitea/gitea/blob/98ff7d077376db1225f266095788c6bd9414288a/routers/web/repo/actions/view.go#L239
We don't need to check run status again in `rerunJob` because the run
status has been changed before `rerunJob`.
---
In fact, the bug described in the above issues will not occur on the
main branch. Because `getRunJobs` is called before updating the run.
https://github.com/go-gitea/gitea/blob/98ff7d077376db1225f266095788c6bd9414288a/routers/web/repo/actions/view.go#L425-L435
So the run status that `rerunJob` checks is the old status.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-30 09:31:42 +01:00
Giteabot
f85cd7aeb5
Fix actions schedule update issue ( #35767 ) ( #35774 )
...
Backport #35767 by @Zettat123
Fix #34472
Add integration tests for actions schedule update.
---------
Co-authored-by: Zettat123 <zettat123@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-29 18:51:16 +01:00
Lunny Xiao
123c8d2b81
Fix review request webhook bug ( #35339 ) ( #35596 )
...
Frontport from #35339
2025-10-24 19:10:50 +00:00
wxiaoguang
b2f2f8528a
Fix external render, make iframe render work ( #35727 , #35730 ) ( #35731 )
...
Backport #35727 and #35730
---------
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-23 16:07:17 +08:00
Giteabot
0925089b5e
Honor delete branch on merge repo setting when using merge API ( #35488 ) ( #35726 )
...
Backport #35488 by @kemzeb
Fix #35463 .
---------
Co-authored-by: Kemal Zebari <60799661+kemzeb@users.noreply.github.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-22 09:41:40 -07:00
Giteabot
cb338a2ba1
fix attachment file size limit in server backend ( #35519 ) ( #35720 )
...
Backport #35519 by @a1012112796
fix #35512
Co-authored-by: a1012112796 <1012112796@qq.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-21 18:01:59 +00:00
Giteabot
ac6d38e4b7
Refactor legacy code ( #35708 ) ( #35716 )
...
Backport #35708 by wxiaoguang
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-21 05:47:37 +00:00
ChristopherHX
46f695ac65
Fix workflow run event status while rerunning a failed job ( #35689 ) ( #35703 )
...
The event reported a completion status instead of requested, therefore
sent an email
Backport #35689
2025-10-19 10:49:20 -07:00
Giteabot
4af1d58c86
Fix various bugs ( #35684 ) ( #35696 )
...
Backport #35684 by wxiaoguang
2025-10-19 02:26:03 +08:00
Giteabot
f71df88a6b
Use LFS object size instead of blob size when viewing a LFS file ( #35679 ) ( #35680 )
...
Backport #35679 by surya-purohit
shows the main LFS filesize instead of the pointer filesize when viewing
a file
Co-authored-by: Surya Purohit <suryaprakash.sharma@sourcefuse.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-16 22:41:24 +08:00
wxiaoguang
53a2aaee35
Fix missing Close when error occurs and abused connection pool ( #35658 ) ( #35670 )
...
Backport #35658
2025-10-15 09:56:53 +00:00
Giteabot
b7bb0fa538
Fix diffpatch API endpoint ( #35610 ) ( #35613 )
...
Backport #35610 by @surya-purohit
Updates the swagger documentation for the `diffpatch` API endpoint.
The request body is corrected from the outdated `UpdateFileOptions` to
the current `ApplyDiffPatchOptions` to match the code implementation.
Closes [issue#35602](https://github.com/go-gitea/gitea/issues/35602 )
---------
Co-authored-by: Surya Purohit <suryaprakash.sharma@sourcefuse.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-10-10 03:28:40 +00:00
Giteabot
a99761d466
Use inputs context when parsing workflows ( #35590 ) ( #35595 )
...
Backport #35590 by @Zettat123
Depends on [gitea/act#143 ](https://gitea.com/gitea/act/pulls/143 )
The [`inputs`
context](https://docs.github.com/en/actions/reference/workflows-and-actions/contexts#inputs-context )
is used when parsing workflows so that `run-name` like `run-name: Deploy
to ${{ inputs.deploy_target }}` can be parsed correctly.
Co-authored-by: Zettat123 <zettat123@gmail.com >
2025-10-06 22:28:17 +00:00
Giteabot
006fe2a907
Add rebase push display wrong comments bug ( #35560 ) ( #35580 )
...
Backport #35560 by @lunny
Fix #35518
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-04 10:28:32 +02:00
Lunny Xiao
9332ff291b
Move git command to git/gitcmd ( #35483 )
...
The name cmd is already used in many places and may cause conflicts, so
I chose `gitcmd` instead to minimize potential naming conflicts.
2025-09-15 23:33:12 -07:00
wxiaoguang
4fe1066a17
Replace gobwas/glob package ( #35478 )
...
https://github.com/gobwas/glob is unmaintained and has bugs.
2025-09-13 18:01:00 +00:00
luzpaz
688abac5ca
Fix various typos in codebase ( #35480 )
2025-09-13 10:34:43 -04:00
silverwind
9bb08aa822
Update image name in integration README ( #35465 )
...
Followup to https://github.com/go-gitea/gitea/pull/35402 .
2025-09-11 17:56:43 +02:00
koalajoe23
2802f96e97
check user and repo for redirects when using git via SSH transport ( #35416 )
...
fixes #30565
When using git with a gitea hosted repository, the HTTP-Transport did
honor the user and repository redirects, which are created when renaming
a user or repo and also when transferring ownership of a repo to a
different organization. This is extremely helpful, as repo URLs remain
stable and do not have to be migrated on each client's worktree and
other places, e.g. CI at once.
The SSH transport - which I favor - did not know of these redirections
and I implemented a lookup during the `serv` command.
2025-09-09 20:13:41 +00:00
Lunny Xiao
e4cb48a7e0
Fix bug when issue disabled, pull request number in the commit message cannot be redirected ( #35420 )
...
Fix #35419
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-09-09 12:14:06 -07:00
Akhan Zhakiyanov
87362b4dc1
fix: add author.name field to Swift Package Registry API response ( #35410 )
...
Fixes #35159
Swift Package Manager expects an 'author.name' field in package
metadata, but Gitea was only providing schema.org format fields
(givenName, middleName, familyName). This caused SPM to fail with
keyNotFound error when fetching package metadata.
Changes:
- Add 'name' field to Person struct (inherited from
https://schema.org/Thing )
- Populate 'name' field in API response using existing String() method
- Maintains backward compatibility with existing schema.org fields
- Provides both formats for maximum compatibility
The fix ensures Swift Package Manager can successfully resolve packages
while preserving full schema.org compliance.
2025-09-07 18:24:25 +00:00
Michal Suchánek
ea96ff6b0c
Rename UpdateBranch API to RenameBranch API ( #35374 )
...
Discussed in #35368 , originally implemented in #32433
2025-09-01 16:12:05 +00:00
wxiaoguang
0cbaa0b662
Remove incorrect "db.DefaultContext" usages ( #35366 )
2025-08-28 03:52:43 +00:00
wxiaoguang
60246730b5
Remove wrong "git.DefaultContext" ( #35364 )
2025-08-27 16:31:21 +00:00
wxiaoguang
e837c998b7
Fix context usages ( #35348 )
2025-08-27 11:00:01 +00:00
NorthRealm
c7b99c8cc7
Prevent duplicate actions email ( #35215 )
...
Trying to prevent duplicate action emails by adding an extra check on job status.
---------
Signed-off-by: NorthRealm <155140859+NorthRealm@users.noreply.github.com >
Co-authored-by: Christopher Homberger <christopher.homberger@web.de >
2025-08-24 09:30:56 -07:00
6543
ef613ee760
Add has_code to repository REST API ( #35214 )
...
similar to how we can enable/disable repos or issues on a repo add the
code unit as option to it.
affects
```
PATCH /repos/{owner}/{repo}
```
---
*Sponsored by Kithara Software GmbH*
2025-08-08 18:18:30 +02:00
NorthRealm
becd15f743
Fix Actions API ( #35204 )
...
Fixed a nil pointer error.
Related #34337
2025-08-04 23:41:30 -04:00
Lunny Xiao
920d62c0a7
Add webhook test for push event ( #34442 )
...
Confirm #9243 has been fixed.
2025-08-05 02:05:13 +00:00
6543
de570b7dde
Remove unneeded if statements for update repo API ( #35140 )
...
just try to make the update func more redable and be more KISS
---
_Sponsored by Kithara Software GmbH_
2025-08-05 01:38:35 +00:00
Lunny Xiao
be2a6b4414
Fix bug when review pull request commits ( #35192 )
...
The commit range in the UI follows a half-open, half-closed convention:
(,]. When reviewing a range of commits, the beforeCommitID should be set
to the commit immediately preceding the first selected commit. For
single-commit reviews, we must identify and use the previous commit of
that specific commit.
The endpoint ViewPullFilesStartingFromCommit is currently unused and can
be safely removed.
Fix #35157
Replace #35184
Partially extract from #35077
2025-08-03 10:23:10 -07:00
wxiaoguang
85b5877bb0
Fix various bugs ( #35177 )
...
* Fix #35144
* Fix #35117
* Fix https://github.com/go-gitea/gitea/issues/35054#issuecomment-3131793977
* Fix #35136
2025-07-30 07:08:59 +00:00