summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* Reduce repo indexer disk usage (#3452)Ethan Koenig2018-02-053-89/+105
|
* Enable caching on assets and avatars (#3376)Morgan Bazalgette2018-02-043-25/+143
| | | | | | | | | | | | | | * 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
* Allow square brackets in external issue patterns (#3408)Christian Köberl2018-02-032-2/+7
| | | | | | * Allow square brackets in external issue patterns * Added false test cases for checklist elements
* Add sensitive headers (#3429)Antoine GIRARD2018-01-311-0/+6
| | | | | | | * Add HeaderWithSensitiveCase methods to respect casing * Update webhook.go
* Fix go-get content type (#3426)Lauris BH2018-01-291-1/+3
|
* Add doctype to go-get=1 reponse (#3423)Lauris BH2018-01-291-1/+1
|
* Fix SSH auth lfs locks (#3152)Antoine GIRARD2018-01-272-100/+111
| | | | | | | | | | * Fix SSH auth LFS locks * Activate SSH/lock test * Remove debug * Follow @lunny recommendation for AfterLoad method
* Recognize more characters in crossreferenced repo name (#3413)Lauris BH2018-01-272-1/+4
|
* HTML escape all lines of the search result (#3402)Morgan Bazalgette2018-01-221-4/+5
| | | Fixes #3383.
* Use GiteaServer as the user agent for http requests (#3404)Sandro Santilli2018-01-221-1/+1
| | | Otherwise we're still presenting ourselves as GogsServer...
* Remove hardcoded paths to fix randomly failing tests (#3347)Lauris BH2018-01-111-0/+3
| | | | | | * Remove hardcoded paths to fix randomly failing tests * Use correct function for merge path
* Handle refactor (#3339)Morgan Bazalgette2018-01-103-56/+64
| | | | | | * Replace all ctx.Handle with ctx.ServerError or ctx.NotFound * Change Handle(403) to NotFound, avoid using macaron's NotFound
* Enable Libravatar by default in new installations (#3287)Sandro Santilli2018-01-071-1/+1
| | | | Pre-existing installs still have it default to off. This is consistent with OpenID setting.
* Writable deploy keys (closes #671) (#3225)Vlad Temian2018-01-071-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add Pull Request merge options - Ignore white-space for conflict checking, ↵Lauris BH2018-01-051-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add an option to allow redirect of http port 80 to https. (#1928)Mike Fellows2017-12-251-0/+4
| | | | | | | | | | | | | * Add an option to allow redirect of http port 80 to https. This is an "opt in" option (default is to not redirect). It will only redirect if protocol is https and the new REDIRECT_PORT_80 option is set to true. The Port to redirect in previous commit was hardcoded to 80, now it can be specified in the app.ini, defaulting to 80. The boolean option to turn redirection on has been changed to REDIRECT_OTHER_PORT to be logically consistent with the new port option. Signed-off-by: Mike Fellows <mike.fellows@shaw.ca>
* Fix ignored errors when checking if organization, team member (#3177)Ethan Koenig2017-12-211-3/+10
|
* Support default private when creating or migrating repository (#3239)Lunny Xiao2017-12-201-0/+9
| | | | | | | | | | * support default private when creating or migrating repository * fix fmt * use string constants on repository default private in app.ini * fix fmt
* Unit tests for routers/repo/issue_label (#3198)Ethan Koenig2017-12-152-16/+21
|
* Improvements for supporting UI Location (#3146)Lunny Xiao2017-12-142-3/+10
| | | | | | * improvements for supporting UI Location * improved the comment
* Fix new pull request link (#3133)Ethan Koenig2017-12-131-1/+0
| | | | | | * Fix new pull request link * Only show button for branches
* Refactor struct's time to remove unnecessary memory usage (#3142)Lunny Xiao2017-12-114-13/+87
| | | | | | | | | | | | | | * 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
* Fix compile failed without gcc (#3130)Lunny Xiao2017-12-101-1/+0
| | | | | | * fix comile failed without gcc * add sqlite tag for unit test
* Improve LFS tests + fix lfs url refs + keep path upper/lowercase in db. (#3092)Antoine GIRARD2017-12-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix missing branch in release bug (#3108)Ethan Koenig2017-12-081-0/+10
|
* Fix legacy URL redirects (#3100)Ethan Koenig2017-12-071-1/+5
|
* fix redis cache failed (#3086)Lunny Xiao2017-12-041-1/+1
|
* Fix error message sanitiziation (#3082)Ethan Koenig2017-12-041-0/+48
|
* Add reactions to issues/PR and comments (#2856)Lauris BH2017-12-044-1/+29
|
* Minor copy changes (#3074)techknowlogick2017-12-031-1/+1
| | | | | | | | * Minor copy changes Fixes #3058 * Use TrN for translations that depend on count Fix minor type with branches count
* Fix avatar URLs (#3069)Ethan Koenig2017-12-033-23/+91
| | | | | | * Fix avatar URLs * import order
* Fix missing password length check when change password (#3039)Lunny Xiao2017-12-021-1/+3
| | | | | | * fix missing password length check when change password * add tests for change password
* Remove GetRepositoryByRef and add GetRepositoryByOwnerAndName (#3043)Lunny Xiao2017-12-022-17/+9
| | | | | | | | | | * remove GetRepositoryByRef and add GetRepositoryByOwnerAndName * fix tests * fix tests bug * some improvements
* Default log level to Info without hardcoding it in installer (#3041)Piotr Orzechowski2017-12-011-8/+9
|
* Unit tests for wiki routers (#3022)Ethan Koenig2017-11-301-16/+30
|
* Expandable commit bodies (#2980)Sondre Nilsen2017-11-301-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial working state of expandable commit bodies * Fix all commits having showing button for multiline commits * Refactor checking multiline messages method * Force newlines with <br> in commit body * Show multiple lines in the list view of repositories * Fixed proper newlines and minor refactor Use <pre> instead of <p>, this is so we can use \n instead of having to manually place <br> into the HTML. Makes it easier to display commit bodies. * Fix commit list messages jumping around * Fix indentation in view_list.tmpl * Use vertical-align: baseline instead of top * Refactor commit button toggle function * Remove RenderCommitBodyLink function * Add comments * Add newline at the end of _repository.less * Fix long commit bodies not properly wrapping inside <pre> * Don't split on double newlines * Show the commit body in commit view * Update stylesheets * Add/fix comments and run make fmt * Fix spaces not being tabs
* Removed unused field in form (#3023)Ethan Koenig2017-11-291-4/+3
|
* Set OpenID support on by default when installing new instance (#3010)Sandro Santilli2017-11-291-1/+1
|
* Memory usage improvements (#3013)Duncan Ogilvie2017-11-291-0/+3
| | | | | | | | | | * 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>
* Fix git lfs path (#3016)Antoine GIRARD2017-11-291-6/+13
| | | | | | | | * add suffix .git * Remove Content-Type on GET methods * Add migrations to force creation before any further potential migration
* Git LFS lock api (#2938)Antoine GIRARD2017-11-281-0/+236
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Various wiki bug fixes (#2996)Ethan Koenig2017-11-282-1/+4
| | | | | | * Update macaron * Various wiki bug fixes
* Fix go-get, src and raw urls to new scheme (#2978)Lauris BH2017-11-272-2/+2
|
* Fix language names (#2955)Piotr Orzechowski2017-11-231-1/+1
|
* Fix over-escaped characters (#2956)Ethan Koenig2017-11-221-6/+4
|
* Add dingtalk webhook (#2777)Lunny Xiao2017-11-212-1/+12
| | | | | | | | | | | | * add dingtalk webhook type * add vendor * some fixes * fix name check * fix name check & improvment
* Drop deprecated GOGS_WORK_DIR use (#2946)Jonas Bröms2017-11-211-4/+0
|
* Apply LANDING_PAGE config options for logged in users (#2894)schaffman52017-11-201-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Fix memcache support when value is returned as string always (#2924)Lauris BH2017-11-161-2/+27
|
* Update go-ini dependency and remove semicolon hack in translations (#2913)Lauris BH2017-11-151-4/+0
|