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
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