Lunny Xiao
ce272f2e53
Fix broken when no commits and default branch is not master ( #18424 )
...
* Fix broken when no commits and default branch is not master
* Fix IsEmpty check
* Improve codes
2022-01-28 14:48:18 +08:00
Lunny Xiao and zeripath
df57524c49
Fix restore without topic failure ( #18387 ) ( #18401 )
...
Co-authored-by: zeripath <art27@cantab.net >
2022-01-26 11:16:13 +08:00
Lunny Xiao
14de28b876
Fix release link broken ( #18253 )
...
* Fix release link broken
* Fix unsupported compare
* Fix another place
2022-01-14 02:49:25 +01:00
Lunny Xiao
37abfcaf8a
Fix update user bug ( #18251 )
2022-01-12 22:10:03 +08:00
b25a571bc9
Set HeadCommit when creating tags. ( #18116 ) ( #18173 )
...
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2022-01-04 02:22:10 +01:00
Lunny Xiao and KN4CK3R
7e084341fe
Fix wrong redirect on org labels ( #18128 ) ( #18134 )
...
* Fix wrong redirect on org labels (#18128 )
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
2021-12-30 17:08:42 +01:00
Lunny Xiao and techknowlogick
353d88a42e
Migrating wiki don't require token, so we should move it out of the require form ( #17645 ) ( #18104 )
...
* Migrating wiki don't require token, so we should move it out of the require form
* Fix lint
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2021-12-27 09:33:32 +08:00
Lunny Xiao
a17fce31a9
Revert "Fix delete u2f keys bug ( #18042 )" ( #18107 )
...
This reverts commit 91f5be889a .
2021-12-26 22:57:00 +08:00
Lunny Xiao
9086916eb7
Fix code search result hint on zh-CN ( #18053 )
2021-12-21 16:08:06 +08:00
91f5be889a
Fix delete u2f keys bug ( #18042 )
...
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2021-12-20 15:53:25 -05:00
Lunny Xiao
a15f0cb010
Fix rename notification bug ( #18011 )
2021-12-17 18:59:08 -05:00
9879e23c57
Changelog for v1.15.7 ( #17871 )
...
* Changelog for v1.15.7
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: 6543 <6543@obermui.de >
2021-12-02 21:16:33 +01:00
Lunny Xiao
56a3b50136
Check if column exist before rename if exist, just return with no error ( #17870 ) ( #17882 )
...
* Check if column exist before rename if exist, just return with no error
* Also check if errors column exist
* Add comment for migration
* Fix sqlite test
2021-12-02 18:12:11 +01:00
Lunny Xiao
d29a0fc3be
Fix user primary email changed ( #17840 )
2021-11-28 12:04:44 +01:00
Lunny Xiao and zeripath
714ecd9f1e
Fix close issue but time watcher still running ( #17761 )
...
* Fix bug
* Update models/issue_stopwatch.go
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2021-11-23 20:05:44 +08:00
Lunny Xiao
a08856606e
Return 400 but not 500 when request archive with wrong format ( #17691 ) ( #17700 )
...
* Return 400 but not 500 when request archive with wrong format (#17691 )
* Remove bundle because it's not in this version
2021-11-20 00:31:29 +08:00
6f3596e33c
Fix bug when project board get open issue number ( #17703 ) ( #17726 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2021-11-19 14:28:37 +08:00
Lunny Xiao
0305a73633
Fix bug when read mysql database max lifetime ( #17682 ) ( #17690 )
2021-11-17 21:28:41 +08:00
Lunny Xiao
1cec7f5ab5
Fix bug on detect issue/comment writer ( #17592 )
2021-11-09 16:00:40 +08:00
Lunny Xiao and zeripath
f25f7c592f
Fix zero created time bug on commit api ( #17547 )
...
Co-authored-by: zeripath <art27@cantab.net >
2021-11-05 14:15:44 +08:00
Lunny Xiao
251fdaaf41
Fix database keyword quote problem on migration v161 ( #17523 )
...
* support rerun migration v161
2021-11-03 06:33:38 +02:00
Lunny Xiao and zeripath
f572fb906f
fix email with + when active ( #17518 ) ( #17520 )
...
Co-authored-by: zeripath <art27@cantab.net >
2021-11-03 00:52:38 +02:00
Lunny Xiao
a87b813955
Fix heatmap test ( #17381 ) ( #17383 )
...
Backport #17381
2021-10-21 09:00:41 +01:00
Lunny Xiao
eb5e6f09eb
upgrade xorm to v1.2.5 ( #17177 ) ( #17188 )
2021-09-30 07:03:42 +01:00
Lunny Xiao and 6543
766272b154
Fix bug of get context user ( #17169 ) ( #17172 )
...
Co-authored-by: 6543 <6543@obermui.de >
2021-09-28 15:42:43 +02:00
Lunny Xiao and zeripath
fd35f56e87
Fix bug of migrate comments which only fetch one page ( #17055 ) ( #17058 )
...
* Fix bug of migrate comments which only fetch one page
* add next page to trace
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2021-09-15 14:01:54 -04:00
Lunny Xiao
1f8df5dd89
Upgrade xorm to v1.2.4 ( #17059 )
2021-09-15 23:27:46 +08:00
Lunny Xiao
07489d0405
Fix storage Iterate bug and Add storage doctor to delete garbage attachments ( #16971 ) ( #16977 )
...
* Fix storage Iterate bug and Add storage doctor to delete garbage attachments
* Close object when used
2021-09-07 19:39:05 +01:00
Lunny Xiao
8b132bdec6
Ignore review comment when ref commit is missed ( #16905 ) ( #16919 )
...
backport #16905
2021-09-02 11:51:32 +01:00
Lunny Xiao and zeripath
af1fd56d8a
Fix dump and restore respository ( #16698 ) ( #16898 )
...
* Fix dump and restore
* return different error message for get commit
* Fix missing delete release attachment when deleting repository
* Fix ci and add some comments
back port #16698
Co-authored-by: zeripath <art27@cantab.net >
2021-08-31 10:44:14 +01:00
Lunny Xiao
ab7e36e3a5
Fix branch pagination error ( #16805 ) ( #16816 )
...
Backport #16805
Fix #16801
Even if default branch is removed from the current page, but the total branches number should be still kept. So that the pagination calculation will be correct.
2021-08-25 11:11:54 +01:00
Lunny Xiao
b6508b872b
Upgrade levelqueue 0.4.1 ( #16696 ) ( #16700 )
2021-08-16 10:37:27 +03:00
Lunny Xiao
840d240a61
Upgrade levelqueue to v0.4.0 ( #16560 ) ( #16561 )
...
Fix #16546
2021-07-27 18:59:06 +02:00
89f680aa04
Fix issue pasted image missing if no release permission ( #16520 ) ( #16527 )
...
* Fix issue pasted image missing if no release permission
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: 6543 <6543@obermui.de >
2021-07-24 18:34:57 +02:00
efeb8e890b
Change the release cycle to match actual situations ( #16430 )
...
* Change the release cycle to match actual situations
* Update CONTRIBUTING.md
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Lauris BH <lauris@nix.lv >
2021-07-14 14:03:00 -04:00
Lunny Xiao
67f135ca5d
Fix archive error when rename repo or user ( #16399 )
...
Use repo id instead of full name to generate archive path
2021-07-13 14:16:31 +02:00
Lunny Xiao
64122fe105
Fix docs assets link ( #16337 )
2021-07-04 15:56:40 +02:00
Lunny Xiao
760af187ba
Upgrade xorm to v1.1.1 ( #16339 )
2021-07-04 15:10:46 +02:00
Lunny Xiao
0966349354
Make the github migration less rate limit waiting to get comment per page from repository but not per issue ( #16070 )
...
* Make the github migration less rate limit waiting to get comment per page from repository but not per issue
* Fix lint
* adjust Downloader interface
* Fix missed reviews
* Fix test
* Remove unused struct
2021-06-30 15:23:49 +08:00
Lunny Xiao
e3c626834b
Let package git depend on setting but not opposite ( #15241 )
...
* Let package git depend on setting but not opposite
* private some package variables
2021-06-26 13:28:55 +02:00
b223d36195
Rework repository archive ( #14723 )
...
* Use storage to store archive files
* Fix backend lint
* Add archiver table on database
* Finish archive download
* Fix test
* Add database migrations
* Add status for archiver
* Fix lint
* Add queue
* Add doctor to check and delete old archives
* Improve archive queue
* Fix tests
* improve archive storage
* Delete repo archives
* Add missing fixture
* fix fixture
* Fix fixture
* Fix test
* Fix archiver cleaning
* Fix bug
* Add docs for repository archive storage
* remove repo-archive configuration
* Fix test
* Fix test
* Fix lint
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2021-06-23 17:12:38 -04:00
Lunny Xiao and zeripath
f2babf3346
Add code block highlight to orgmode back ( #14222 )
...
Fix missed orgmode code block hightlight
Co-authored-by: zeripath <art27@cantab.net >
2021-06-23 22:45:47 +02:00
Lunny Xiao and 6543
5d113bdd19
Improve performance of dashboard list orgs ( #16099 )
...
* Improve performance of dashboard list orgs
* Fix wrong error description
* unexport queryUserOrgIDs method
* SimpleOrg -> MinimalOrg
* .
Co-authored-by: 6543 <6543@obermui.de >
2021-06-14 20:18:09 +08:00
0393a57511
Add a new table issue_index to store the max issue index so that issue could be deleted with no duplicated index ( #15599 )
...
* Add a new table issue_index to store the max issue index so that issue could be deleted with no duplicated index
* Fix pull index
* Add tests for concurrent creating issues
* Fix lint
* Fix tests
* Fix postgres test
* Add test for migration v180
* Rename wrong test file name
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: Lauris BH <lauris@nix.lv >
2021-06-14 10:22:55 +08:00
Lunny Xiao
f088dc4ea1
Remove utf8 option from installation page ( #16126 )
2021-06-10 16:52:37 +08:00
Lunny Xiao
179c727b4f
Fix bug on getIssueIDsByRepoID ( #16119 )
...
* Fix bug on getIssueIDsByRepoID
* Add test
2021-06-10 02:08:19 +02:00
Lunny Xiao and techknowlogick
5fef041079
Remove unnecessary goroutine ( #16080 )
...
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2021-06-09 15:52:55 -04:00
Lunny Xiao
fb3ffeb18d
Add sso.Group, context.Auth, context.APIAuth to allow auth special routes ( #16086 )
...
* Add sso.Group, context.Auth, context.APIAuth to allow auth special routes
* Remove unnecessary check
* Rename sso -> auth
* remove unused method of Auth interface
2021-06-09 19:53:16 +02:00
Lunny Xiao and 6543
da057996d5
Fix http path bug ( #16117 )
...
* Fix http path bug
* Add missed request
* add tests
Co-authored-by: 6543 <6543@obermui.de >
2021-06-09 14:53:12 +02:00
Lunny Xiao and 6543
1bfb0a24d8
Refactor routers directory ( #15800 )
...
* refactor routers directory
* move func used for web and api to common
* make corsHandler a function to prohibit side efects
* rm unused func
Co-authored-by: 6543 <6543@obermui.de >
2021-06-09 01:33:54 +02:00
Lunny Xiao
44f8c812ec
Fix doctor --run check-db-consistency --fix with label fix ( #16094 )
...
* Add doctor for wrong label and issue_label data
* Fix labels and issue labels check
* Remove unnecessary functions
2021-06-08 12:36:23 +08:00
Lunny Xiao
b9d611e917
Always store primary email address into email_address table and also the state ( #15956 )
...
* Always store primary email address into email_address table and also the state
* Add lower_email to not convert email to lower as what's added
* Fix fixture
* Fix tests
* Use BeforeInsert to save lower email
* Fix v180 migration
* fix tests
* Fix test
* Remove wrong submited codes
* Fix test
* Fix test
* Fix test
* Add test for v181 migration
* remove change user's email to lower
* Revert change on user's email column
* Fix lower email
* Fix test
* Fix test
2021-06-08 11:52:51 +08:00
Lunny Xiao and Lauris BH
0909695204
Merge all deleteBranch as one function and also fix bug when delete branch don't close related PRs ( #16067 )
...
* Fix bug when delete branch don't close related PRs
* Merge all deletebranch as one method
* Add missed branch.go
* fix comment
Co-authored-by: Lauris BH <lauris@nix.lv >
2021-06-07 22:52:59 +08:00
Lunny Xiao
b6762e2306
Fix regression of renderer ( #16091 )
...
* Fix regression of renderer
* Fix render setting load twice bug
2021-06-06 18:50:07 -04:00
Lunny Xiao
7979c3654e
Copy git data from disk when restore repository ( #16066 )
2021-06-04 16:14:20 +03:00
Lunny Xiao and zeripath
effad26c0e
Improve assets handler middleware ( #15961 )
...
* Use route to serve assets but not middleware
* Fix build error with bindata tag
* convert path to absolute
* fix build
* reduce function stack
* Add tests for assets
* Remove test for assets because they are not generated
* Use a http function to serve assets
* Still use middleware to serve assets then less middleware stack for assets
* Move serveContent to original position
* remove unnecessary blank line change
* Fix bug for /assets* requests
* clean code
Co-authored-by: zeripath <art27@cantab.net >
2021-05-30 18:25:11 +08:00
Lunny Xiao and zeripath
a9daebca22
Fix get tag when migration ( #16014 )
...
Co-authored-by: zeripath <art27@cantab.net >
2021-05-29 16:04:58 -04:00
Lunny Xiao
892e6561ff
Use a special name for update default branch on repository setting ( #15893 )
2021-05-16 14:24:47 -04:00
Lunny Xiao
0bf8d34630
improve empty notice ( #15890 )
2021-05-16 19:58:26 +08:00
Lunny Xiao
f6be429781
Upgrade xorm to v1.1.0 ( #15869 )
2021-05-14 20:17:06 +01:00
Lunny Xiao
b61092bcb0
Upgrade unrolled/render to v1.1.1 ( #15845 )
2021-05-12 18:47:05 +01:00
Lunny Xiao
143071ee41
don't record error when loading ref comment but ref comment id is zero ( #15820 )
2021-05-11 21:43:35 +01:00
d37a89ed05
don't record error when request a non-exist user ( #15819 )
...
* don't record error when request a non-exist user
* Update routers/repo/http.go
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2021-05-10 13:43:55 -04:00
Lunny Xiao
3656a2a672
Fix goth user infer bug ( #15821 )
2021-05-10 16:31:32 +01:00
Lunny Xiao
e5723d6556
Move restore repo to internal router and invoke from command to avoid open the same db file or queues files ( #15790 )
...
* Move restore repo to internal router and invoke from command to avoid open the same db file or queues files
* Follow @zeripath's review
* set no timeout for resotre repo private request
* make restore repo cancelable
2021-05-10 15:57:45 +08:00
Lunny Xiao and 6543
f5eb33c354
Fix orphaned objects deletion bug ( #15657 )
...
* Fix orphaned objects deletion bug
* extend test
Co-authored-by: 6543 <6543@obermui.de >
2021-04-30 20:08:46 +02:00
Lunny Xiao
d7dbe4feeb
Fix readme render bug ( #15649 )
2021-04-28 22:22:54 +02:00
Lunny Xiao
3d5bb3e6a3
fix webhook timeout bug ( #15613 )
...
* Also fix the potential problem in httplib
2021-04-25 21:48:12 +03:00
Lunny Xiao
1b3dbdba4e
Attachment support repository route ( #15580 )
2021-04-23 11:18:21 -04:00
Lunny Xiao
e7fc078891
Fix missing storage init ( #15589 )
2021-04-22 18:48:47 +02:00
Lunny Xiao and Andrew Thornton
2255afffad
Fix lfs management find ( #15537 )
...
Fix #15236
* Do not do 40byte conversion within ParseTreeLine
* Missed a to40ByteSHA
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: Andrew Thornton <art27@cantab.net >
2021-04-21 18:31:59 +02:00
Lunny Xiao and zeripath
9d99f6ab19
Refactor renders ( #15175 )
...
* Refactor renders
* Some performance optimization
* Fix comment
* Transform reader
* Fix csv test
* Fix test
* Fix tests
* Improve optimaziation
* Fix test
* Fix test
* Detect file encoding with reader
* Improve optimaziation
* reduce memory usage
* improve code
* fix build
* Fix test
* Fix for go1.15
* Fix render
* Fix comment
* Fix lint
* Fix test
* Don't use NormalEOF when unnecessary
* revert change on util.go
* Apply suggestions from code review
Co-authored-by: zeripath <art27@cantab.net >
* rename function
* Take NormalEOF back
Co-authored-by: zeripath <art27@cantab.net >
2021-04-19 18:25:08 -04:00
Lunny Xiao
ce8255fb7b
Change the chinese discuss link to discourse ( #15533 )
2021-04-18 19:12:16 +08:00
Lunny Xiao
a3c4c57b7c
Fix bug on commit graph ( #15517 )
2021-04-17 10:27:25 +01:00
Lunny Xiao and techknowlogick
c29620c05f
Add tests for clone from wiki ( #15513 )
...
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2021-04-16 17:39:21 -04:00
Lunny Xiao and Lauris BH
92c09a90f7
Fix bug clone wiki ( #15499 )
...
Fix #15494
Co-authored-by: Lauris BH <lauris@nix.lv >
2021-04-15 19:57:19 +01:00
Lunny Xiao
8202dd1311
Performance improvement for list pull requests ( #15447 )
2021-04-15 19:34:43 +02:00
Lunny Xiao
dc5a1d617d
Fix potential copy lfs records failure when fork a repository ( #15441 )
2021-04-14 22:15:28 +01:00
Lunny Xiao
424bd86c60
Display more repository type on admin repository management ( #15440 )
2021-04-14 15:33:22 +02:00
Lunny Xiao
66f0fd0959
Add NeedPostProcess for Parser interface to improve performance of csv render ( #15153 )
2021-04-13 15:06:31 +08:00
1fc1d60517
Fix delete nonexist oauth application 500 and prevent deadlock ( #15384 )
...
* Fix delete nonexist oauth application 500
* Fix test
* Close the session
Signed-off-by: Andrew Thornton <art27@cantab.net >
* Update integrations/api_oauth2_apps_test.go
* Fix more missed sess.Close
* Remove unnecessary blank line
Co-authored-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: 6543 <6543@obermui.de >
2021-04-10 16:49:10 -04:00
Lunny Xiao
fe3dcedd02
Fix xorm log stack level ( #15285 )
2021-04-05 08:41:22 +01:00
Lunny Xiao and Mike L
42efa14f51
Introduce esbuild on webpack ( #14578 )
...
* Vendor node mods as cache; fix esbuild/fomantic offline build
* Fix --exclude; use bsdtar for consistent globbing
* Fall back to GNU tar; forward-compatible for APT 2.0
* Avoid having extd. attrs with bsdtar
* Dependency and misc. optimizations
* Remove extra code after esbuild-loader update
Co-authored-by: Mike L <cl.jeremy@qq.com >
2021-04-02 02:11:04 +02:00
Lunny Xiao
f4e677edb1
Fix bug on avatar middleware ( #15124 )
2021-03-23 18:20:24 +01:00
Lunny Xiao
8567cba0d9
Implement delete release attachments and update release attachments' name ( #14130 )
...
* Implement delete release attachment
* Add attachments on release edit page
* Fix bug
* Finish del release attachments
* Fix frontend lint
* Fix tests
* Support edit release attachments
* Added tests
* Remove the unnecessary parameter isCreate from UpdateReleaseOrCreatReleaseFromTag
* Rename UpdateReleaseOrCreatReleaseFromTag to UpdateRelease
* Fix middle align
2021-03-23 00:09:51 +08:00
cf549500e0
Fix bug when upload on web ( #15042 )
...
* Fix bug when upload on web
* move into own function
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: zeripath <art27@cantab.net >
2021-03-19 23:49:29 +01:00
Lunny Xiao
5ccf8b6430
Fix issue search with db indexer because of mysql 5.7 sqlmode ( #14907 )
...
* Fix sqlmode bug
* distinct is necessary
2021-03-06 23:11:12 +08:00
Lunny Xiao and 6543
f4efa10f77
Hide resync all ssh principals when using internal ssh server ( #14904 )
...
Co-authored-by: 6543 <6543@obermui.de >
2021-03-06 15:32:08 +08:00
Lunny Xiao
9db590f2ee
Fix bug when combine label comments ( #14894 )
...
* Fix bug when combine label comments
* Added some code comments
* More comments
2021-03-05 16:17:32 +01:00
7525450232
When transfering repository and database transaction failed, rollback the renames ( #14864 )
...
Fix #14821
Co-authored-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: 6543 <6543@obermui.de >
2021-03-05 03:28:52 +01:00
Lunny Xiao
00fffdf5df
Make release-linux archtectures via envs ( #14184 )
2021-02-22 09:01:57 +02:00
e79dae29cc
Fix repo-restore bug with poster not replaced ( #14759 )
...
* Fix restore bug
* Fix restore bug
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: John Olheiser <john.olheiser@gmail.com >
Co-authored-by: 6543 <6543@obermui.de >
2021-02-22 11:57:41 +08:00
Lunny Xiao and 6543
bd9361384a
Fix go get ( #14758 )
...
* Fix go get
* Fix default branch
Co-authored-by: 6543 <6543@obermui.de >
2021-02-22 00:51:15 +08:00
Lunny Xiao and a1012112796
f3e64f677f
Remove unused commit ( #14741 )
...
* Remove unused commit
* a small nit
Signed-off-by: a1012112796 <1012112796@qq.com >
Co-authored-by: a1012112796 <1012112796@qq.com >
2021-02-20 15:02:39 +01:00
Lunny Xiao
430b3b7806
Fix misleading word on delete repositories' archives ( #14737 )
2021-02-19 01:24:51 -05:00
Lunny Xiao and Lauris BH
6362b24a59
Fix when a commit not found returned 500 ( #14732 )
...
Co-authored-by: Lauris BH <lauris@nix.lv >
2021-02-18 19:40:17 -05:00
Lunny Xiao and zeripath
ec06eb112c
Fix github download on migration ( #14703 )
...
* Fix github download on migration
* Use Context for Client
Co-authored-by: zeripath <art27@cantab.net >
2021-02-18 01:36:49 +01:00
Lunny Xiao
5e4fa7c703
Turn default hash password algorightm back to pbkdf2 from argon2 until we found a better one ( #14673 )
...
* Turn default hash password algorightm back to pbkdf2 from argon2 until we found a better one
* Add a warning on document
2021-02-13 18:03:29 +01:00
Lunny Xiao
c0c59a4c99
Improve the comment on comment type ( #14609 )
2021-02-10 04:57:30 +01:00
Lunny Xiao
240fea8c14
Fix rate limit bug when downloading assets on migrating from github ( #14564 )
2021-02-07 15:56:11 +00:00