Wendell Sun
b627f1131b
Change local copy origin url after repository rename ( #3399 )
...
Fix #3378
2018-01-27 19:54:26 +02:00
Antoine GIRARD
9e842c8a72
Fix SSH auth lfs locks ( #3152 )
...
* Fix SSH auth LFS locks
* Activate SSH/lock test
* Remove debug
* Follow @lunny recommendation for AfterLoad method
2018-01-27 18:48:15 +02:00
kolaente
0ce2170031
Added only check if we're about to close an issue when closing an issue in "changeStatus"
2018-01-24 23:50:26 +01:00
Konrad Langenberg
f837429858
Added only check if we're about to close an issue when closing an issue in "changeStatus"
2018-01-24 23:44:20 +01:00
Konrad
647296ce63
Merge branch 'master' of https://github.com/go-gitea/gitea
2018-01-21 16:23:15 +01:00
Antoine GIRARD
1ce3572409
Remove useless check ( #3384 )
...
In #3377 , I put check inside all write key function. This one is useless no.
2018-01-19 21:45:53 +02:00
Sandro Santilli
05ab747054
Force-push to base repo's ref/pull/#/head ( #3393 )
...
* Force-push to base repo's ref/pull/#/head
Fixes force-pushing to pull request branches, otherwise failing with:
[...gitea/models/pull.go:1022 AddTestPullRequestTask()] [E] PushToBaseRepo: Push: exit status 1 - To /path/to/gitea-repositories/org/repo.git
! [rejected] issue-fix -> refs/pull/20/head (non-fast-forward)
* format
2018-01-19 08:53:45 +02:00
Lauris BH
ca306985d3
Change how merged PR commit info are prepared ( #3368 )
...
* Change how merged PR commits and diff are made
* Update code.gitea.io/git dependency
* Fix typo
* Remove unneeded local variable
2018-01-19 08:18:51 +02:00
Ethan Koenig
b0d5bb909b
Delete indexer DB entries when (re)creating index ( #3385 )
...
* comment
2018-01-17 23:51:07 +02:00
Antoine GIRARD
095fb9f2e3
Add integrations tests from git cli ( #3377 )
...
* test: integration add git cli tests
Extracted form for easing review process and debug #3152
* test: integration add git cli big file commit
* fix: Don't rewrite key if internal server
2018-01-16 13:07:47 +02:00
Lauris BH
a68bf746a4
Change reserved avatar name to correct - avatars ( #3375 )
2018-01-16 00:45:13 +02:00
kolaente
18fe48e7be
Change nothing to trigger CI
2018-01-14 21:22:11 +01:00
kolaente
60834bc3a7
Change nothing to trigger CI
2018-01-14 21:22:00 +01:00
kolaente
992e168687
Fixed lint + gofmt
2018-01-14 21:14:42 +01:00
Konrad
fdabcf1a25
Merge branch 'master' of https://github.com/go-gitea/gitea
2018-01-14 21:13:16 +01:00
kolaente
30ae70a4d0
Moved check for open dependencies to "changeStatus"
2018-01-14 19:12:25 +01:00
Ethan Koenig
ccdb94992d
Asynchronously populate the repo indexer ( #3366 )
...
* Populate repo indexer in background
* Check if no repos exist
* race cond
2018-01-14 19:34:41 +02:00
kolaente
f71f2d4e5d
Removed unnessecary errorcheck
2018-01-13 12:48:06 +01:00
kolaente
cf1b573c35
Merge branch 'master' into master
2018-01-13 11:20:57 +01:00
Bo-Yi Wu
7a2a3fbafc
refactor(model): update user method. ( #3360 )
2018-01-13 11:45:16 +02:00
Kim "BKC" Carlbäcker
e5b8b4b5ec
Cleanup models.User.HashPassword ( #3334 )
2018-01-12 00:19:38 +02:00
kolaente
d5b1c33f73
Merge branch 'master' into master
2018-01-11 21:09:56 +01:00
Lauris BH
be1330ec89
Remove hardcoded paths to fix randomly failing tests ( #3347 )
...
* Remove hardcoded paths to fix randomly failing tests
* Use correct function for merge path
2018-01-11 00:46:59 +01:00
kolaente
0fcc3b2273
Merge branch 'master' into master
2018-01-09 11:27:21 +01:00
Morgan Bazalgette
674cfb7cac
Change EncodePasswd to HashPassword ( #3329 )
...
* Change EncodePasswd to HashPassword
* Create test+benchmark for HashPassword
2018-01-08 23:28:18 +01:00
kolaente
1f8ef921e2
Merge branch 'master' of https://github.com/go-gitea/gitea
...
# Conflicts:
# models/migrations/migrations.go
# models/migrations/v56.go
2018-01-08 19:08:41 +01:00
kolaente
4d15f28e04
Merge branch 'master' of https://github.com/go-gitea/gitea
...
# Conflicts:
# models/migrations/migrations.go
# models/migrations/v56.go
2018-01-08 19:08:13 +01:00
Ethan Koenig
f48680888c
Remove IsOwner, NumTeams from OrgUser ( #3269 )
2018-01-08 09:48:37 +02:00
Antoine GIRARD
cb868b7851
Add missing indexer doc in configuration ( #3324 )
...
* Add missing indexer doc in configuration
* Unify MAX_FILE_SIZE to 1024 * 1024
2018-01-08 07:03:52 +02:00
Lunny Xiao
835b890329
fix bug when a user delete but assigned on issue ( #3318 )
2018-01-07 11:13:10 +02:00
kolaente
171715b21d
Merge branch 'master' of https://github.com/go-gitea/gitea
...
# Conflicts:
# models/migrations/migrations.go
# models/migrations/v55.go
2018-01-07 00:06:10 +01:00
kolaente
eb295f40c0
Merge branch 'master' of https://github.com/go-gitea/gitea
...
# Conflicts:
# models/migrations/migrations.go
# models/migrations/v55.go
2018-01-07 00:05:43 +01:00
Vlad Temian
e78786ef39
Writable deploy keys ( closes #671 ) ( #3225 )
...
* Add is_writable checkbox to deploy keys interface
* Add writable key option to deploy key form
* Add support for writable ssh keys in the interface
* Rename IsWritable to ReadOnly
* Test: create read-only and read-write deploy keys via api
* Add DeployKey access mode migration
* Update gitea sdk via govendor
* Fix deploykey migration
* Add unittests for writable deploy keys
* Move template text to locale
* Remove implicit column update
* Remove duplicate locales
* Replace ReadOnly field with IsReadOnly method
* Fix deploy_keys related integration test
* Rename v54 migration with v55
* Fix migration hell
2018-01-07 00:55:53 +02:00
Konrad
f4cb1c7340
Merge branch 'master' of https://github.com/go-gitea/gitea
...
# Conflicts:
# docs/content/doc/advanced/config-cheat-sheet.en-us.md
# models/migrations/migrations.go
# models/migrations/v54.go
# routers/repo/pull.go
2018-01-06 23:01:44 +01:00
kolaente
37dc550bc8
Merge branch 'master' of https://github.com/go-gitea/gitea
...
# Conflicts:
# docs/content/doc/advanced/config-cheat-sheet.en-us.md
# models/migrations/migrations.go
# models/migrations/v54.go
# routers/repo/pull.go
2018-01-06 22:41:44 +01:00
Lauris BH
8ac1501ad7
Add Pull Request merge options - Ignore white-space for conflict checking, Rebase, Squash merge ( #3188 )
...
* Pull request options migration and UI in settings
* Add ignore whitespace functionality
* Fix settings if pull requests are disabled
* Fix migration transaction
* Merge with Rebase functionality
* UI changes and related functionality for pull request merging button
* Implement squash functionality
* Fix rebase merging
* Fix pull request merge tests
* Add squash and rebase tests
* Fix API method to reuse default message functions
* Some refactoring and small fixes
* Remove more hardcoded values from tests
* Remove unneeded check from API method
* Fix variable name and comment typo
* Fix reset commit count after PR merge
2018-01-05 20:56:50 +02:00
Sandro Santilli
a192f3052e
Serve pull request .diff files ( #3293 )
...
* Serve pull request .diff files
Closes #3259
* Add test for pull request redirection and .diff access
* Typo
* There's no need to test for pr.BaseRepo being nil after calling GetBaseRepo
2018-01-05 12:56:52 +02:00
kolaente
8735bc2f82
Merge branch 'master' into master
2018-01-04 13:16:19 +01:00
Alberto González Palomo
30fb81c71e
Use issue number/index instead of id for API URL. ( #3298 )
...
Using the API calls, the issue objects retrieved by
/repos/{owner}/{repo}/issues
contains the wrong value in the "url" field:
it uses the "id" value instead of the "number" value.
For instance, in a new repo in try.gitea.io with just one issue:
[{
"id": 896,
"url": "https://try.gitea.io/api/v1/repos/AlbertoGP/uno/issues/896 ",
"number": 1,
...
}]
The given URL does not work, but if you replace the "896" by "1" it
does.
2018-01-03 19:41:33 -06:00
modmew8
9f8349af06
Fixed asterisk based tasklist items, fixed requirement for one char after last blank to be a valid task. ( #3296 )
...
Signed-off-by: modmew8 <modmew8@gmail.com>
2018-01-03 21:45:21 +02:00
kolaente
0016a3e1a7
Merge branch 'master' into master
2018-01-03 16:26:09 +01:00
modmew8
d996da6bab
Added progressbar for issues ( #1146 ). ( #3171 )
...
* Added progressbar for issues (#1146 ).
* Updated the generated index.css.
Signed-off-by: modmew8 <modmew8@gmail.com>
* Removed stored progress percentage and changed it to css calc. Also added the issue task progress to the user/dashboard/issues.
Signed-off-by: modmew8 <modmew8@gmail.com>
* Removed unnecessary blanks.
Signed-off-by: modmew8 <modmew8@gmail.com>
* Formatted the files correctly, fmt-check terminates now without errors.
Signed-off-by: modmew8 <modmew8@gmail.com>
* Removed variables, made computing the tasks on demand with precompiled regexp.
Signed-off-by: modmew8 <modmew8@gmail.com>
2018-01-03 02:34:13 -06:00
kolaente
661bd7c1c4
gofmt
2018-01-01 14:40:14 +01:00
kolaente
9eedb3fcf8
Fixed check for issue is nil before getting issue details
2018-01-01 14:32:03 +01:00
kolaente
436ea162bb
Merge branch 'master' of https://github.com/go-gitea/gitea
...
# Conflicts:
# public/js/index.js
2018-01-01 14:20:42 +01:00
Sandro Santilli
8cd987af0c
Add repo-sync-releases admin command ( #3254 )
...
* Add repo-sync-releases admin command
Will help recovering corrupted database, see #3247
* Load repos in chunks of 10, exit with error if unable to get a list, scan private repos, fix typo
* Fix debug output about num releases
* Introduce RepositoryListDefaultPageSize constant, set to 64
Use it from the new admin command
* Use RepositoryListDefaultPageSize in more places
* Document RepositoryListDefaultPageSize
2017-12-31 16:45:46 +02:00
Ethan Koenig
c64924682e
Fix race condition in team functions ( #3268 )
2017-12-30 21:08:08 -06:00
Morgan Bazalgette
edce41ae65
go back to using CFB for AES decryption/encryption for 2FA ( #3274 )
2017-12-31 04:19:42 +02:00
Ethan Koenig
3850bad4c0
Remove unused consts/vars ( #3270 )
2017-12-30 19:10:48 -06:00
kolaente
fdb106dfa5
typo
2017-12-29 22:35:23 +01:00
kolaente
57a4f8607d
typo
2017-12-29 22:35:13 +01:00
kolaente
c534699884
Fixed Lint suggestions
2017-12-29 22:31:50 +01:00
kolaente
2a249c4e64
gofmt
2017-12-29 22:30:58 +01:00
kolaente
108edf9938
Modified tests to work again with modified functions
2017-12-29 22:29:14 +01:00
kolaente
1064acc400
Logging error
2017-12-29 15:33:19 +01:00
kolaente
70589e6c96
Added Custom error types for issue dependencies
2017-12-29 15:30:43 +01:00
kolaente
d29ca0c9f3
Fixed comment
2017-12-29 14:51:26 +01:00
kolaente
200f88d2ed
Small fixes to xorm-stuff
2017-12-29 14:44:13 +01:00
Konrad
ed4a47dcc8
Merge branch 'master' of https://github.com/go-gitea/gitea
2017-12-29 14:27:23 +01:00
Ethan Koenig
4c9341f689
Fix bugs in issue dashboard stats ( #3073 )
2017-12-26 01:25:16 +02:00
Lunny Xiao
f5155b9913
Small improve on deleting attachements ( #3145 )
...
* Small improve on deleting attachements
* improve the sequence of deletion
2017-12-24 23:04:22 +02:00
Antoine GIRARD
cc7b8e3379
Add more bench ( #3161 )
...
* Improve makefile + Add benchs
* Apply recommendations of @ethantkoenig
2017-12-24 02:33:34 +02:00
Ethan Koenig
515cdaa85d
Fix ignored errors when checking if organization, team member ( #3177 )
2017-12-21 09:43:26 +02:00
Ethan Koenig
e67b4055f9
Fix repo-transfer-and-team-repo-count bug ( #3241 )
2017-12-19 23:37:56 -06:00
kolaente
08763cf7d5
typo
2017-12-19 19:26:08 +01:00
kolaente
e6aeeac369
typo
2017-12-19 19:25:57 +01:00
kolaente
1608248166
Fixed deleting a dependency when it going from the blocking one
2017-12-19 19:23:27 +01:00
kolaente
69769ec6fd
gofmt
2017-12-19 19:14:26 +01:00
kolaente
8354f2be75
Merge branch 'master' of https://github.com/go-gitea/gitea
...
# Conflicts:
# models/migrations/v51.go
2017-12-19 19:08:23 +01:00
kolaente
172b1f054a
Merge branch 'master' of https://github.com/go-gitea/gitea
...
# Conflicts:
# models/migrations/v51.go
2017-12-19 19:07:30 +01:00
Ethan Koenig
0e384c6376
Check ignored errors for issue and milestone count ( #3213 )
2017-12-18 16:06:51 +02:00
Ethan Koenig
6abfa48c0e
Remove unnecessary updates to issue indexer ( #3212 )
2017-12-17 13:53:02 +02:00
Ethan Koenig
befa7445d2
Unit tests for routers/repo/issue_label ( #3198 )
2017-12-15 23:11:02 +02:00
Lunny Xiao
f94c1b3943
Improvements for supporting UI Location ( #3146 )
...
* improvements for supporting UI Location
* improved the comment
2017-12-14 07:45:31 +08:00
Lauris BH
c06cc740de
Reorder migrations, skip errors if running migration again ( #3160 )
...
* Reorder migrations, skip errors if running migration again
* Rename migration file names to match migration version
* Add note about ingored error
2017-12-13 16:52:18 +02:00
Lunny Xiao
859b9ad7ea
fix org owner cannot be removed if there is not in owner team ( #3164 )
2017-12-13 00:26:31 +02:00
Kim "BKC" Carlbäcker
4b5197beb4
Fix Uninitialized variable in ParsePatch ( #3156 )
2017-12-12 02:32:36 +02:00
Lunny Xiao
956354885a
simple usage of x ( #3144 )
2017-12-11 09:16:23 +02:00
Lunny Xiao
f2e20c81b6
Refactor struct's time to remove unnecessary memory usage ( #3142 )
...
* refactor struct's time to remove unnecessary memory usage
* use AsTimePtr simple code
* fix tests
* fix time compare
* fix template on gpg
* use AddDuration instead of Add
2017-12-11 06:37:04 +02:00
Ethan Koenig
defc97afc2
Fixtures for public_key table ( #3140 )
2017-12-11 09:50:29 +08:00
Ethan Koenig
d1efe2078a
Fix integration tests ( #3141 )
2017-12-11 08:52:05 +08:00
Lunny Xiao
41d6afe0e7
Fix compile failed without gcc ( #3130 )
...
* fix comile failed without gcc
* add sqlite tag for unit test
2017-12-10 16:08:19 +02:00
Antoine GIRARD
ef78309b65
Improve LFS tests + fix lfs url refs + keep path upper/lowercase in db. ( #3092 )
...
* Add failing test
* Fix urls
* Improve url in tests
* improve testing
* Remove debug code
* Add deps
* LFS corner-case : Search on lower but store with case
* Temporary comment of blocking action
* fix hooks
* Use temporary repo for git client test
* Use userPassword in place of hard-coded password
2017-12-08 20:21:37 +08:00
kolaente
f02fd333c7
Fixed import order
2017-12-07 10:23:49 +01:00
Ethan Koenig
5e4427e4e7
Fix repo indexer and submodule bug ( #3107 )
2017-12-07 15:18:04 +08:00
Sasha Varlamov
7ec6cddd27
Add 'mark all read' option to notifications ( #3097 )
...
* Add 'mark all read' option to notifications
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
* Fix exported comment
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
* Format method comments
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
* Fix exported comment
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
Format method comments
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
Tests for reactions (#3083 )
* Unit tests for reactions
* Fix import order
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
Fix reaction possition when there is attachments (#3099 )
Refactor notifications swap function
* Accept change to drop beforeupdate call
* Update purge notifications error message for consistency
* Drop unnecessary check for mark all as read button
* Remove debugging comment
2017-12-07 13:52:57 +08:00
Konrad
e98f92d676
Merge branch 'master' of https://github.com/go-gitea/gitea
2017-12-06 18:51:18 +01:00
Konrad
13f0e17159
Fixed using xorm session
2017-12-06 17:22:19 +01:00
kolaente
01f9e6332e
Modified import order
2017-12-06 17:17:37 +01:00
Vlad Temian
469ab99e9a
Delete a user's public key via admin api ( closes #3014 ) ( #3059 )
...
* Delete a user's public key via admin api
* Test admin ssh endpoint for creating a new ssh key
* Adapt public ssh key test to also test the delete operation
* Test that deleting a missing key will result in a 404
* Test that a normal user can't delete another user's ssh key
* Make DeletePublicKey return err
* Update swagger doc
2017-12-06 12:27:10 +02:00
Lauris BH
f1d8dda5b4
Tests for reactions ( #3083 )
...
* Unit tests for reactions
* Fix import order
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
2017-12-05 22:57:01 +02:00
kolaente
66433a9549
gofmt
2017-12-04 19:31:45 +01:00
kolaente
25427aee25
Using "sess" instead of "x" when removing a depencency
2017-12-04 19:23:37 +01:00
kolaente
8bcb624b10
Added missing license header
2017-12-04 19:21:38 +01:00
kolaente
fae44666ec
Merge branch 'master' of https://github.com/go-gitea/gitea
...
# Conflicts:
# models/migrations/migrations.go
# models/migrations/v50.go
2017-12-04 10:48:37 +01:00
Ethan Koenig
c0a7899416
Sort repos in issues dashboard sidebar ( #3072 )
...
* Sort repos in issues dashboard sidebar
* Sort repos by name
2017-12-04 12:39:01 +08:00
Ethan Koenig
3c1b1ca78e
Fix error message sanitiziation ( #3082 )
2017-12-04 03:48:03 +02:00
Lauris BH
5dc37b187c
Add reactions to issues/PR and comments ( #2856 )
2017-12-04 01:14:26 +02:00
kolaente
9dd0cb18a7
Fixed misspell
2017-12-03 18:07:48 +01:00
kolaente
d0baadc9c3
gofmt
2017-12-03 18:04:22 +01:00
kolaente
f61ba0f403
gofmt
2017-12-03 17:56:59 +01:00
Konrad
9af3aae2f3
Merge branch 'master' of https://github.com/go-gitea/gitea
2017-12-03 17:45:55 +01:00
kolaente
3566e9e4a2
Added tests for issue dependencies
2017-12-03 17:45:43 +01:00
Ethan Koenig
ab62da283a
Fix avatar URLs ( #3069 )
...
* Fix avatar URLs
* import order
2017-12-03 19:55:13 +08:00
Ethan Koenig
a0964775ab
Sanitize logs for mirror sync ( #3057 )
2017-12-03 13:29:41 +08:00
Ethan Koenig
3163abedd6
Fix ref parsing in commit messages ( #3067 )
2017-12-03 10:20:12 +08:00
kolaente
1fded52044
Merge branch 'master' of https://github.com/go-gitea/gitea
...
# Conflicts:
# public/js/index.js
2017-12-02 18:29:32 +01:00
kolaente
78dd6c1583
Moved checking if dependencies are enabled to issue_dependency.go
2017-12-02 18:25:12 +01:00
Lunny Xiao
35cc5b0402
Remove GetRepositoryByRef and add GetRepositoryByOwnerAndName ( #3043 )
...
* remove GetRepositoryByRef and add GetRepositoryByOwnerAndName
* fix tests
* fix tests bug
* some improvements
2017-12-02 15:34:39 +08:00
Ethan Koenig
91f3d77ceb
Unit tests for wiki routers ( #3022 )
2017-11-30 17:52:15 +02:00
kolaente
d00eb86117
Merge branch 'master' of https://github.com/go-gitea/gitea
...
# Conflicts:
# models/migrations/migrations.go
# models/migrations/v49.go
# models/models.go
2017-11-29 21:00:37 +01:00
kolaente
6eea6c686f
Merge branch 'master' of https://github.com/go-gitea/gitea
...
# Conflicts:
# models/migrations/migrations.go
# models/migrations/v49.go
# models/models.go
2017-11-29 20:55:20 +01:00
Antoine GIRARD
4035ab05fa
Fix git lfs path ( #3016 )
...
* add suffix .git
* Remove Content-Type on GET methods
* Add migrations to force creation before any further potential migration
2017-11-29 01:35:23 +02:00
Duncan Ogilvie
c80d147fa9
Improve memory usage when reaching diff limits ( #2990 )
...
Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
2017-11-29 01:22:24 +02:00
Antoine GIRARD
d99f4ab003
Git LFS lock api ( #2938 )
...
* Implement routes
* move to api/sdk and create model
* Implement add + list
* List return 200 empty list no 404
* Add verify lfs lock api
* Add delete and start implementing auth control
* Revert to code.gitea.io/sdk/gitea vendor
* Apply needed check for all lfs locks route
* Add simple tests
* fix lint
* Improve tests
* Add delete test + fix
* Add lfs ascii header
* Various fixes from review + remove useless code + add more corner case testing
* Remove repo link since only id is needed.
Save a little of memory and cpu time.
* Improve tests
* Use TEXT column format for path + test
* fix mispell
* Use NewRequestWithJSON for POST tests
* Clean path
* Improve DB format
* Revert uniquess repoid+path
* (Re)-setup uniqueness + max path length
* Fixed TEXT in place of VARCHAR
* Settle back to maximum VARCHAR(3072)
* Let place for repoid in key
* Let place for repoid in key
* Let place for repoid in key
* Revert back
2017-11-28 22:58:37 +02:00
Ethan Koenig
b7ebaf6d20
Various wiki bug fixes ( #2996 )
...
* Update macaron
* Various wiki bug fixes
2017-11-28 17:43:51 +08:00
kolaente
03769dadcf
gofmt
2017-11-28 00:34:14 +01:00
kolaente
db4f578e04
Finished implementing setting for dependencies
2017-11-28 00:33:51 +01:00
Konrad
c81041f80d
Merge branch 'master' of https://github.com/go-gitea/gitea
2017-11-27 22:36:38 +01:00
kolaente
33c5033c8b
Started implementing settign for dependencies
2017-11-27 22:36:26 +01:00
Ethan Koenig
1028ef2def
Don't print SQL in unit tests ( #2995 )
...
* Add GITEA_UNIT_TESTS_VERBOSE environment variable to enable printing SQL
2017-11-27 12:29:48 +02:00
Konrad
fc35252f68
Merge branch 'master' of https://github.com/go-gitea/gitea
2017-11-26 18:41:38 +01:00
kolaente
a57bcf1103
Added more specific error when creating a new dependency if it already exists
2017-11-26 18:41:23 +01:00
Ethan Koenig
716ac1214f
Enable admin to search by email ( #2888 )
2017-11-26 16:40:38 +08:00
Ethan Koenig
0f6dc411df
Remove unnecessary IssueList attribute loads ( #2936 )
2017-11-21 13:28:22 +08:00
Lunny Xiao
10b54df2b2
Add dingtalk webhook ( #2777 )
...
* add dingtalk webhook type
* add vendor
* some fixes
* fix name check
* fix name check & improvment
2017-11-21 06:26:43 +02:00
Michael Kuhn
420fc8efc2
Disable add key button if SSH is disabled ( #2873 )
2017-11-21 11:49:33 +08:00
Konrad Langenberg
85cdd94d92
Moved methods to get issue dependencies for a given issue from repo to issue
...
+ Simplified both.
2017-11-14 22:04:46 +01:00
Konrad Langenberg
6109fcf49a
Simplified check for open dependencies
2017-11-14 21:41:49 +01:00
Konrad Langenberg
d65fe40531
Added unique to issue dependency struct for issueID and DependencyID
2017-11-06 22:12:27 +01:00
Konrad Langenberg
a54f930c72
Removed wrong notification content in struct
2017-11-06 21:39:52 +01:00
kolaente
c4ba8d681f
Merge branch 'master' into master
2017-11-06 17:42:41 +01:00
Lauris BH
bd6f24b4ab
Add deleted_branch table fixture ( #2832 )
...
* Add deleted_branch table fixture
* Fix deleted branches tests
* Remove unneeded global variable
2017-11-04 15:31:59 +02:00
Lauris BH
240609432b
Issue content should not be updated when closing with comment ( #2833 )
2017-11-03 17:23:17 +08:00
Guillaume Dube
8798cf4e3b
Set session and indexers' data files rel to AppDataPath ( #2192 )
...
* Set session and indexers' data files rel to AppDataPath
The setting AppDataPath is now relative to the working directory.
The session svc's PROVIDER_CONFIG now defaults to AppDataPath/data/sessions.
The issue indexer's IssuePath now defaults to AppDataPath/indexers/issues.bleves.
* fix bug
2017-11-03 10:56:20 +02:00
Morlinest
95637e046f
Fix order of comments ( #2835 )
2017-11-03 11:11:42 +08:00
Konrad Langenberg
4e9e1f8d83
Removed unused named returns
2017-11-01 21:36:06 +01:00
Konrad Langenberg
3beecd2d13
Improved readability
2017-11-01 21:33:42 +01:00
Konrad Langenberg
827291e188
Cleanup
2017-11-01 16:24:23 +01:00
Konrad
dd24b9ff5a
Implemented missing create table for Issue Dependencies table \
...
IssueNoDependenciesLeft now returns an error when something goes wrong
;
2017-11-01 16:16:49 +01:00
Konrad
2dca487e0b
gofmt
2017-11-01 11:45:13 +01:00
Konrad
a2b652e14c
Merge branch 'master' of https://github.com/go-gitea/gitea
2017-11-01 11:31:54 +01:00
Konrad
ba734d6207
Removed unrelated changes
2017-11-01 11:21:27 +01:00
Konrad
5a9f2735f9
Removed unrelated changes
2017-11-01 11:17:53 +01:00
Ethan Koenig
e6a97b6675
Use api.TrackedTime in API ( #2807 )
...
* Use api.TrackedTime in API
* APIFormat() method
* Rename function
2017-11-01 10:25:14 +08:00
cstyles
b0b24a2dbb
Use RelAvatarLink() in GetActAvatar() ( #2800 )
2017-10-31 16:08:23 +08:00
Konrad Langenberg
913584aa6f
fmt
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-30 21:45:48 +01:00
Konrad Langenberg
751bbee534
Merge branch 'master' of https://github.com/go-gitea/gitea
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
# Conflicts:
# models/migrations/migrations.go
# models/migrations/v46.go
# models/repo.go
# public/js/index.js
2017-10-30 21:26:38 +01:00
Konrad Langenberg
30fe97a55e
Merge branch 'master' of https://github.com/go-gitea/gitea
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
# Conflicts:
# models/migrations/migrations.go
# models/migrations/v46.go
# models/repo.go
# public/js/index.js
2017-10-30 21:17:36 +01:00
Lauris BH
82fc50f4ee
Fix Git LFS object/repo link storage in database and small refactoring ( #2803 )
2017-10-30 20:11:56 +08:00
Ethan Koenig
513375c429
Make URL scheme unambiguous ( #2408 )
...
* Make URL scheme unambiguous
Redirect old routes to new routes
* Fix redirects to new URL scheme, and update template
* Fix branches/_new endpoints, and update integration test
2017-10-30 10:04:25 +08:00
Konrad Langenberg
55f6cf9c91
Fixed issue where an issue could not be closed because of non-existing unresolved dependencies
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-28 18:37:08 +02:00
Ethan Koenig
5866eb2321
Code/repo search ( #2582 )
...
Indexed search of repository contents (for default branch only)
2017-10-27 09:10:54 +03:00
Morlinest
ddb7f59ef4
Add search mode option to /api/repo/search ( #2756 )
...
* Add repo type option to /api/repo/search
* Add tests and fix result of collaborative filter in specific condition
* Fix/optimize search & tests
* Improve integration tests
* Fix lint errors
* Fix unit tests
* Change and improve internal implementation of repo search
* Use NonexistentID
* Make search api more general
* Change mirror and fork search behaviour
* Fix tests & typo in comment
2017-10-27 00:16:13 +03:00
Lauris BH
6a107e57f6
Add checks for commits with missing author and time ( #2771 )
...
* Add checks for commits with missing author and time
* Fix validate commits with emails if it has no Author
2017-10-26 15:45:14 +08:00
Gibheer
bc84110989
don't check minimum key size when disabled ( #1754 )
...
* cleanup old comments for ed25519
These comments were added when x/crypto/ed25519 could not yet handle
ed25519. It does now, so it should be removed.
Also the key type is now replaced with the proper constant.
* move the minimum key size config before the check
This moves the actual config lookup before any check is done. This
avoids problems with calling to ssh-keygen which doesn't support the
expected output format and returning an error, when the check is disabled.
2017-10-26 09:49:41 +08:00
Lauris BH
eca05b09aa
Add commit count caching ( #2774 )
...
* Add commit count caching
* Small refactoring
* Add different key prefix for refs and commits
* Add configuratuion option to allow to change caching time or disable it
2017-10-26 09:37:33 +08:00
Bwko
3ab580c8d6
Add branch overiew page ( #2108 )
...
* Add branch overiew page
* fix changed method name on sub menu
* remove unused code
2017-10-26 08:49:16 +08:00
Lunny Xiao
796be03e9b
fix discord hook bug ( #2778 )
2017-10-25 13:13:45 +08:00
Lunny Xiao
6eeadb2082
Hide unactive on explore users and some refactors ( #2741 )
...
* hide unactive on explore users and some refactors
* fix test for removed Organizations
* fix test for removed Organizations
* fix imports
* fix logic bug
* refactor the toConds
* Rename TestOrganizations to TestSearchUsers and add tests for users
* fix other tests
* fix other tests
* fix watchers tests
* fix comments and remove unused code
2017-10-24 20:36:19 +03:00
harry
81d1e54a49
Use identicon image for default gravatar. ( #2767 )
...
* Use identicon image for default gravatar.
* Fixed tests.
2017-10-23 03:50:07 -05:00
Lunny Xiao
985a39590b
Use buffersize to reduce database connection when iterate ( #2724 )
...
* use buffersize to reduce database connection when iterate
* fix typo
* add default value on app.ini comment
2017-10-21 14:26:23 +08:00
Jonas Bröms
847272a70d
Only update mirror last update after successful sync ( #2730 )
2017-10-18 21:50:41 +03:00
Morlinest
ccd3577970
Fix repository search function ( #2689 )
...
* Fix and remove FIXME
* Respect membership visibility
* Fix/rewrite searchRepositoryByName function
* Add unit tests
* Add integration tests
* Remove Searcher completely
* Remove trailing space
2017-10-17 23:20:22 +08:00
Lauris BH
c7f4f07765
Integration test for activity page ( #2704 )
...
* Integration test for activity page
* Small code refactoring for acitvity page
* Move activity stats calculation logic to model
2017-10-16 00:54:53 +03:00
Lauris BH
f3833b7ce4
Create new branch from branch selection dropdown ( #2130 )
...
* Create new branch from branch selection dropdown and rewrite it to VueJS
* Make updateLocalCopyToCommit as not exported
* Move branch name validation to model
* Fix possible race condition
2017-10-15 22:59:24 +03:00
Lauris BH
1ec4dc6c1d
Fix so that user can still fork his own repository to owned organizations ( #2699 )
...
* Fix so that user can still fork his own repository to his organizations
* Fix to only use owned organizations
* Add integration test for forking own repository to owned organization
2017-10-15 18:06:07 +03:00
Lauris BH
f42dbdbae5
Add Activity page to repository ( #2674 )
...
* Add Activity page to repository
* Add request data for activity
* Add issue data for activity
* Add user unit right checks
* Add releases to activity
* Log repository unit loading error
2017-10-15 02:17:39 +03:00
Lauris BH
8863e74f2a
Fix organization watch migration ( #2703 )
2017-10-14 20:47:05 +03:00
Patrick G
e89bb7ef6a
Allow custom SSH user in UI for built-in SSH server ( #2617 ) ( #2678 )
...
* Allow custom SSH user in UI for built-in SSH server (#2617 )
* Some fixes
* Did make fmt
* Updated according to review
- Renamed config to BUILTIN_SSH_SERVER_USER
- Removed unnecessary default string value for config item
* Updated according to review
* Fixed some minor issues
2017-10-14 18:51:00 +03:00
Lunny Xiao
514006a2e5
Fix orgnization user watch repository ( #2670 )
...
* remove orgnization watch repositories
* fix migration
* fix typo and missing change
* remove unused code
2017-10-14 22:37:43 +08:00
Konrad Langenberg
fda0b71fce
Moved struct inside migration
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-10 23:39:13 +02:00
Konrad
81dfd9e15e
Merge branch 'master' of https://github.com/go-gitea/gitea
2017-10-10 22:57:04 +02:00
Morlinest
dff26e25ca
Remove redudant functions and code ( #2652 )
...
* Remove redudant functions and code
2017-10-10 22:37:18 +02:00
Morlinest
c2346e4469
Add repository search unit and integration tests ( #2575 )
...
* Add more repo search tests
* Fix repo search tests
* Always test returned repos length
* Add test with lower pagesize limit (test more pages)
* Add and fix /api/repo/search integration tests
* Simplify unit tests code
* Simplify and unify integration tests code
* Improve test coverage
* Temporary fix tests due to bugs in current repo search implementation
* Revert removing not nil Searcher
* Add more checks to tests
* Simplify privacy checks in /api/repo tests
* Temporary remove privacy check from repo search tests
2017-10-10 09:23:29 +08:00
David Schneiderbauer
ebac051e72
Rewrite migrations to not depend on future code changes ( #2604 )
...
* v38 migration used an outdated version of RepoUnit model (#2602 )
* change repoUnit model in migration
* fix v16 migration repo_unit table
* fix lint error
* move type definition inside function
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* fix lint error
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Fix time tracking migration
* Refactor code
* Fix migration from Gogs
* v38 migration used an outdated version of RepoUnit model (#2602 )
* change repoUnit model in migration
* fix v16 migration repo_unit table
* fix lint error
* move type definition inside function
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* fix lint error
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Fix time tracking migration
* Refactor code
* Fix migration from Gogs
* add error check
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Additiomal fixes for migrations
* Fix timetracking migration
* Add back nil check
2017-10-08 19:08:18 +08:00
Julian Scholle
92123fe82a
GPG key email verification no longer case sensitive ( #2661 ) ( #2663 )
...
* GPG key email verification no longer case sensitive (#2661 )
* case insensitive GPG key email verification now cached (#2661 )
Signed-off-by: Julian Scholle <julian.scholle@googlemail.com>
2017-10-06 23:28:21 +03:00
Kazuki Sawada
ffab139c91
table pull_request wasn't updated correctly ( #2649 )
...
* Fix: table `pull_request` won't be updated correctly
* Update also status column when manually merged
2017-10-06 00:25:40 +03:00
Ethan Koenig
aa962deec0
Replace deprecated Id method with ID ( #2655 )
2017-10-05 07:43:04 +03:00
Konrad Langenberg
752406c40c
Reimplemented usage of Comment Depenendent Issue (in struct) in comments
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-04 23:37:39 +02:00
Konrad Langenberg
9609609627
Merge branch 'master' of https://github.com/go-gitea/gitea
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
# Conflicts:
# models/migrations/migrations.go
# models/migrations/v44.go
2017-10-04 23:36:38 +02:00
Konrad Langenberg
d7a2ffcc69
Merge branch 'master' of https://github.com/go-gitea/gitea
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
# Conflicts:
# models/migrations/migrations.go
# models/migrations/v44.go
2017-10-04 23:15:30 +02:00
Konrad Langenberg
de45d094fa
Removed unused DependentIssue in Comment struct
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-04 23:10:10 +02:00
Morlinest
a79af9cf6f
Fix index column deletion ( #2651 )
2017-10-04 14:26:13 +03:00
Konrad Langenberg
7507e89cee
Optimized Issue Dependency Exists
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-03 15:28:06 +02:00
Konrad Langenberg
63ce7d0f82
Optimized Issue Dependency Left
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-03 15:27:06 +02:00
Konrad Langenberg
79f0315289
Improved Check for dependencies left
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-03 15:00:31 +02:00
Konrad Langenberg
b7e47f3bda
Improved Check for dependencies left
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-03 14:55:18 +02:00
Ethan Koenig
4b2c8ca533
Use session when creating user ( #2638 )
2017-10-03 09:29:26 +03:00
Morlinest
a04718a2a6
Remove repo unit index ( #2621 )
...
* Remove repo unit index
* Fix sqlite
2017-10-02 23:22:25 +03:00
Lunny Xiao
a8717e5e3a
Use AfterLoad instead of AfterSet on Structs ( #2628 )
...
* use AfterLoad instead of AfterSet on Structs
* fix the comments on AfterLoad
* fix the comments on action AfterLoad
2017-10-01 19:52:35 +03:00
Konrad Langenberg
4dd4fad251
Removed unessesary comment
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-01 18:00:31 +02:00
Morlinest
1ad902d529
Fix implementation of repo Home func ( #2601 )
...
* Fix implementation of repo Home func
* Make fixture changes for testing
2017-10-01 16:50:56 +03:00
David Schneiderbauer
26e49b8e3d
Fix doubled issue tab introduced in migration v16 ( #2611 )
...
* fix duplicate issue tab as UnitTypeIssue and UnitTypeExternalTracker are existing at the same time
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
2017-09-28 16:14:51 +03:00
Konrad
7a79dbc7ee
Merge branch 'master' of https://github.com/go-gitea/gitea
2017-09-27 18:01:36 +02:00
Konrad Langenberg
b8d0fc2683
Fixed a bug with comments not showing correctly
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-27 17:49:56 +02:00
Morlinest
cc84ca40d7
Remove redudant issue LoadAttributes() calls ( #2614 )
2017-09-27 09:41:52 -03:00
Konrad Langenberg
a80fbb2a87
Fixed issuecanbeclosed
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-26 22:06:32 +02:00
Konrad
ab9f7b384d
Merge branch 'master' of https://github.com/go-gitea/gitea
2017-09-26 16:44:47 +02:00
Lunny Xiao
dd55534b82
Reduce usage of allcols on update ( #2596 )
...
* reduce usage of allcols on update
* fix bug and tests
2017-09-25 12:59:27 +08:00