e32030f9fa
Add migrations tests ( #34456 ) ( #34498 )
...
Fix #34455
Backport #34456
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-19 19:47:57 -07:00
3e7cb5b639
Add changelog for 1.23.8 ( #34430 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-12 11:47:43 -07:00
Lunny Xiao and GitHub
e67b004535
upgrade github v61 -> v71 to fix migrating bug ( #34389 )
...
backport #34385
2025-05-07 14:42:30 -04:00
5546b4279c
Explicitly not update indexes when sync database schemas ( #34281 ) ( #34295 )
...
Fix #34275
Backport #34281
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-28 16:30:42 +00:00
Lunny Xiao and GitHub
4e5aca62ee
Fix panic when comment is nil ( #34257 ) ( #34277 )
...
Fix #34254
Backport #34257
2025-04-24 18:28:02 -07:00
Lunny Xiao and GitHub
a01f56a61a
Update net package ( #34228 ) ( #34232 )
2025-04-18 09:45:59 +08:00
Lunny Xiao and GitHub
97171be1b4
Release note 1.23.7 ( #34117 )
2025-04-07 18:31:28 +00:00
f8f24d83cf
Hide activity contributors, recent commits and code frequrency left tabs if there is no code permission ( #34053 ) ( #34065 )
...
Backport #34053
When a team have no code unit permission of a repository, the member of
the team should not view activity contributors, recent commits and code
frequrency.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-30 18:30:55 +08:00
7f962a16c9
Pull request updates will also trigger code owners review requests ( #33744 ) ( #34045 )
...
Fix #33490
Backport #33744
It will only read the changed file on the pushed commits but not all the
files of this PR.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-28 17:24:31 +00:00
7758df4264
Add changelog for 1.23.6 ( #33975 ) ( #34000 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2025-03-24 13:08:00 -07:00
Lunny Xiao and GitHub
92f2d904f0
Upgrade golang net from 0.35.0 -> 0.36.0 #33795 ( #33796 )
...
Backport #33795
2025-03-04 15:39:08 -08:00
9c3511f0b1
Add changelog for 1.23.5 ( #33780 )
...
Wait tomorrow's Golang version.
Maybe wait backport of #33764 and #33744 , #33789
---------
Co-authored-by: metiftikci <metiftikci@hotmail.com >
2025-03-04 20:49:46 +00:00
Lunny Xiao and GitHub
730742230f
upgrade go-crypto from 1.1.4 to 1.1.6 ( #33745 ) ( #33754 )
2025-03-01 22:23:55 +08:00
de7026528b
Release of Gitea 1.23.4 ( #33621 )
...
---------
Co-authored-by: Zettat123 <zettat123@gmail.com >
2025-02-19 01:16:26 +00:00
Lunny Xiao and GitHub
ee3f5e8fac
fix: add missing locale ( #33641 ) ( #33642 )
2025-02-19 00:57:14 +00:00
da33b708af
Add a transaction to pickTask ( #33543 ) ( #33563 )
...
Backport #33543
In the old `pickTask`, when getting secrets or variables failed, the
task could get stuck in the `running` status (task status is `running`
but the runner did not fetch the task). To fix this issue, these steps
should be in one transaction.
---------
Co-authored-by: Zettat123 <zettat123@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-12 11:53:56 +08:00
7794ff0874
Enhance routers for the Actions runner operations ( #33549 ) ( #33555 )
...
Backport #33549
- Find the runner before deleting
- Move the main logic from `routers/web/repo/setting/runners.go` to
`routers/web/shared/actions/runners.go`.
Co-authored-by: Jason Song <i@wolfogre.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-11 15:25:56 +08:00
7c17d0a73e
Enhance routers for the Actions variable operations ( #33547 ) ( #33553 )
...
Backport #33547
Co-authored-by: Jason Song <i@wolfogre.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2025-02-11 03:52:09 +00:00
312565e3c2
Add changelog for 1.23.3 ( #33515 )
...
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2025-02-06 12:32:13 +08:00
Lunny Xiao and GitHub
58daaf66e8
Fix a bug caused by status webhook template ( #33512 )
...
Fix #33511
2025-02-06 08:48:22 +08:00
f076ada601
Add changelog for 1.23.2 ( #33494 )
...
Wait
- #33499
- #33493
- #33503
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-06 02:09:17 +08:00
92436b8b2a
add timetzdata build tag to binary releases ( #33463 ) ( #33503 )
...
Backport #33463
Co-authored-by: techknowlogick <techknowlogick@gitea.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-05 19:06:58 +08:00
Lunny Xiao and GitHub
200cb6140d
Fix commit status events ( #33320 ) ( #33493 )
...
Fix #32873
Fix #33201
~Fix #33244~
~Fix #33302~
depends on ~#33396~
backport #33320
2025-02-05 11:35:47 +08:00
Lunny Xiao and GitHub
23971a77a0
Add tests for webhook and fix some webhook bugs ( #33396 ) ( #33442 )
...
This PR created a mock webhook server in the tests and added integration
tests for generic webhooks.
It also fixes bugs in package webhooks and pull request comment
webhooks.
This also corrected an error on the package webhook. The previous
implementation uses a `User` struct as an organization, now it has been
corrected but it will not be consistent with the previous
implementation, some fields which not belong to the organization have
been removed.
Backport #33396
Backport part of #33337
2025-02-02 14:44:50 +08:00
Lunny Xiao and GitHub
fcbbc24cc4
Change log for 1.23.1 ( #33191 )
2025-01-10 16:06:45 +08:00
Lunny Xiao and GitHub
a330f42f01
Update changelog for v1.23.0 ( #33130 )
2025-01-09 09:24:34 +08:00
Lunny Xiao and GitHub
9899989ece
Add missing transaction when set merge ( #33113 )
...
backport from #33079
`SetMerged` should be in a database transaction otherwise it's possible
to have dirty data.
2025-01-06 18:21:14 +00:00
c8ffe777cf
Add 1.23.0-rc0 changelog ( #32863 )
...
Notice: some of pull requests haven't been added to the changelog
- Which have been backported to v1.22
-
https://github.com/go-gitea/gitea/pulls?q=sort%3Aupdated-desc+is%3Apr+milestone%3A1.23.0+is%3Amerged+label%3Abackport%2Fv1.22
- Which have skip-changelog
-
https://github.com/go-gitea/gitea/pulls?q=sort%3Aupdated-desc+is%3Apr+milestone%3A1.23.0+is%3Amerged+-label%3Abackport%2Fv1.22+label%3Askip-changelog
- Build and Testing
-
https://github.com/go-gitea/gitea/pulls?q=sort%3Aupdated-desc+is%3Apr+milestone%3A1.23.0+is%3Amerged+label%3Abackport%2Fv1.22+label%3Atype%2Ftesting
-
https://github.com/go-gitea/gitea/pulls?q=sort%3Aupdated-desc+is%3Apr+milestone%3A1.23.0+is%3Amerged+label%3Abackport%2Fv1.22+label%3Atopic%2Fbuild
- No `type` label marked may be missed, I need to check one by one, but
I believe those are not too many.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-17 12:00:55 +08:00
42090844ed
Fix bug on action list deleted branch ( #32848 )
...
Fix
https://github.com/go-gitea/gitea/issues/32761#issuecomment-2540946064
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-16 05:38:39 +08:00
Lunny Xiao and GitHub
9264811217
Remove translation to issue add time because the format is fixed should not be translated ( #32850 )
...
The input content should always be `1h 2m 3s` and will be the same on
different UI languages. So the translation is wrong.
2024-12-15 07:44:13 +00:00
Lunny Xiao and GitHub
887928e0a6
Add missing two sync feed for refs/pull ( #32815 )
...
Fowllow #32659
2024-12-13 04:22:39 +00:00
Lunny Xiao and GitHub
6370d2fb93
Detect whether action view branch was deleted ( #32764 )
...
Fix #32761

2024-12-12 19:28:23 +00:00
Lunny Xiao and GitHub
39a01016cd
Upgrade dependency crypto library ( #32750 )
2024-12-11 13:07:48 -05:00
Lunny Xiao and GitHub
fbe6d9dc6b
Use batch database operations instead of one by one to optimze api pulls ( #32680 )
...
Resolve #31492
The response time for the Pull Requests API has improved significantly,
dropping from over `2000ms` to about `350ms` on my local machine. It's
about `6` times faster.
A key area for further optimization lies in batch-fetching data for
`apiPullRequest.ChangedFiles, apiPullRequest.Additions, and
apiPullRequest.Deletions`.
Tests `TestAPIViewPulls` does exist and new tests added.
- This PR also fixes some bugs in `GetDiff` functions.
- This PR also fixes data inconsistent in test data. For a pull request,
the head branch's reference should be equal to the reference in
`pull/xxx/head`.
2024-12-11 05:15:06 +08:00
Lunny Xiao and GitHub
9d08d3fbf5
Fix compare page bug view as anonymous ( #32754 )
...
Fix a bug introduced from
https://github.com/go-gitea/gitea/pull/32403/files#diff-dc86301f15109eee38296d469630672193e0587ad1485fdd8f503bf4c789cf7eR692
2024-12-08 14:38:21 +08:00
Lunny Xiao and GitHub
cd7bf77b2f
Split issue/pull view router function as multiple smaller functions ( #32749 )
...
This PR splits issue/pull view function into multiple smaller functions.
It also removed duplicated branches load.
2024-12-08 04:39:35 +00:00
Lunny Xiao and GitHub
5a75160c92
Update changelog to add missed changelog ( #32734 )
2024-12-06 17:31:43 +00:00
Lunny Xiao and GitHub
b32f0cdfa0
Make wiki pages visit fast ( #32732 )
2024-12-06 07:39:50 +00:00
Lunny Xiao and GitHub
c5422fae9a
Fix fork page branch selection ( #32711 )
...
Fix #32709
2024-12-05 00:57:32 +00:00
Lunny Xiao and GitHub
5ab7aa700f
Use new mail package instead of an unmintained one ( #32682 )
...
Resolve #18664
2024-12-05 06:33:43 +08:00
Lunny Xiao and GitHub
e45ffc530f
Remove outdated code about fixture generation ( #32708 )
2024-12-04 07:59:28 +00:00
Lunny Xiao and GitHub
17053e953f
Fix delete branch perm checking ( #32654 )
2024-12-04 11:59:48 +08:00
Lunny Xiao and GitHub
829c34129c
Quick fix for license file name ( #32696 )
2024-12-03 07:59:07 -08:00
Lunny Xiao and GitHub
79d593a9be
Split mail sender sub package from mailer service package ( #32618 )
...
Move all mail sender related codes into a sub package of
services/mailer. Just move, no code change.
Then we just have dependencies on go-mail package in the new sub
package. We can use other package to replace it because it's
unmaintainable. ref #18664
2024-11-30 01:15:41 +00:00
Lunny Xiao and GitHub
1ed5f379b9
Move GetFeeds to service layer ( #32526 )
...
Move GetFeeds from models to service layer, no code change.
2024-11-29 17:53:49 +00:00
Lunny Xiao and GitHub
00f8090de4
Don't create action when syncing mirror pull refs ( #32659 )
...
Fix #27961
2024-11-28 07:43:38 +00:00
Lunny Xiao and GitHub
f62f68cbdd
Move team related functions to service layer ( #32537 )
...
There are still some functions under `models` after last big refactor
about `models`. This change will move all team related functions to
service layer with no code change.
2024-11-27 21:12:26 +00:00
Lunny Xiao and GitHub
f49d82309b
Introduce OrgList and add LoadTeams, optimaze Load teams for orgs ( #32543 )
2024-11-26 21:55:06 +00:00
Lunny Xiao and GitHub
703be6bf30
Add github compatible tarball download API endpoints ( #32572 )
...
Fix #29654
Fix #32481
2024-11-25 19:35:49 +00:00
Lunny Xiao and GitHub
c363bd06e9
Strict pagination check ( #32548 )
2024-11-25 09:56:50 +08:00
Lunny Xiao and GitHub
fe49cb0243
Fix get reviewers' bug ( #32415 )
...
This PR rewrites `GetReviewer` function and move it to service layer.
Reviewers should not be watchers, so that this PR removed all watchers
from reviewers. When the repository is under an organization, the pull
request unit read permission will be checked to resolve the bug of
#32394
Fix #32394
2024-11-22 10:44:48 -05:00
Lunny Xiao and GitHub
a175f9805c
Add line-through for deleted branch on pull request view page ( #32500 )
...
Base branch deleted

branch deleted comment

Head branch deleted

2024-11-21 17:04:18 +00:00
Lunny Xiao and GitHub
9bf821ae6c
Fix GetInactiveUsers ( #32540 )
...
Fix #31480
2024-11-21 04:55:32 +00:00
33850a83fe
Fix submodule parsing ( #32571 )
...
Fix #32568 , parse `.gitmodules` correctly
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-11-20 19:26:12 +00:00
Lunny Xiao and GitHub
0d5abd9b3e
Remove unnecessary code ( #32560 )
...
PushMirrors only be used in the repository setting page. So it should
not be loaded on every repository page.
2024-11-19 16:21:13 +00:00
Lunny Xiao and GitHub
896314c7a2
Fix some places which doesn't repsect org full name setting ( #32243 )
...
Partially fix #31345
2024-11-18 06:24:49 +00:00
696fbe6036
Refactor push mirror find and add check for updating push mirror ( #32539 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-11-18 05:59:04 +00:00
4f879a00df
Refactor find forks and fix possible bugs that weak permissions check ( #32528 )
...
- Move models/GetForks to services/FindForks
- Add doer as a parameter of FindForks to check permissions
- Slight performance optimization for get forks API with batch loading
of repository units
- Add tests for forking repository to organizations
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-11-18 03:06:25 +00:00
Lunny Xiao and GitHub
f122aaf9ff
Use better name for userinfo structure ( #32544 )
2024-11-18 10:41:59 +08:00
Lunny Xiao and GitHub
c3dedcffa7
Fix basic auth with webauthn ( #32531 )
2024-11-16 17:52:16 +00:00
Lunny Xiao and GitHub
e1b269e956
Remove transaction for archive download ( #32186 )
...
Since there is a status column in the database, the transaction is
unnecessary when downloading an archive. The transaction is blocking
database operations, especially with SQLite.
Replace #27563
2024-11-15 12:04:20 +08:00
Lunny Xiao and GitHub
4121f952d1
Fix oauth2 error handle not return immediately ( #32514 )
2024-11-15 02:13:01 +00:00
Lunny Xiao and GitHub
98d9a71ffe
Trim title before insert/update to database to match the size requirements of database ( #32498 )
...
Fix #32489
2024-11-14 07:19:14 +00:00
b4abb6deff
Reimplement GetUserOrgsList to make it simple and clear ( #32486 )
...
Reimplement GetUserOrgsList and also move some functions and test to
org_list file.
---------
Co-authored-by: Zettat123 <zettat123@gmail.com >
2024-11-14 05:31:47 +00:00
840ad7eefe
Disable Oauth check if oauth disabled ( #32368 )
...
Fix #32367
---------
Co-authored-by: Giteabot <teabot@gitea.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-11-12 21:33:35 +00:00
a1892cf7e3
Move some functions from issue.go to standalone files ( #32468 )
...
Just functions move, no code change.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-11-11 04:28:54 +00:00
Lunny Xiao and GitHub
331e878e81
Add new event commit status creation and webhook implementation ( #27151 )
...
This PR introduces a new event which is similar as Github's. When a new
commit status submitted, the event will be trigged. That means, now we
can receive all feedback from CI/CD system in webhooks or other notify
systems.
ref:
https://docs.github.com/en/webhooks/webhook-events-and-payloads#status
Fix #20749
2024-11-07 06:41:49 +00:00
Lunny Xiao and GitHub
276500c314
Move AddCollabrator and CreateRepositoryByExample to service layer ( #32419 )
...
- [x] Move `CreateRepositoryByExample` to service layer
- [x] Move `AddCollabrator` to service layer
- [x] Add a new parameter for `AddCollabrator` so that changing mode
immediately after that will become unnecessary.
2024-11-07 11:28:11 +08:00
Lunny Xiao and GitHub
913be9e8ac
Add new index for action to resolve the performance problem ( #32333 )
...
Fix #32224
2024-11-06 22:04:48 +00:00
24b83ff63e
Fix milestone deadline and date related problems ( #32339 )
...
Use zero instead of 9999-12-31 for deadline
Fix #32291
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2024-11-05 07:46:40 +00:00
Lunny Xiao and GitHub
1887c75c35
Only query team tables if repository is under org when getting assignees ( #32414 )
...
It's unnecessary to query the team table if the repository is not under
organization when getting assignees.
2024-11-05 07:13:52 +00:00
Lunny Xiao and GitHub
13a203828c
Fix created_unix for mirroring ( #32342 )
...
Fix #32233
2024-11-02 06:11:38 +00:00
feca8802b8
Fix clean tmp dir ( #32360 )
...
Try to fix #31792
Credit to @jeroenlaylo
Copied from
https://github.com/go-gitea/gitea/issues/31792#issuecomment-2311920520
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-10-29 18:27:03 +02:00
Lunny Xiao and GitHub
2abdbe88b5
Fix disable 2fa bug ( #32320 )
2024-10-23 06:41:00 +00:00
Lunny Xiao and GitHub
d46d34a655
Upgrade rollup to 4.24.0 ( #32312 )
2024-10-23 05:00:32 +00:00
Lunny Xiao and GitHub
500774277c
Upgrade vue to 3.5.12 ( #32311 )
2024-10-23 04:55:17 +00:00
Lunny Xiao and GitHub
a264c46fb0
Add warn log when deleting inactive users ( #32318 )
...
Add log for the problem #31480
2024-10-23 09:28:28 +08:00
Lunny Xiao and GitHub
9df5ddaf44
Only rename a user when they should receive a different name ( #32247 )
...
Fix #31996
2024-10-13 03:13:55 +00:00
Lunny Xiao and GitHub
aebb741c08
Use per package global lock for container uploads instead of memory lock ( #31860 )
...
This PR uses a per-package lock instead of a global lock for container
uploads. So that different packages can be uploaded simultaneously.
2024-10-11 07:37:49 +00:00
c2217670dd
Move admin routers from /admin to /-/admin ( #32189 )
...
Resolve #32181
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-10-10 04:56:49 +00:00
Lunny Xiao and GitHub
d6d3c96e65
Fix bug when a token is given public only ( #32204 )
2024-10-08 12:51:09 +03:00
Lunny Xiao and GitHub
fa35ace9fb
Fix bug when there are multiple triggers with workflow dispatch ( #32200 )
2024-10-07 03:50:38 +00:00
a989404e23
Fix javascript error when an anonymous user visiting migration page ( #32144 )
...
This PR fixes javascript errors when an anonymous user visits the
migration page.
It also makes task view checking more restrictive.
The router moved from `/user/task/{id}/status` to
`/username/reponame/-/migrate/status` because it's a migrate status.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-10-02 04:37:16 +00:00
Lunny Xiao and GitHub
3a4a1bffbe
Make oauth2 code clear. Move oauth2 provider code to their own packages/files ( #32148 )
...
Fix #30266
Replace #31533
2024-10-02 08:03:19 +08:00
Lunny Xiao and GitHub
3f9e360142
Don't join repository when loading action table data ( #32127 )
2024-09-26 04:50:30 +00:00
Lunny Xiao and GitHub
5a8568459d
Fix bug when deleting a migrated branch ( #32075 )
...
After migrating a repository with pull request, the branch is missed and
after the pull request merged, the branch cannot be deleted.
2024-09-24 07:42:08 +00:00
Lunny Xiao and GitHub
4947bec836
Include collaboration repositories on dashboard source/forks/mirrors list ( #31946 )
...
Fix #13489
In the original implementation, only `All` will display your owned and
collaborated repositories. For other filters like `Source`, `Mirrors`
and etc. will only display your owned repositories.
This PR removed the limitations. Now except `collbrations`, other
filters will always display your owned and collaborated repositories.
2024-09-24 07:12:06 +00:00
Lunny Xiao and GitHub
e2f365b55c
Display head branch more comfortable on pull request view ( #32000 )
...
This PR do some minor improvements for head branch display on pull
request view UI.
- [x] Remove the link if the head branch has been deleted with a
tooltip, so that users will not result in a 404 page
- [x] Display a label if this pull request is an agit based one.

2024-09-24 04:14:57 +00:00
Lunny Xiao and GitHub
2c6fa6c1e0
Fix template bug of pull request view ( #32072 )
...
Caused by #31924
2024-09-24 03:02:42 +00:00
Lunny Xiao and GitHub
6eb5950835
Allow set branch protection in an empty repository ( #32095 )
2024-09-24 02:06:28 +00:00
Lunny Xiao and GitHub
3f2d8f8730
Fix panic when cloning with wrong ssh format. ( #32076 )
2024-09-24 01:30:05 +00:00
Lunny Xiao and GitHub
9e0db1b646
Fix rename branch permission bug ( #32066 )
...
The previous implementation requires admin permission to rename branches
which should be write permission.
Fix #31993
2024-09-22 18:08:27 +00:00
Lunny Xiao and GitHub
a802508f88
Fix wrong last modify time ( #32102 )
2024-09-21 21:56:25 +00:00
Lunny Xiao and GitHub
5de41737a5
Fix upload maven pacakge parallelly ( #31851 )
...
Use globallock for maven package uploads.
Thanks @tlusser for the test code.
Depends on ~#31813~
2024-09-21 19:26:45 +00:00
Lunny Xiao and GitHub
8e2dd5d3dd
Use camo.Always instead of camo.Allways ( #32097 )
...
Fix #31575
https://gitea.com/gitea/docs/pulls/73
2024-09-21 12:50:54 +03:00
Lunny Xiao and GitHub
8cdf4e29c4
Fix CI ( #32062 )
2024-09-17 19:35:59 +00:00
Lunny Xiao and GitHub
3febcaa53b
Use a common message template instead of a special one ( #31878 )
2024-09-14 17:17:49 +00:00
Lunny Xiao and GitHub
d8f3498875
Upgrade cache to v0.2.1 ( #32003 )
...
Fix #31757
2024-09-07 17:12:37 +00:00
2da2000413
Use global lock instead of NewExclusivePool to allow distributed lock between multiple Gitea instances ( #31813 )
...
Replace #26486
Fix #19620
---------
Co-authored-by: Jason Song <i@wolfogre.com >
2024-09-06 10:12:41 +00:00
Lunny Xiao and GitHub
a5818470fe
Use forum.gitea.com instead of old URL ( #31989 )
2024-09-06 07:20:30 +00:00