Lunny Xiao and GitHub
8d51f28ba0
Fix wrong paging on org members ( #9990 )
2020-01-26 15:32:53 +08:00
Lunny Xiao and zeripath
a67c06ce90
Sanitize credentials in mirror form ( #9975 )
2020-01-25 10:57:42 +00:00
f2d12f7b03
Fix pull view when head repository or head branch missed and close related pull requests when delete head repository or head branch ( #9927 )
...
* fix pull view when head repository or head branch missed and close related pull requests when delete branch
* fix pull view broken when head repository deleted
* close pull requests when head repositories deleted
* Add tests for broken pull request head repository or branch
* fix typo
* ignore special error when close pull request
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-01-25 10:48:22 +08:00
Lunny Xiao and Lauris BH
f6067a8465
Migrate reviews when migrating repository from github ( #9463 )
...
* fix typo
* Migrate reviews when migrating repository from github
* fix lint
* Added test and migration when external user login
* fix test
* fix commented state
* Some improvements
* fix bug when get pull request and ref original author on code comments
* Fix migrated line; Added comment for review
* Don't load all pull requests attributes
* Fix typo
* wrong change copy head
* fix tests
* fix reactions
* Fix test
* fix fmt
* fix review comment reactions
2020-01-23 19:28:15 +02:00
Lunny Xiao and GitHub
81daf26878
Fix wrong hint when status checking is running on pull request view ( #9886 )
...
* Fix wrong hint when status checking is running on pull request view
* fix lint
* fix test
* fix test
* fix wrong tmpl
* fix import
* rename function name
2020-01-22 11:46:04 +08:00
ad3a9577a8
fix wrong font url on semantic-ui ( #9917 )
...
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-01-21 18:07:34 +00:00
5cf241b312
Use npm to manage fomantic and only build needed components ( #9561 )
...
* Use npm to manage fomantic
* Only build needed semantic components
* Fix make
* Don't import fonts from google sites since we have loaded
* [misc] devendor fomantic-ui and rebuild upon src or config changes only
Signed-off-by: Jakob Ackermann <das7pad@outlook.com >
* Change sort alphabetically of semantic components
* Fix trailing slash
* fix makefile
* Remove dependency to gulp from package.json
* Fix something
* Simplife the makefile
* add missed fomantic compnent
Co-authored-by: Jakob Ackermann <das7pad@outlook.com >
2020-01-21 13:17:58 +08:00
Lunny Xiao and zeripath
d92781bf94
Refactor repository check and sync functions ( #9854 )
...
Move more general repository functions out of models/repo.go
2020-01-20 20:01:19 +00:00
6d6f1d568e
Fix wrong permissions check when issues/prs shared operations ( #9885 )
...
* Fix wrong permissions check when issues/prs shared operations
* move redirect to the last of the function
* fix swagger
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-01-20 13:00:32 +01:00
Lunny Xiao and GitHub
f540d0ac87
Fix issues/pulls dependencies problems ( #9842 )
...
* Fix issues/pulls dependencies problems
* fix swagger and api param name
* fix js
2020-01-19 14:43:38 +08:00
Lunny Xiao and Antoine GIRARD
b641c68fee
Improve notification pager ( #9821 )
...
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com >
2020-01-17 19:31:26 +01:00
Lunny Xiao and GitHub
737ea6d83c
Fix download file wrong content-type ( #9825 )
...
* Fix download file wrong content-type
* change the error text to be more precise
* fix test
2020-01-17 20:16:05 +08:00
Lunny Xiao and Antoine GIRARD
088759f180
Fix wrong identify poster on a migrated pull request when submi… ( #9827 )
2020-01-17 11:23:46 +01:00
Lunny Xiao and techknowlogick
9f40bb020e
fix dump non-exist log directory ( #9818 )
2020-01-16 21:56:51 -05:00
d3468ed79f
Fix compare ( #9808 )
...
Co-authored-by: techknowlogick <matti@mdranta.net >
2020-01-16 21:59:07 +02:00
dbd89acf98
Remove unnecessary permissions load ( #9796 )
...
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: techknowlogick <matti@mdranta.net >
2020-01-16 15:18:30 +01:00
Lunny Xiao and techknowlogick
9343d2fc85
Fix missing msteam webhook on organization ( #9781 )
2020-01-15 13:38:44 -05:00
Lunny Xiao and Antoine GIRARD
2b3e931cde
Migrate reactions when migrating repository from github ( #9599 )
...
* Migrate reactions when migrating repository from github
* fix missed sleep
* fix tests
* update reactions when external user binding
* Fix test
* fix tests
* change the copy head
* fix test
* fix migrator add/delete reaction
2020-01-15 12:14:07 +01:00
Lunny Xiao and Antoine GIRARD
d32eac44b1
Move RepoWorkingPool to services/repository package ( #9754 )
...
* Move RepoWorkingPool to services/repository package
* Make repoWorkingPool private
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com >
2020-01-15 04:14:50 +01:00
7f869c061e
Fix missing updated time on migrated issues and comments ( #9744 )
...
* Fix missing updated time on migrated issues and comments
* Fix testing and missing updated on migrating pullrequest
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com >
2020-01-14 10:29:22 +00:00
Lunny Xiao and GitHub
2677d071f9
Move newbranch to standalone package ( #9627 )
...
* Move newbranch to standalone package
* move branch functions to modules to avoid dependencies cycles
* fix tests
* fix lint
* fix lint
2020-01-14 11:38:04 +08:00
Lunny Xiao and GitHub
b465d0d787
Move create/fork repository from models to modules/repository ( #9489 )
...
* Move create/fork repository from models to modules/repository
* fix wrong reference
* fix test
* fix test
* fix lint
* Fix DBContext
* remove duplicated TestMain
* fix lint
* fix conflicts
2020-01-12 20:11:17 +08:00
5765212c6d
Add owner_name column for table repository for maintaince reason ( #9717 )
...
* Add owner_name column for table repository for maintaince reason
* refactor
* Fix tests
* fix test
* fix bug when fork repository
Co-authored-by: zeripath <art27@cantab.net >
2020-01-12 17:36:21 +08:00
Lunny Xiao and Antoine GIRARD
f69f5a9f10
Add a new command doctor to check if some wrong configurations on gitea instance ( #9095 )
...
* add doctor
* Add a new command doctor to check if some wrong configurations on gitea instance
* fix import
* use regex match authorized_keys on doctor
* Add documentation
2020-01-11 15:24:57 +01:00
Lunny Xiao and techknowlogick
4d06d10dba
Move tracked time api convert to convert package ( #9665 )
2020-01-10 21:59:41 -05:00
Lunny Xiao and GitHub
7a3a90aca3
Fix wrong original git service type on a migrated repository ( #9693 )
2020-01-10 23:35:17 +08:00
99d869fa63
Move push commits from models to modules/repository ( #9370 )
...
* Move push commits from models to modules/repository
* fix test
* fix test
* fix test
* fix test
* fix test
Co-authored-by: zeripath <art27@cantab.net >
2020-01-10 17:34:21 +08:00
Lunny Xiao and GitHub
384c2b342e
Move pull request api convert to convert package ( #9664 )
...
* Move pull request api convert to convert package
* Rename ToPullRequest to ToAPIPullRequest
2020-01-10 15:53:53 +08:00
Lunny Xiao and GitHub
8878cfa4a1
Fix lint ( #9688 )
2020-01-10 13:50:23 +08:00
Lunny Xiao and zeripath
b9309e52f0
Move wiki related funtions from models to services/wiki ( #9355 )
...
* Move wiki related funtions from models to services/wiki
2020-01-07 18:27:36 +00:00
Lunny Xiao and zeripath
ed67bbe444
Fix repository issues pagination bug when there are more than one label filter ( #9512 )
2019-12-28 14:43:46 +00:00
Lunny Xiao and zeripath
0bcf644da4
Fix deleted branch isn't removed when push the branch again ( #9516 )
2019-12-27 19:17:37 +00:00
Lunny Xiao and zeripath
3d5f31f77d
Fix SetExpr failed ( #9506 )
2019-12-27 14:18:07 +00:00
Lunny Xiao and techknowlogick
c0f8795462
Upgrade lato fonts to v16. ( #9498 )
...
* Upgrade lato fonts to v16
* Upgrade lato fonts to v16
* fix bug
2019-12-25 23:11:39 -05:00
Lunny Xiao and GitHub
8b2f29c0d2
fix datarace on issue indexer queue ( #9490 )
2019-12-25 17:44:09 +08:00
Lunny Xiao and GitHub
89b4e0477b
Refactor code indexer ( #9313 )
...
* Refactor code indexer
* fix test
* fix test
* refactor code indexer
* fix import
* improve code
* fix typo
* fix test and make code clean
* fix lint
2019-12-23 20:31:16 +08:00
Lunny Xiao and GitHub
050a8af424
Response for context on retry database connection ( #9444 )
2019-12-20 13:39:33 +08:00
Lunny Xiao and GitHub
59fc29db38
fix wrong migration ( #9381 )
2019-12-17 14:58:30 +08:00
Lunny Xiao and techknowlogick
ffc904b1e0
Sleep longer if request speed is over github limitation ( #9335 )
...
* Sleep longer if request speed is over github limitation
* improve code
* remove unused code
* fix lint
* Use github's rate limit remain value to determine how long to sleep
* Save reset time when finished github api request
* fix bug
* fix lint
* Add context.Context for sleep
* fix test
* improve code
* fix bug and lint
* fix import order
2019-12-16 23:16:54 -05:00
Lunny Xiao and GitHub
59d6401486
Use ioutil.TmpDir for new created temp directory ( #9368 )
...
* Use os.TmpDir for new created temp directory
* fix error message
2019-12-16 13:17:55 +08:00
Lunny Xiao and GitHub
43ada65571
remove unused method and rename createcommentWithNoAction ( #9367 )
2019-12-16 11:54:24 +08:00
Lunny Xiao and techknowlogick
67b316a954
Refactor comment ( #9330 )
...
* Refactor comment
* fix test
* improve code
2019-12-15 16:57:34 -05:00
Lunny Xiao and techknowlogick
c6b3c5bcef
Fix cache problem on dashboard ( #9358 )
2019-12-15 15:44:23 -05:00
Lunny Xiao and Antoine GIRARD
ce2d488c94
Move PushToBaseRepo from models to services/pull ( #9352 )
2019-12-15 04:28:51 +01:00
Lunny Xiao and Antoine GIRARD
7b2ff82d20
Move some repository methods from models to modules/repository ( #9353 )
...
* Move some repository methods from models to modules/repository
* fix test
2019-12-14 18:30:01 +01:00
Lunny Xiao and techknowlogick
484e3dc5a9
site admin could view org's members ( #9346 )
2019-12-14 01:36:59 -05:00
Lunny Xiao and techknowlogick
bfcce5f86c
Remove release attachments which repository has been deleted ( #9334 )
2019-12-13 22:30:39 -05:00
Lunny Xiao and Lauris BH
ba1acf5b50
fix issue indexer not triggered when migrating a repository ( #9332 )
2019-12-12 23:46:43 +02:00
Lunny Xiao and GitHub
751cfb805d
Fix bug that release attachment files not deleted when deleting repository ( #9322 )
...
* Fix bug that release attachment files not deleted when deleting repository
* improve code
* add quote
* improve code
2019-12-12 13:31:05 +08:00
Lunny Xiao and Antoine GIRARD
50da9f7dae
Move modules/indexer to modules/indexer/code ( #9301 )
2019-12-10 14:29:40 +01:00
Lunny Xiao and techknowlogick
be06dee04c
Move code indexer related code to a new package ( #9191 )
...
* move code indexer related code to a new package
* fix lint
* fix tests
* fix fmt
* GetMaxID support interface parameter
2019-12-08 14:15:35 -05:00
Lunny Xiao and GitHub
ef98b168f7
Move UpdateIssuesCommit from models to repofiles ( #9276 )
2019-12-07 23:52:36 +08:00
Lunny Xiao and techknowlogick
82e0383d21
Move some pull request functions from models to services ( #9266 )
...
* Move some pull request functions from models to services
* Fix test
2019-12-06 21:44:10 -05:00
Lunny Xiao and GitHub
e3081c667a
Only show part of members on orgnization dashboard and add paging for orgnization members page ( #9092 )
...
* Only show part of members on orgnization dashboard and add paging for orgnization members page
* fix test
* fix typo
2019-12-06 13:34:54 +08:00
Lunny Xiao and GitHub
77730db257
Move repoWorkPool outside rename/transfer repository ( #9086 )
...
* Move repoWorkPool outside rename/transfer repository
* fix import
* Fix test
2019-12-06 12:00:50 +08:00
Lunny Xiao and techknowlogick
48be1889cd
Fix latest docker image haven't include static files. ( #9252 )
...
* add warnging on docs
* fix docs
2019-12-05 12:18:28 -05:00
Lunny Xiao and Lauris BH
6e81eafdd6
Remove unused comment actions ( #9222 )
...
* Remove unused comment actions
* improve code
2019-12-02 16:43:39 +02:00
Lunny Xiao and techknowlogick
2011a5b818
Extract createComment ( #9125 )
...
* Extract createComment
* fix lint
* fix lint
2019-11-30 21:44:39 -05:00
Lunny Xiao and GitHub
e151674cfa
Move PushUpdateOptions from models to repofiles ( #9124 )
2019-11-29 10:21:05 +08:00
Lunny Xiao and GitHub
3bdce82ce9
upgrade levelqueue to 0.1.0 ( #9192 )
2019-11-28 23:37:33 +08:00
Lunny Xiao and GitHub
ef9a0370ca
Fix panic when diff ( #9187 )
...
* fix panic when diff
* improve code
2019-11-28 17:05:57 +08:00
Lunny Xiao and Antoine GIRARD
7b7d382b8b
Fix datarace on git.GlobalCommandArgs on tests ( #9162 )
...
* fix datarace on git.GlobalCommandArgs on tests
* fix tests
* fix tests
* fix tests
2019-11-27 01:35:52 +01:00
Lunny Xiao and techknowlogick
8ab35eefc4
Move mirror sync actions to notification ( #9022 )
...
* Move mirror sync actions to notification
* fix lint
2019-11-24 00:16:59 -05:00
Lunny Xiao and GitHub
9856ac5818
fix race on indexer ( #9136 )
2019-11-23 23:03:35 +08:00
Lunny Xiao and techknowlogick
d7ac9727bb
Move merge actions to notification ( #9024 )
...
* Move merge actions to notification
* Add missing mail notification
2019-11-21 12:08:42 -05:00
Lunny Xiao and techknowlogick
d5261b9aab
Move HttpBackend function to Http to reduce function calls when git smart http requests ( #9057 )
2019-11-21 11:24:43 -05:00
Lunny Xiao and GitHub
9ff6312627
Move modules/gzip to gitea.com/macaron/gzip ( #9058 )
...
* Move modules/gzip to gitea.com/macaron/gzip
* Fix vendor
2019-11-18 13:18:33 +08:00
Lunny Xiao and GitHub
1b7182e5ec
Add retry for migration http/https requests ( #9019 )
...
* Add retry for migration http/https requests
* give the more suitable name for retry configuraion items
* fix docs and lint
* Only use retryDownloader when setting > 1
2019-11-16 16:30:06 +08:00
Lunny Xiao and GitHub
11208f3381
Move git graph from models to modules/graph ( #9027 )
2019-11-16 08:47:57 +08:00
Lunny Xiao and zeripath
e0e4473172
extract some inline functions related with create comment ( #8931 )
2019-11-15 18:18:09 +00:00
Lunny Xiao and zeripath
c0c2624079
fix wrong system notice when repository is empty ( #9010 )
2019-11-15 10:53:20 +00:00
Lunny Xiao and GitHub
21ae9838e0
Move transfer repository and rename repository on a service package and start action notification ( #8573 )
...
* move transfer repository and rename repository on a service package and start action notification
* remove unused codes
* fix lint
* fix bugs
* fix test
* fix test
* fix test
* fix lint
* update go mod and sum
2019-11-15 16:06:11 +08:00
Lunny Xiao and techknowlogick
42ada741e3
Pack web_src/js/draw.js to public/js/index.js ( #8975 )
...
* pack web_src/js/draw.js to public/js/index.js
* fix eslint
2019-11-14 20:27:50 -05:00
Lunny Xiao and Lauris BH
9bd879bef8
fix bug when pack js ( #8992 )
2019-11-14 19:58:32 +02:00
Lunny Xiao and GitHub
dad67cae54
Refactor pull request review ( #8954 )
...
* refactor submit review
* remove unnecessary code
* remove unused comment
* fix lint
* remove duplicated actions
* remove duplicated actions
* fix typo
* fix comment content
2019-11-14 10:57:36 +08:00
Lunny Xiao and Antoine GIRARD
afe50873a5
Move index.js to web_src and use webpack to pack them ( #8598 )
...
* Move index.js to web_src and use webpack
* Fix initHeatMap
* update eslint and move webpack to devDependencies
* update index.js
* add eslint env node
2019-11-13 15:52:13 +01:00
Lunny Xiao and Antoine GIRARD
e4e6d48e30
Move less from public/ to web_src/ so that it will not be packe… ( #8908 )
2019-11-12 10:22:16 +01:00
Lunny Xiao and GitHub
bb6879d339
Improve notification ( #8835 )
...
* Improve notifications
* batch load user
* Update notification only when read
* Fix reorder
* fix lint
* fix test
* fix lint
* make function meaningful
* fix comment
2019-11-12 16:33:34 +08:00
Lunny Xiao and GitHub
273a24f226
Move notifywatchers from models to notification ( #8907 )
2019-11-11 11:39:41 +08:00
Lunny Xiao and GitHub
daab245167
Move code.gitea.io/gitea/routers/api/v1/convert to code.gitea.io/gitea/modules/convert ( #8892 )
...
* Move code.gitea.io/gitea/routers/api/v1/convert to code.gitea.io/gitea/modules/convert
* fix fmt
2019-11-10 12:41:51 +08:00
Lunny Xiao and techknowlogick
f02138a148
Fix bug when migrate from API ( #8631 )
...
* fix bug when migrate from API
* fix test
* fix test
* improve
* fix error message
2019-11-08 17:21:00 -05:00
Lunny Xiao and techknowlogick
55bdc9aa38
Webhook support custom proxy ( #8760 )
...
* Webhook support custom proxy
* Add glob support on webhook proxy host rules
* fix app.ini.sample
* improve code and app.ini.sample
* update cheetsheet about added webhook options
2019-11-08 16:25:53 -05:00
Lunny Xiao and techknowlogick
016a5d0438
Move some actions to notification/action ( #8779 )
...
* Move some actions to notification/action
* Fix test
* fix test
2019-11-08 15:54:50 -05:00
Lunny Xiao and Lauris BH
12170d26a7
Split sendCreateCommentAction as two parts, one for update comment related informations, another for actions ( #8784 )
...
* Split sendCreateCommentAction as two parts, one for update comment related informations, another for actions
* fix lint
2019-11-06 15:39:29 +02:00
Lunny Xiao and GitHub
0109229928
Move release webhook to notification ( #8817 )
...
* Move release webhook to notification
* Extract release webhook method
* fix bug
* fix import
2019-11-06 16:25:50 +08:00
Lunny Xiao and GitHub
8a84d82d53
Move repofiles webhooks to notification ( #8807 )
2019-11-06 14:43:03 +08:00
Lunny Xiao and GitHub
aaeef295bb
Move pull webhook to notification ( #8805 )
...
* Move pull webhook to notification
* fix fmt
2019-11-05 19:04:08 +08:00
Lunny Xiao and zeripath
a966a0298e
Move more webhook codes from models to webhook module ( #8802 )
...
* Move more webhook codes from models to webhook module
2019-11-03 22:13:25 +00:00
Lunny Xiao and zeripath
491887d441
Move actions to notification ( #8785 )
2019-11-03 20:59:09 +00:00
022d2d8beb
Move push commits events to notification ( #8783 )
...
* Move push commits events to notification
* Update modules/notification/base/null.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com >
2019-11-03 14:59:26 +08:00
Lunny Xiao and GitHub
21dfe1b256
fix 500 when edit hook ( #8782 )
2019-11-02 21:38:11 +08:00
Lunny Xiao and GitHub
8f26397928
Move issue milestone assign to issue service and move webhook to notification ( #8780 )
2019-11-02 11:33:20 +08:00
Lunny Xiao and GitHub
f518fe6662
Rename HookQueue to hookQueue ( #8778 )
...
* Rename HookQueue to hookQueue
* fix lint
2019-11-02 10:35:12 +08:00
Lunny Xiao and GitHub
4b8d9e58c5
Move labels webhooks to notification ( #8749 )
...
* Move webhooks to notification
* fix notification
2019-11-02 09:49:57 +08:00
Lunny Xiao and zeripath
0e7f7df3cf
Move webhook to a standalone package under modules ( #8747 )
...
* Move webhook to a standalone package under modules
* fix test
* fix comments
2019-11-01 22:51:22 +00:00
Lunny Xiao and zeripath
de2f45f95e
Move pull list code to a seperate file ( #8748 )
2019-10-30 20:33:10 +00:00
Lunny Xiao and Lauris BH
ac6accef09
Move webhook codes from service to webhook notification ( #8712 )
...
* Move webhook codes from service to webhook notification
* move deletecomment webhook to notifications
* fix notification
2019-10-30 12:02:46 +02:00
Lunny Xiao and Lauris BH
f694bb45d7
Move issue change content from models to service ( #8711 )
...
* Move issue change content from models to service
* fix lint
2019-10-30 10:36:25 +02:00
Lunny Xiao and GitHub
af8957bc4c
Move issue notifications ( #8713 )
2019-10-29 00:45:43 +08:00
Lunny Xiao and GitHub
c66c9dabc7
Move issue change status from models to service ( #8691 )
2019-10-28 13:26:46 +08:00