summaryrefslogtreecommitdiffstats
path: root/modules/context
Commit message (Collapse)AuthorAgeFilesLines
* Refactor and simplify redirect to url (#3674)Lauris BH2018-03-151-0/+21
|
* Add option to enable or disable swagger endpoints (#3502)Piotr Orzechowski2018-02-141-0/+1
|
* 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
|
* 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
* Fix ignored errors when checking if organization, team member (#3177)Ethan Koenig2017-12-211-3/+10
|
* Fix new pull request link (#3133)Ethan Koenig2017-12-131-1/+0
| | | | | | * Fix new pull request link * Only show button for branches
* Fix legacy URL redirects (#3100)Ethan Koenig2017-12-071-1/+5
|
* Add reactions to issues/PR and comments (#2856)Lauris BH2017-12-041-1/+1
|
* 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
* Remove GetRepositoryByRef and add GetRepositoryByOwnerAndName (#3043)Lunny Xiao2017-12-021-6/+3
| | | | | | | | | | * remove GetRepositoryByRef and add GetRepositoryByOwnerAndName * fix tests * fix tests bug * some improvements
* 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>
* Various wiki bug fixes (#2996)Ethan Koenig2017-11-281-1/+2
| | | | | | * Update macaron * Various wiki bug fixes
* Fix go-get, src and raw urls to new scheme (#2978)Lauris BH2017-11-272-2/+2
|
* fix click create pull request button 404 (#2859)Lunny Xiao2017-11-051-0/+1
|
* Fix API raw file content access for default branch (#2849)Lauris BH2017-11-041-1/+5
|
* Fix API raw requests for commits and tags (#2841)Lauris BH2017-11-041-1/+4
|
* Fix redirect url of legacy commits route (#2825)Morlinest2017-11-031-11/+1
|
* Make URL scheme unambiguous (#2408)Ethan Koenig2017-10-301-21/+99
| | | | | | | | | | * 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
* Code/repo search (#2582)Ethan Koenig2017-10-271-0/+1
| | | Indexed search of repository contents (for default branch only)
* Add commit count caching (#2774)Lauris BH2017-10-261-2/+19
| | | | | | | | | | * 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
* Create new branch from branch selection dropdown (#2130)Lauris BH2017-10-151-0/+6
| | | | | | | | | | * Create new branch from branch selection dropdown and rewrite it to VueJS * Make updateLocalCopyToCommit as not exported * Move branch name validation to model * Fix possible race condition
* Fix so that user can still fork his own repository to owned organizations ↵Lauris BH2017-10-151-0/+5
| | | | | | | | | | (#2699) * 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
* Add Activity page to repository (#2674)Lauris BH2017-10-151-1/+10
| | | | | | | | | | | | | | * Add Activity page to repository * Add request data for activity * Add issue data for activity * Add user unit right checks * Add releases to activity * Log repository unit loading error
* Refactor duplicated code in repo handlers (#2657)Ethan Koenig2017-10-051-86/+49
| | | | | | * Refactor duplicated code in repo handlers * ctx.Handle
* Fix go get response if only app URL is custom in configuration (#2634)Lauris BH2017-10-021-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)Lunny 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)Lauris BH2017-09-201-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
* Fix fmt errors (#2544)Ethan Koenig2017-09-191-1/+2
|
* Fork permission bug fixes (#2534)Jonas Franz2017-09-181-0/+68
| | | | | | | | | | | | | | | | * Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125) Signed-off-by: Jonas Franz <info@jonasfranz.software> * Checking if Code unit is enabled before creating a fork. Signed-off-by: Jonas Franz <info@jonasfranz.software> * Adding a discrete function for RepoIDAssignment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improved Documentation
* 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