Lunny Xiao and GitHub
ce087c58ef
Remove settting dependency on modules/session ( #7237 )
...
* remove settting dependency on modules/session
* fix fmt
* fix tests
* fix lint
2019-07-17 09:04:37 +08:00
Lunny Xiao and techknowlogick
d2958d9f46
Move status table to cron package ( #7370 )
2019-07-15 20:13:03 -04:00
Lunny Xiao and GitHub
2739a0be98
only create opened pull request when migrating from github ( #7463 )
2019-07-14 17:16:15 +08:00
Lunny Xiao and GitHub
d95237b561
add notification placeholder ( #7409 )
2019-07-12 16:55:46 +08:00
Lunny Xiao and GitHub
b84a251fca
upgrade macaron/captcha to fix random error problem ( #7407 )
2019-07-10 13:26:42 +08:00
Lunny Xiao and GitHub
f03e5b7c3e
fix vendor ( #7394 )
2019-07-09 14:27:02 +08:00
Lunny Xiao and Lauris BH
427a161c67
Fix migration tests since #7 fixed ( #7375 )
...
* fix migration tests since #7 fixed
* fix test time
2019-07-08 13:10:56 +03:00
Lunny Xiao and techknowlogick
87404d7c0b
Use vendors when go generate ( #7340 )
...
* use vendors when go generate
* update docs about golang minimal requirement from 1.9 to 1.11
* fix build
2019-07-06 23:00:41 -04:00
Lunny Xiao and techknowlogick
337d6915ff
Detect migrating batch size ( #7353 )
...
* Make migrating batch size as configurable
* detect different table batch insert size and remove config item
* remove unrelated changes
2019-07-06 15:24:50 -04:00
Lunny Xiao and zeripath
b5aa7f7ceb
fix api route ( #7346 )
2019-07-03 06:31:29 +01:00
Lunny Xiao and zeripath
e728b55812
Fix bug conflict between SyncReleasesWithTags and InsertReleases ( #7337 )
...
* fix bug conflict between SyncReleasesWithTags and InsertReleases
* fix tests
* fix fmt
2019-07-01 22:17:16 +01:00
Lunny Xiao and techknowlogick
1772c6b94d
fix pull view ui merge section ( #7335 )
...
* fix pull view ui merge section
* fix tests
* fix tests
2019-07-01 00:08:43 -04:00
Lunny Xiao and zeripath
ff85dd3e12
Add commit statuses reports on pull request view ( #6845 )
...
* Add commit statuses reports on pull view
* Add some translations
* improve the UI
* fix fmt
* fix tests
* add a new test git repo to fix tests
* fix bug when headRepo or headBranch missing
* fix tests
* fix tests
* fix consistency
* fix tests
* fix tests
* change the test repo
* fix tests
* fix tests
* fix migration
* keep db size consistency
* fix translation
* change commit hash status table unique index
* remove unused table
* use char instead varchar
* make hashCommitStatusContext private
* split merge section with status check on pull view ui
* fix tests; fix arc-green theme on pull ui
2019-06-30 08:57:59 +01:00
Lunny Xiao and GitHub
462284e2f5
Use batch insert on migrating repository to make the process faster ( #7050 )
...
* Use batch insert on migrating repository to make the process faster
* fix lint
* fix tests
* fix comments
2019-06-29 21:38:22 +08:00
Lunny Xiao and zeripath
d741316aae
add commitgraph support global default true when git version >= 2.18 ( #7313 )
2019-06-29 12:46:25 +01:00
Lunny Xiao and techknowlogick
edc94c7041
Monitor all git commands; move blame to git package and replace git as a variable ( #6864 )
...
* monitor all git commands; move blame to git package and replace git as a variable
* use git command but not other commands
* fix build
* move exec.Command to git.NewCommand
* fix fmt
* remove unrelated changes
* remove unrelated changes
* refactor IsEmpty and add tests
* fix tests
* fix tests
* fix tests
* fix tests
* remove gitLogger
* fix fmt
* fix isEmpty
* fix lint
* fix tests
2019-06-26 14:15:26 -04:00
Lunny Xiao and GitHub
161e12e157
Shadow the password on cache and session config on admin panel ( #7300 )
...
* shadow the password on cache and session config on admin panel
* add shadow password of mysql/postgres/couchbase
* fix log import
2019-06-27 00:12:38 +08:00
Lunny Xiao and GitHub
42729b7562
fix API link header ( #7298 )
2019-06-26 16:51:32 +08:00
Lunny Xiao and Lauris BH
aa7c34cf86
Fix error log when loading issues caused by a xorm bug ( #7271 )
...
* fix error log when loading issues caused by a xorm bug
* upgrade packages
* fix fmt
* fix Consistency
* fix tests
2019-06-23 18:22:43 +03:00
Lunny Xiao and Lauris BH
8ec659722d
Only check and config git on web subcommand but not others ( #7236 )
...
* only check and config git on web subcommand but not others
* add Init in git tests
2019-06-19 19:53:37 +03:00
Lunny Xiao and techknowlogick
392fe6c943
Fix migration panic when Head.User is not exist ( #7226 )
...
* fix migration panic when Head.User is not exist
* fix test
2019-06-18 12:15:39 -04:00
Lunny Xiao and zeripath
1e8a616426
show lfs config on admin panel ( #7220 )
2019-06-16 19:24:49 +01:00
Lunny Xiao and GitHub
d8168b356d
Add missing description of label on API ( #7159 )
...
* add missing description of label on API
* fix comment head
* fix swagger
2019-06-16 20:39:52 +08:00
Lunny Xiao and zeripath
0323122fd7
fix duplicated file on pull request conflicted files ( #7211 )
2019-06-15 15:22:26 +01:00
Lunny Xiao and techknowlogick
5832f8d90d
Fix database lock when use random repository fallback image ( #7166 )
...
* fix database lock when use random repository fallback image
* remove unused function
2019-06-11 20:12:13 -04:00
Lunny Xiao and GitHub
74690f6451
fix pusher name via ssh push ( #7167 )
2019-06-11 09:13:24 +08:00
Lunny Xiao and techknowlogick
b3b468444b
Revert "make modules/structs as a spereate go mod ( #7127 )" ( #7175 )
...
This reverts commit 835b53fc25 .
2019-06-10 15:55:58 -04:00
Lunny Xiao and GitHub
835b53fc25
make modules/structs as a spereate go mod ( #7127 )
2019-06-10 23:20:49 +08:00
Lunny Xiao and GitHub
7162fbf3d6
if milestone id is zero don't get it from database ( #7169 )
2019-06-10 22:16:02 +08:00
Lunny Xiao and GitHub
d93e6232e8
Move PushUpdate dependency from models to repofiles ( #6763 )
...
* remove push_update
* move models.PushUpdate to repofiles.PushUpdate
2019-06-10 19:35:13 +08:00
23a2ee3510
Add command to convert mysql database from utf8 to utf8mb4 ( #7144 )
...
* add command to convert mysql database from utf8 to utf8mb4
* Update cmd/convert.go
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com >
* Update cmd/convert.go
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com >
* Update cmd/convert.go
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com >
* Update models/convert.go
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com >
* Update models/convert.go
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com >
* Update cmd/convert.go
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com >
* Update cmd/convert.go
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com >
2019-06-08 21:53:45 +08:00
Lunny Xiao and GitHub
6fb31a5461
fix GCArgs load from ini ( #7156 )
2019-06-08 19:47:46 +08:00
Lunny Xiao and Lauris BH
83b90e4199
Use vfsgen instead of go-bindata ( #7080 )
...
* use vfsgen instead of go-bindata
* fix templates
* fix fmt
* vendor vsfgen
2019-06-03 00:43:47 +03:00
Lunny Xiao and zeripath
8a343dda39
update go git from v4.10.0 to v4.11.0 ( #7096 )
2019-05-31 20:34:46 +01:00
Lunny Xiao and techknowlogick
7d12ec2abd
improve github downloader on migrations ( #7049 )
...
* improve github downloader on migrations
* fix tests
* fix uppercase function parameters
2019-05-30 16:26:57 -04:00
Lunny Xiao and techknowlogick
d67fd69474
fix charset was not saved after installation finished ( #7048 )
2019-05-26 13:36:33 -04:00
Lunny Xiao and techknowlogick
f3d87da3e2
Revert "Bugfix: Align comment label and actions to the right ( #7024 )" ( #7055 )
...
This reverts commit 0c432d26fe .
2019-05-26 12:55:53 -04:00
Lunny Xiao and Lauris BH
c2f3938a58
fix possbile mysql invalid connnection error ( #7051 )
2019-05-26 16:28:33 +03:00
Lunny Xiao and GitHub
063fa99159
when git version >= 2.18, git command could run with git wire protocol version 2 param if enabled ( #7047 )
2019-05-26 17:50:06 +08:00
Lunny Xiao and zeripath
355ab0c62c
Fix wrong init dependency on markup extensions ( #7038 )
...
* fix wrong init dependency on markup extensions
2019-05-25 18:15:39 +01:00
Lunny Xiao and techknowlogick
d5a98a2969
Add support of utf8mb4 for mysql ( #6992 )
2019-05-24 00:15:26 -04:00
Lunny Xiao and GitHub
1f84970de0
Make webhook http connections resuable ( #6976 )
...
* make http connections resuable
* add error handler
* fix lint
2019-05-21 15:20:17 +08:00
Lunny Xiao and Lauris BH
02542a2c15
fix missing repo description when migrating ( #7000 )
2019-05-20 15:43:43 +03:00
Lunny Xiao and GitHub
c385dcc26b
Fix index produces problem when issues/pulls deleted ( #6973 )
...
* fix index produces problem when issues/pulls deleted
* fix tests
* fix tests
* fix tests
2019-05-18 10:37:49 +08:00
Lunny Xiao and GitHub
710245e81e
Refactor models.NewRepoContext to extract git related codes to modules/git ( #6941 )
...
* refactor models.NewRepoContext to extract git related codes to modules/git
* fix imports
* refactor
2019-05-15 09:57:00 +08:00
Lunny Xiao and techknowlogick
24a536d145
Remove macaron dependent on models ( #6940 )
2019-05-14 09:52:18 -04:00
Lunny Xiao and Lauris BH
8b36f01f45
Move xorm logger bridge from log to models so that log module could be a standalone package ( #6944 )
...
* move xorm logger bridge from log to models so that log module could be a standalone package
* fix tests
* save logger on xorm log bridge
2019-05-14 10:04:07 +03:00
Lunny Xiao and techknowlogick
6123840745
Remove macaron dependent on modules/log ( #6933 )
2019-05-13 22:55:52 -04:00
Lunny Xiao and Lauris BH
e63274ee09
remove macaron dependent on models/mail.go ( #6931 )
2019-05-14 01:53:54 +03:00
Lunny Xiao and GitHub
34eee25bd4
Move sdk structs to modules/structs ( #6905 )
...
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
2019-05-11 18:21:34 +08:00
Lunny Xiao and Lauris BH
13cd28602e
Change the color of issues/pulls list, merged is purple and closed is red ( #6874 )
2019-05-08 10:50:15 +03:00
Lunny Xiao and techknowlogick
9f18b23129
Fix 404 when send pull request some situation ( #6871 )
2019-05-07 13:20:23 -04:00
Lunny Xiao and GitHub
08069dc465
Improve migrations to support migrating milestones/labels/issues/comments/pullrequests ( #6290 )
...
* add migrations
* fix package dependency
* fix lints
* implements migrations except pull requests
* add releases
* migrating releases
* fix bug
* fix lint
* fix migrate releases
* fix tests
* add rollback
* pull request migtations
* fix import
* fix go module vendor
* add tests for upload to gitea
* more migrate options
* fix swagger-check
* fix misspell
* add options on migration UI
* fix log error
* improve UI options on migrating
* add support for username password when migrating from github
* fix tests
* remove comments and fix migrate limitation
* improve error handles
* migrate API will also support migrate milestones/labels/issues/pulls/releases
* fix tests and remove unused codes
* add DownloaderFactory and docs about how to create a new Downloader
* fix misspell
* fix migration docs
* Add hints about migrate options on migration page
* fix tests
2019-05-07 09:12:51 +08:00
Lunny Xiao and Lauris BH
01ebd52a1f
fix config ui error about cache ttl ( #6861 )
2019-05-06 17:35:11 +03:00
Lunny Xiao and GitHub
2382f1b057
fix 500 when reviewer is deleted with integration tests ( #6856 )
2019-05-06 20:09:31 +08:00
Lunny Xiao and techknowlogick
5be1780045
update github.com/mcuadros/go-version to v0.0.0-20190308113854-92cdf37c5b75 ( #6815 )
2019-05-01 11:44:16 -04:00
Lunny Xiao and GitHub
4c34bc111c
fix pulls broken when fork repository deleted ( #6754 )
...
* fix pulls broken when fork repository deleted
* fix lint
2019-04-26 11:03:39 +08:00
Lunny Xiao and Lauris BH
199faadea3
Fix org visibility bug when git cloning ( #6743 )
...
* fix org visibility bug
* fix permission check
* add integration tests
* fix tests
* change test user name for easier maintainance and fix test
* fix test git repo name
2019-04-25 21:59:10 +03:00
Lunny Xiao and GitHub
e8f4c7733a
fix missing return ( #6751 )
2019-04-25 19:30:38 +08:00
Lunny Xiao and GitHub
65b3f513c3
fix new team 500 ( #6749 )
...
* fix new team 500
* Update models/unit.go
Co-Authored-By: lunny <xiaolunwen@gmail.com >
2019-04-25 17:00:34 +08:00
Lunny Xiao and zeripath
ff03b2f606
Fix: Sort repos on org home page with non-admin login ( #6741 )
2019-04-24 19:20:22 +01:00
Lunny Xiao and techknowlogick
1d8b521ae1
Add tests for Org API ( #6731 )
2019-04-24 12:16:14 -04:00
Lunny Xiao and techknowlogick
59be704efb
Fix team members API ( #6714 )
2019-04-24 01:32:35 -04:00
Lunny Xiao and techknowlogick
dd1acd7ce4
Comments list performance optimization ( #5305 )
2019-04-18 01:00:03 -04:00
Lunny Xiao and techknowlogick
1b7dffc3a3
fix bug user search API pagesize didn't obey ExplorePagingNum ( #6579 )
2019-04-11 19:29:41 -04:00
Lunny Xiao and zeripath
2f53b5f88c
fix mail notification when close/reopen issue ( #6581 )
2019-04-11 22:59:01 +01:00
Lunny Xiao and Lauris BH
e7d7dcb090
Issue indexer queue redis support ( #6218 )
...
* add redis queue
* finished indexer redis queue
* add redis vendor
* fix vet
* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md
Co-Authored-By: lunny <xiaolunwen@gmail.com >
* switch to go mod
* Update required changes for new logging func signatures
2019-04-08 12:05:15 +03:00
Lunny Xiao and techknowlogick
09fb036ad6
fix upload attachments ( #6481 )
...
* fix upload attachments
* add migration for new column uploader_id on table attachment
* fix imports sequence
2019-04-02 15:25:05 -04:00
Lunny Xiao and techknowlogick
0a8e63c682
add make version on gitea version ( #6485 )
2019-04-02 12:10:11 -04:00
Lunny Xiao and Lauris BH
ef2a343e27
fix bug when user login and want to resend register confirmation email ( #6482 )
2019-04-02 08:44:33 +03:00
Lunny Xiao and GitHub
d578b71d61
move code.gitea.io/git to code.gitea.io/gitea/modules/git ( #6364 )
...
* move code.gitea.io/git to code.gitea.io/gitea/modules/git
* fix imports
* fix fmt
* fix misspell
* remove wrong tests data
* fix unit tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* enable Debug to trace the failure tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* comment commit count tests since git clone depth is 50
* fix tests
* update from code.gitea.io/git
* revert change to makefile
2019-03-27 17:33:00 +08:00
Lunny Xiao and techknowlogick
03e4db40cc
improve zh-cn comparison docs ( #6336 )
2019-03-21 22:38:23 -04:00
Lunny Xiao and techknowlogick
91dcccf72d
fix dump table name error and add some test for dump database ( #6394 )
2019-03-20 21:38:54 -04:00
Lunny Xiao and zeripath
3bb123e90e
fix migrations 82 to ignore unsynced tags between database and git data and missing is_archived on repository table ( #6387 )
2019-03-20 16:37:50 +00:00
Lunny Xiao and techknowlogick
ce646fd04b
fix bug manifest.json will not request with cookie so that session will created every request ( #6372 )
2019-03-19 17:02:18 -04:00
Lunny Xiao and techknowlogick
4a6b011b15
Add test environment for Mysql8 ( #5234 )
2019-03-17 15:17:18 -04:00
Lunny Xiao and GitHub
379289639e
split setting.go to multiple files ( #6154 )
...
* split setting.go to multiple files
* fix lint
2019-03-16 11:12:44 +08:00
Lunny Xiao and GitHub
4334fe754e
update git vendor to fix wrong release commit id and add migrations ( #6224 )
...
* update git vendor to fix wrong release commit id and add migrations
* fix count
* fix migration release
* fix tests
2019-03-11 11:44:58 +08:00
Lunny Xiao and GitHub
c812ba7f87
fix display dashboard even if require to change password ( #6214 )
...
* fix display dashboard even if require to change password
* fix comments
2019-02-28 16:01:42 +08:00
Lunny Xiao and techknowlogick
7afe81f28e
fix bug when migrate repository 500 when repo is existed ( #6188 )
...
* fix bug when migrate repository 500 when repo is existed
* use 409 but not 422 for error status code when not exist
* translation fix
2019-02-26 09:28:56 -05:00
Lunny Xiao and techknowlogick
15ecc08475
fix bug when set indexer as db and add tests ( #6173 )
2019-02-24 11:16:20 -05:00
Lunny Xiao and zeripath
4a2fbbeb10
fix bug user could change private repository to public when force private enabled. ( #6156 )
2019-02-22 21:56:05 +00:00
Lunny Xiao and techknowlogick
134e55510e
fix bug when update owner team then visit team's repo return 404 ( #6119 )
2019-02-22 11:14:45 -05:00
Lunny Xiao and GitHub
477ef46251
Add more tests and docs for issue indexer, add db indexer type for searching from database ( #6144 )
...
* add more tests and docs for issue indexer, add db indexer type for searching from database
* fix typo
* fix typo
* fix lint
* improve docs
2019-02-21 13:01:28 +08:00
Lunny Xiao and GitHub
0751153613
refactor issue indexer, add some testing and fix a bug ( #6131 )
...
* refactor issue indexer, add some testing and fix a bug
* fix error copyright year on comment header
* issues indexer package import keep consistent
2019-02-21 08:54:05 +08:00
Lunny Xiao and Lauris BH
987a521e2f
remove unused file ( #6121 )
2019-02-19 17:22:42 +02:00
Lunny Xiao and techknowlogick
830ae61456
Refactor issue indexer ( #5363 )
2019-02-19 09:39:39 -05:00
Lunny Xiao and Lauris BH
f5fa22a499
Fix prohibit login check on authorization ( #6106 )
...
* fix bug prohibit login not applied on dashboard
* fix tests
* fix bug user status leak
* fix typo
* return after render
2019-02-19 09:19:28 +02:00
Lunny Xiao and techknowlogick
a380cfd8e0
Update bleve dependency to latest master revision ( #6100 )
...
* update bleve to master b17287a86f6cac923a5d886e10618df994eeb54b6724eac2e3b8dde89cfbe3a2
* remove unused pkg from dep file
* change bleve from master to recent revision
2019-02-17 19:50:26 -05:00
Lunny Xiao and GitHub
820e28c904
Split setting.go as multiple files ( #6014 )
...
* split setting.go as multiple files
* fix comments
2019-02-10 09:37:37 +08:00
Lunny Xiao and zeripath
9e8cc3b18d
add default time out for git operations ( #6015 )
2019-02-09 22:44:24 +00:00
Lunny Xiao and zeripath
01bbf5ea69
Add API to list tags ( #5850 )
...
* Add API to list tags
* update dependency gitea sdk vendor
* fix swagger generation
* fix swagger
* add tests
* update code.gitea.io/git vendor
2019-02-07 12:00:52 +00:00
Lunny Xiao and techknowlogick
2d213b64d1
use native golang SSH library but ssh-keygen when enable built-in SSH server to remove dependent on that command lines ( #5976 )
...
* use native golang SSH library but ssh-keygen when enable built-in SSH server to remove dependent on that command lines
* fix tests and add comment head
2019-02-07 02:13:12 -05:00
Lunny Xiao and techknowlogick
06a1739553
fix bug when deleting a linked account will removed all ( #5989 )
2019-02-07 01:51:23 -05:00
Lunny Xiao and techknowlogick
bf4badad1d
Pull request conflict files detection ( #5951 )
...
* add conflict detection
* test pull request conflict files
* fix detection files number
* fix comments
2019-02-05 06:54:49 -05:00
Lunny Xiao and techknowlogick
ecefa9e724
Add single commit API support ( #5843 )
...
* add single commit API support
2019-02-02 22:35:17 -05:00
Lunny Xiao and zeripath
bbad9b6178
Fix bug when read public repo lfs file ( #5912 )
...
* fix bug when read public repo lfs file
* add comment on lfs permission check
2019-01-31 13:36:57 +00:00
Lunny Xiao and Lauris BH
6b0c2e9e35
update swagger for release API pagination ( #5841 )
2019-01-25 09:10:50 +02:00
Lunny Xiao and Lauris BH
892bfd0b19
improve the releases api paging ( #5831 )
...
* improve the releases api paging
* add max limit on API paging
2019-01-24 20:59:27 +02:00
Lunny Xiao and Lauris BH
b80d6490f3
fix migration 78 error mssql ( #5791 )
2019-01-21 12:12:45 +02:00