summaryrefslogtreecommitdiffstats
path: root/modules/context
Commit message (Collapse)AuthorAgeFilesLines
* Fix PR, milestone and label functionality if issue unit is disabled (#2710) ↵Lauris BH2017-10-161-0/+9
| | | | | | | | | | | (#2714) * Fix PR, milestone and label functionality if issue unit is disabled or not assigned to user * Fix multi-actions in PR page * Change error message * Fix comment update and delete functionality in PR
* Fix so that user can still fork his own repository to owned organizations ↵Lauris BH2017-10-151-0/+5
| | | | | | | | | (#2699) (#2707) * 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
* Fix go get response if only app URL is custom in configuration (#2634) (#2640)Lauris BH2017-10-031-1/+1
| | | | | * Fix go get response if only app URL is custom in configuration * Rewrite to update Domain setting to match AppURL
* fix go get subpackage bug (#2584) (#2589)v1.2.0-rc3Lunny Xiao2017-09-231-11/+13
| | | | | * fix go get subpackage bug * merge the duplicated funtions
* Sync releases table with tags on push and for mirrors (#2459) (#2554)Lauris BH2017-09-211-0/+1
| | | | | | | | | | | | | | * Sync releases table with tags on push and for mirrors * Code style fixes * Fix api to return only releases * Optimize release creation and update Minimize posibility of race conditions * Fix release lower tag name updating * handle tag reference update by addionally comparing commit id
* Backport: Fix lint, fmt and integration testing errors (#2553)Ethan Koenig2017-09-201-1/+1
| | | | | | | | | | * Fix lint errors * Fix fmt errors (#2544) * Hotfix for integration testing (#2473) * Hotfix for integration testing
* Restricting access to fork functioanlity to users with Code access (#2542)Jonas Franz2017-09-191-0/+69
| | | Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix releases to be counted from database not tags (#2389) (#2424)Lauris BH2017-08-301-1/+9
|
* Improve swagger doc (#2274)Antoine GIRARD2017-08-211-0/+4
| | | | | | | | | | | | | | | | | | | | * Add swagger comment for adminCreateOrg * Add swagger comment for admin route * add hook swagger doc * Add tags * Add auth * Fix name of responses * Edit name method * Update vendor * make generate-swagger
* No error log entries for repo 404 (#2200)Ethan Koenig2017-08-191-2/+2
|
* EnableUnit() -> UnitEnabled() (#2242)Ethan Koenig2017-08-021-8/+1
|
* Remove unit types commits and settings (#2161)Lauris BH2017-07-171-2/+3
| | | | | | | | | | * Remove unit types commits and settings * Can not limit units in administrator teams * Limit changing units only to teams with read and write access mode * Small code optimization
* Only show SSH clone URL if signed in (#2169) (#2170)Stefan Kalscheuer2017-07-151-0/+1
| | | | | | | | | | | | | | | | | | | * Add configuration flag SSH_EXPOSE_ANONYMOUS If this flag (default True) is set to false, the SSH clone URL will only be exposed if the current user is signed in. * Default SSH exposure set to false To match GitHub and for security reasons, SSH URL exposure is disabled by default. In addition to that. minor code changes have been applied. Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de> * Add integration tests * Hide clone button neither HTTP and SSH is enabled Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
* Fix missing-return bug (#2109)Ethan Koenig2017-07-041-0/+1
|
* Always return valid go-get meta, even if unauthorized (#2010)Kim "BKC" Carlbäcker2017-06-261-3/+41
| | | | | | * Always return valid go-get meta, even if unauthorized * don't leak information
* Merge pull request #1829 from ethantkoenig/no_branchesAndrey Nering2017-06-121-0/+4
|\ | | | | Commitless repos should be bare
| * Commitless repos should be bareEthan Koenig2017-05-281-0/+4
| |
* | Fix PR template error (#1834)Ethan Koenig2017-05-301-7/+5
|/
* fix admin lost permission caused by #947Lunny Xiao2017-05-191-1/+6
|
* Add units to team (#947)Lunny Xiao2017-05-181-0/+31
| | | | | | | | | | | | | | | | | | * add units to team * fix lint * finish team setting backend * finished permission controll on routes * fix import blank line * add unit check on ssh/http pull and push and fix test failed * fix fixtures data * remove unused code
* Correct grammar in APIEmpty documentation (#1748)Jonas Östanbäck2017-05-181-1/+1
| | | | | | * Correct grammar in APIEmpty doc * Generate swagger.v1.json
* Generate swagger json (#1402)Antoine GIRARD2017-05-021-3/+31
| | | | | | | - Generate swagger.json into public/ - Add swagger-ui auto-installation - Add footer link to local swagger-ui - Add /swagger url for using app url. - Fix Swagger-UI version via git tag
* Do not allow commiting to protected branch from online editor (#1502)Lauris BH2017-05-021-0/+10
| | | | | | * Do not allow commiting to protected branch from online editor * Add editor integration tests for adding new file and not allowing to add new file to protected branch
* fix go get sub package and add domain on installation to let go get work ↵Lunny Xiao2017-04-211-1/+1
| | | | | | | | | | defaultly (#1518) * fix go get sub package and add domain on installation to let go get work defaultly * fix import sequence * fix .git problem
* Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION (#1369)Sandro Santilli2017-03-291-1/+1
| | | | | | | | | | | * Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION Omit the configuration variable (the default) to be dependent. Fixes #1363 * Move OpenID settings under Service object * Show OpenID SignUp and SignIn status in admin panel / configuration
* feat: Only use issue and wiki on repo. (#1297)Bo-Yi Wu2017-03-181-18/+2
|
* Login via OpenID-2.0 (#618)Sandro Santilli2017-03-171-0/+1
|
* Fix nil-dereference bugEthan Koenig2017-03-151-1/+5
|
* Fix typos in models/ and modules/ (#1248)Ethan Koenig2017-03-153-4/+4
|
* Refactor and fix incorrect comment (#1247)Ethan Koenig2017-03-151-1/+1
|
* Redirects for renamed repos (#807)Ethan Koenig2017-02-051-4/+31
| | | | | | * Redirects for renamed repos * Remove unused phrase from locales
* Add units concept for modulable functions of a repository (#742)Lunny Xiao2017-02-041-0/+15
| | | | | | | | | | | | | | | | * Add units concept for modulable functions of a repository * remove unused comment codes & fix lints and tests * remove unused comment codes * use struct config instead of map * fix lint * rm wrong files * fix tests
* Remove unneeded database loads (#814)Ethan Koenig2017-02-021-3/+1
| | | Remove unnecessary calls to repo.GetOwner() in context handlers
* Repo permission bug fixes (#513)Ethan Koenig2016-12-291-30/+0
|
* [API] Pull Requests (#248)Kim "BKC" Carlbäcker2016-12-021-0/+22
|
* Fixes xss, clickjacking & password autocompletionBwko2016-11-291-2/+5
|
* Golint fixed for modules/setting (#262)Lunny Xiao2016-11-275-16/+16
| | | | | | * golint fixed for modules/setting * typo fixed and renamed UNIXSOCKET to UnixSocket
* Golint fixed for modules/contextLunny Xiao2016-11-256-2/+19
|
* API endpoints for starsEthan Koenig2016-11-161-0/+31
|
* fix variable assigned and not used.Bo-Yi Wu2016-11-151-4/+0
| | | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Normalize files with gofmtThibault Meyer2016-11-112-3/+3
|
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-106-17/+17
| | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* ACCESS_MODE_* -> AccessMode*Sandro Santilli2016-11-072-7/+7
|
* Set correct doc url for go-sdkThomas Boerger2016-11-071-1/+1
|
* Merge pull request #50 from 0xbaadf00d/feature/2583-disablehttpcloningRachid Zarouali2016-11-071-0/+1
|\ | | | | Disable HTTP cloning
| * rename variable + fix wiki linkThibault Meyer2016-10-041-1/+1
| |
| * Can disable GIT interactions by HTTP protocolThibault Meyer2016-09-181-0/+1
| |
* | Replace gogits/git-module dependency with go-gitea/git (#94)Sandro Santilli2016-11-061-1/+1
| | | | | | | | | | | | | | | | * Replace gogits/git-module dependency with go-gitea/git Fixes #92 * Remove git alias for git module import (not needed)
* | Fix imports found by goimports.Matthias Loibl2016-11-055-18/+12
| |
* | Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-036-16/+16
|/