kolaente
5852b7c9f3
Merge branch 'master' into master
2018-02-27 20:06:12 +01:00
kolaente
5e5139faed
Simplify error
2018-02-27 20:03:10 +01:00
kolaente
91e0b53d26
Simplify redirect
2018-02-27 19:50:58 +01:00
kolaente
250138f88e
Return JSON when trying to close issue dependencies and fail
2018-02-27 19:47:56 +01:00
kolaente
0c6f56d6c0
Remove redundant sprintf
2018-02-27 19:27:30 +01:00
kolaente
9313332fd4
Cleanup + fmt
2018-02-27 18:34:17 +01:00
Gitea
d2ab9e23ab
Fixed http status code on redirect
2018-02-27 18:30:00 +01:00
Morgan Bazalgette
535445c32e
Rework special link parsing in the post-processing of markup ( #3354 )
...
* Get rid of autolink
* autolink in markdown
* Replace email addresses with mailto links
* better handling of links
* Remove autolink.js from footer
* Refactor entire html.go
* fix some bugs
* Make tests green, move what we can to html_internal_test, various other changes to processor logic
* Make markdown tests work again
This is just a description to allow me to force push in order to restart
the drone build.
* Fix failing markdown tests in routers/api/v1/misc
* Add license headers, log errors, future-proof <body>
* fix formatting
2018-02-27 09:09:18 +02:00
bugreport0
521945a2d2
Fix missing translations when updating username. ( #3564 )
...
* Fix missing translations when updating username.
* Fix reserved username translated string test.
* Fix 'username reserved' string test a bit more.
2018-02-25 15:56:25 +02:00
Bo-Yi Wu
04b3e8cbdc
refactor: reduce sql query in retrieveFeeds ( #3547 )
2018-02-21 18:55:34 +08:00
kolaente
7d1df8b38b
Merge branch 'master' into master
2018-02-20 19:27:22 +01:00
Ethan Koenig
7b104f0cd0
Populate URL field of API commits ( #3546 )
...
* Populate URL field of API commits
* fix orgmode_test
2018-02-20 20:50:42 +08:00
kolaente
32db1b36f5
Merge branch 'master' of https://github.com/go-gitea/gitea
...
# Conflicts:
# models/migrations/migrations.go
# models/migrations/v57.go
2018-02-19 08:33:31 +01:00
Codruț Constantin Gușoi
96c268c0fc
Implements generator cli for secrets ( #3531 )
...
Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
2018-02-18 20:14:37 +02:00
Konrad
64e61d6aa5
Merge branch 'master' of https://github.com/go-gitea/gitea
2018-02-15 20:03:44 +01:00
Piotr Orzechowski
b104ab3ca1
Add option to enable or disable swagger endpoints ( #3502 )
2018-02-14 06:46:00 +02:00
Ethan Koenig
4c9d9c221a
Improve wiki test ( #3493 )
2018-02-13 11:19:49 +02:00
kolaente
bd3cf60ddb
FIxed import order
2018-02-12 22:59:50 +01:00
kolaente
7566292e4e
Updated copyright header
2018-02-12 18:34:41 +01:00
kolaente
1b63df7ad4
Fixed status codes
2018-02-12 17:42:38 +01:00
kolaente
9584d3f097
gofmt
2018-02-12 17:36:00 +01:00
kolaente
be51a479dc
Merged 'routers/issue_dependency_add' and 'routers/issue_dependency_remove' into one single file
2018-02-12 17:22:43 +01:00
kolaente
9e29f711b0
Merge branch 'master' into master
2018-02-08 16:57:02 +01:00
Lauris BH
283e87d814
Fix rendering of wiki page list if wiki repo contains other files ( #3454 )
...
* Fix rendering of wiki page list if wiki repo contains other files
* Improve wiki filename tests
2018-02-05 16:56:30 +02:00
Morgan Bazalgette
17655cdf1b
Enable caching on assets and avatars ( #3376 )
...
* Enable caching on assets and avatars
Fixes #3323
* Only set avatar in user BeforeUpdate when there is no avatar set
* add error checking after stat
* gofmt
* Change cache time for avatars to an hour
2018-02-04 00:37:05 +02:00
kolaente
cdb5d6593a
Merge branch 'master' into master
2018-01-31 19:32:50 +01:00
Lauris BH
ca4f5c37e6
Fix branch deletion for squash or rebase merged pull requests ( #3425 )
2018-01-30 14:29:39 +02:00
Konrad
647296ce63
Merge branch 'master' of https://github.com/go-gitea/gitea
2018-01-21 16:23:15 +01: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
Marc Brückner
695b10bedd
Fix API-Endpoint release ( #3012 )
...
* Fixes API-Endpoint release (#3005 )
* Using context.ReferencesGitRepo(); doing the same in the PATCH route.
* Add release create, get and update test
2018-01-16 10:54:13 +02:00
kolaente
dd5cfbf656
Simplified "CanCreateIssueDependencies"
2018-01-14 20:20:18 +01:00
kolaente
30ae70a4d0
Moved check for open dependencies to "changeStatus"
2018-01-14 19:12:25 +01:00
kolaente
cf1b573c35
Merge branch 'master' into master
2018-01-13 11:20:57 +01:00
Morgan Bazalgette
eb0f166f50
Address issues pointed out by @lunny in #3339 ( #3352 )
2018-01-12 08:37:30 -06:00
Kim "BKC" Carlbäcker
e5b8b4b5ec
Cleanup models.User.HashPassword ( #3334 )
2018-01-12 00:19:38 +02:00
kolaente
a5b696afe0
typo
2018-01-11 21:33:01 +01:00
kolaente
c44e13b3ad
typo
2018-01-11 21:32:37 +01:00
kolaente
5f187df6b2
Fixed communicating errors to the user
2018-01-11 21:22:39 +01:00
kolaente
d5b1c33f73
Merge branch 'master' into master
2018-01-11 21:09:56 +01:00
Morgan Bazalgette
65861900cd
Handle refactor ( #3339 )
...
* Replace all ctx.Handle with ctx.ServerError or ctx.NotFound
* Change Handle(403) to NotFound, avoid using macaron's NotFound
2018-01-10 23:34:17 +02:00
Antoine GIRARD
84feb016f5
Remove useless fmt.Errorf("%v", err) ( #3337 )
2018-01-09 16:40:05 -02: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
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
Deyong Zhu
d663cef2a5
Fix branch name escaping in compare url ( #3311 )
...
* Fixes #3303
2018-01-08 17:17:24 +02:00
Sandro Santilli
44053532bb
Serve .patch for pull requests ( #3305 )
...
* Serve .patch for pull requests
Closes #3259
Updates "git" module, for GetFormatPatch
* Handle io.Copy error
2018-01-07 15:10:20 +02: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
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
Ethan Koenig
ce7ae17b81
Fix swagger docs ( #3300 )
2018-01-04 14:31:40 +08:00
kolaente
cd470779e8
Merge branch 'master' into master
2018-01-03 17:17:08 +01:00
Elouan Martinet
5057c6b43f
Fix guide link for webhooks in repository settings ( #3291 ) ( #3292 )
...
Signed-off-by: Elouan Martinet <exa@elou.world>
2018-01-03 23:50:09 +08:00
kolaente
b7ed097a8f
Fixed localization
2018-01-01 14:39:33 +01:00
kolaente
df638db68e
Removed unused import
2017-12-29 22:21:21 +01:00
kolaente
8931ced50e
Fixed error messages
2017-12-29 15:47:05 +01:00
kolaente
f48d6cdecd
Error messages moved to locale file
2017-12-29 15:43:12 +01:00
kolaente
5dc9c22972
Renamed "c" to "ctx" for consistency
2017-12-29 15:41:08 +01:00
kolaente
2058f4e5c5
Fixed error message
2017-12-29 15:37:19 +01:00
kolaente
5e20447c66
Replaced c with ctx for consistency
2017-12-29 15:36:18 +01:00
kolaente
70589e6c96
Added Custom error types for issue dependencies
2017-12-29 15:30:43 +01:00
kolaente
1f0bac04c7
Fixed using strconvert
2017-12-29 14:50:07 +01:00
kolaente
2c8103fc12
Fixed import order
2017-12-29 14:48:45 +01:00
kolaente
97140246f1
Renamed "CanUseDependencies" to "CanCreateDependencies" to be more precise
2017-12-29 14:46:07 +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
Ethan Koenig
515cdaa85d
Fix ignored errors when checking if organization, team member ( #3177 )
2017-12-21 09:43:26 +02:00
Lunny Xiao
529482135c
Support default private when creating or migrating repository ( #3239 )
...
* support default private when creating or migrating repository
* fix fmt
* use string constants on repository default private in app.ini
* fix fmt
2017-12-20 06:59:56 -06: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
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
d3c5911ffc
Fix wiki page list not rendering after updatedunix changes ( #3175 )
2017-12-13 21:46:56 +08:00
harry
03ec35ed79
Mention completion for issue editor. ( #3136 )
...
* new issue mention
* Mention completion on new issue and view issue page.
* Code format.
* Require tribute in pull request page.
2017-12-11 14:03:04 +08: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
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
Ethan Koenig
596308f213
Fix missing branch in release bug ( #3108 )
2017-12-08 13:22:02 +08:00
Ethan Koenig
68179dc676
Remove unnecessary function call ( #3109 )
2017-12-08 09:02:34 +08:00
Sasha Varlamov
311c83ad17
Allow adding collaborators with (fullname) ( #3103 )
...
* Allow adding collaborators with (fullname)
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
* Refactor username suffix to utils pkg
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
2017-12-07 15:00:09 +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
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
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
1fded52044
Merge branch 'master' of https://github.com/go-gitea/gitea
...
# Conflicts:
# public/js/index.js
2017-12-02 18:29:32 +01:00
Lunny Xiao
b3d5ba6f90
Fix missing password length check when change password ( #3039 )
...
* fix missing password length check when change password
* add tests for change password
2017-12-02 19:11:22 +02: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
Piotr Orzechowski
57edc3155f
Default log level to Info without hardcoding it in installer ( #3041 )
2017-12-01 15:41:27 +08:00
Lunny Xiao
13e59c8b7a
remove unused variable ( #3038 )
2017-11-30 20:44:25 +02:00
Ethan Koenig
91f3d77ceb
Unit tests for wiki routers ( #3022 )
2017-11-30 17:52:15 +02: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
Sandro Santilli
67b0d2175d
Set OpenID support on by default when installing new instance ( #3010 )
2017-11-29 14:47:42 +02:00
Duncan Ogilvie
551f3cbe42
Memory usage improvements ( #3013 )
...
* govendor update code.gitea.io/git
Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
* Greatly improve memory usage
Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
2017-11-29 09:50:39 +08: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
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
Vlad Temian
6ad4990a65
Add fingerprint to ssh key endpoints. ( #3009 )
...
* Add fingerprint to ssh key endpoints.
* Update gitea sdk vendor
2017-11-28 17:21:39 +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
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
Lauris BH
0d4c63fd70
Fix go-get, src and raw urls to new scheme ( #2978 )
2017-11-27 02:58:54 +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
Lunny Xiao
061c501d54
Fix error when add user has full name to team ( #2973 )
...
* fix error when add user has full name to team
* add comment for extra uname check
2017-11-26 10:01:48 +02:00
Ethan Koenig
40c545ddbc
Fix files/commits of merged PRs ( #2937 )
2017-11-25 21:47:19 +08:00
Timur Makarchuk
dbb7715b0b
Remove render issue link ( #2954 )
...
* Remove function that does nothing
* Remove unused import
2017-11-22 08:25:47 +02: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
schaffman5
7e6c198f21
Apply LANDING_PAGE config options for logged in users ( #2894 )
...
* Extended LANDINGPAGE config variable to logged in users and added switch for 'organizations' in addition to 'home' and 'explore'.
* Updated comments.
Signed-off-by: Mike Schaffer <mschaff@gmail.com>
* Extended LANDINGPAGE config variable to trigger when user logs in and added switch for 'organizations' in addition to 'home' and 'explore'.
Signed-off-by: Mike Schaffer <mschaff@gmail.com>
* Extended LANDINGPAGE config variable to logged in users and added switch for 'organizations' in addition to 'home' and 'explore'.
* Updated comments.
Signed-off-by: Mike Schaffer <mschaff@gmail.com>
* Extended LANDINGPAGE config variable to trigger when user logs in and added switch for 'organizations' in addition to 'home' and 'explore'.
Signed-off-by: Mike Schaffer <mschaff@gmail.com>
* Removed superfluous conditional and correct whitespace.
Signed-off-by: Mike Schaffer <mschaff@gmail.com>
* Update app.ini
Reverted new line.
* Formatting.
Signed-off-by: Mike Schaffer <mschaff@gmail.com>
2017-11-20 15:48:09 +08:00
Ethan Koenig
c3b6383b3a
Fix comment API paths ( #2813 )
2017-11-20 15:24:07 +08:00
Ethan Koenig
876bafb7ef
Fix API status code for hook creation ( #2814 )
...
* Fix API status code for hook creation
* Named constants for response statuses
2017-11-20 15:00:53 +08:00
Ethan Koenig
d22a8dc022
Page parameter for repo search API ( #2915 )
2017-11-15 16:10:26 +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
f38b3b4ce5
Merge branch 'master' of https://github.com/go-gitea/gitea
2017-11-13 18:12:06 +01:00
Ethan Koenig
f26f4a7e01
Update swagger documentation ( #2899 )
...
* Update swagger documentation
Add docs for missing endpoints
Add documentation for request parameters
Make parameter naming consistent
Fix response documentation
* Restore delete comments
2017-11-13 09:02:25 +02:00
Lauris BH
ba2e0240c6
Add LFS object verification step after upload ( #2868 )
...
* Add LFS object verification step after upload
* Fix file verification condition and small refactor
* Fix URLs
* Remove newline and return status 422 on failed verification
* Better error hadling
2017-11-08 15:04:19 +02:00
kolaente
c4ba8d681f
Merge branch 'master' into master
2017-11-06 17:42:41 +01:00
Lunny Xiao
cdc4600725
Fix fork repository cycle to self ( #2860 )
...
* fix fork repository cycle to self
* rename testForkRepo to traverseParentRepo
2017-11-06 12:12:55 +08:00
Ethan Koenig
d91fe5254d
Fix ignored errors in API route ( #2850 )
...
* Fix ignored errors in API route
2017-11-04 19:10:01 +01:00
Lauris BH
08b124dd47
Fix API raw requests for commits and tags ( #2841 )
2017-11-04 01:23:59 +02: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
Cum Gun
eecaba2031
Configurable SSH key exchange algorithm and MAC suite ( #2806 )
2017-11-02 23:26:41 +08:00
Konrad Langenberg
e364cfc20f
Improved Readability
2017-11-01 22:02:41 +01:00
Konrad Langenberg
3beecd2d13
Improved readability
2017-11-01 21:33:42 +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
762266f007
Removed unrelated changes in routes
2017-11-01 11:39:37 +01:00
Konrad
a2b652e14c
Merge branch 'master' of https://github.com/go-gitea/gitea
2017-11-01 11:31:54 +01:00
Konrad
2fe66c2fb3
Removed unrelated changes in routes
2017-11-01 11:31:08 +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
Konrad Langenberg
913584aa6f
fmt
...
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-30 21:45:48 +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
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
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
178bd498b9
fix imports
2017-10-25 13:30:29 +08:00
Lunny Xiao
219ca5cadb
some fixes
2017-10-25 13:26:14 +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
Antoine GIRARD
619b9b5547
Move swagger-ui under /api/v1 ( #2746 )
...
* Move swagger interface under /api/v1
* Update swagger-ui
* Add /api/swagger and prepare for multiple api version
* Update test links
* Fix footer link
2017-10-21 22:05:50 +08:00
spacetourist
7131c7d40d
Configurable SSH cipher suite ( #913 )
...
* Configurable SSH cipher suite
* Update configuration file comment
* Add default in settings loading code
* Fix fmt and log messsage
* Remove default from code as this could probably might not be good idea
2017-10-21 16:13: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
Jonas Franz
f4190f8df8
Render plain text README.txt monospaced ( #2721 )
...
Signed-off-by: Jonas Franz <info@jonasfranz.software>
2017-10-17 02:17:22 +03:00
Lunny Xiao
9e865cee67
Merge password and 2fa page on user settings ( #2695 )
...
* merge password and 2fa page on user settings
2017-10-16 11:14:12 +02:00