summaryrefslogtreecommitdiffstats
path: root/modules/context
Commit message (Collapse)AuthorAgeFilesLines
...
* improve protected branch to add whitelist support (#2451)Lunny Xiao2017-09-141-2/+2
| | | | | | | | | | | | | | | | | | | | * improve protected branch to add whitelist support * fix lint * fix style check * fix tests * fix description on UI and import * fix test * bug fixed * fix tests and languages * move isSliceInt64Eq to util pkg; improve function names & typo
* Feature: Timetracking (#2211)Jonas Franz2017-09-121-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix releases to be counted from database not tags (#2389)Lauris BH2017-08-281-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
|/
* #2018 able to sync now for mirrorsUnknwon2016-08-301-1/+1
| | | | | - Refactor code to use sync.UniqueQueue - Closes #3509
* router/repo: code refactoringUnknwon2016-08-302-9/+15
|
* Web editor: improve code qualityUnknwon2016-08-241-4/+4
|
* Minor naming improvementUnknwon2016-08-171-2/+2
|
* On showing diff/file, use the tab_width specified on .editorconfig, if any ↵Andrey Nering2016-08-111-0/+24
| | | | | (#3241) Closes #3182