summaryrefslogtreecommitdiffstats
path: root/routers
Commit message (Collapse)AuthorAgeFilesLines
* Add commit count caching (#2774)Lauris BH2017-10-264-10/+13
| | | | | | | | | | * 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
* Add branch overiew page (#2108)Bwko2017-10-263-8/+178
| | | | | | | | * Add branch overiew page * fix changed method name on sub menu * remove unused code
* fix importsLunny Xiao2017-10-251-5/+4
|
* some fixesLunny Xiao2017-10-251-1/+2
|
* Hide unactive on explore users and some refactors (#2741)Lunny Xiao2017-10-244-60/+23
| | | | | | | | | | | | | | | | | | | | | | | | * hide unactive on explore users and some refactors * fix test for removed Organizations * fix test for removed Organizations * fix imports * fix logic bug * refactor the toConds * Rename TestOrganizations to TestSearchUsers and add tests for users * fix other tests * fix other tests * fix watchers tests * fix comments and remove unused code
* Move swagger-ui under /api/v1 (#2746)Antoine GIRARD2017-10-214-8/+22
| | | | | | | | | | | | * Move swagger interface under /api/v1 * Update swagger-ui * Add /api/swagger and prepare for multiple api version * Update test links * Fix footer link
* Configurable SSH cipher suite (#913)spacetourist2017-10-211-2/+2
| | | | | | | | | | | | * Configurable SSH cipher suite * Update configuration file comment * Add default in settings loading code * Fix fmt and log messsage * Remove default from code as this could probably might not be good idea
* Fix repository search function (#2689)Morlinest2017-10-172-16/+14
| | | | | | | | | | | | | | | | * Fix and remove FIXME * Respect membership visibility * Fix/rewrite searchRepositoryByName function * Add unit tests * Add integration tests * Remove Searcher completely * Remove trailing space
* Render plain text README.txt monospaced (#2721)Jonas Franz2017-10-171-2/+3
| | | Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Merge password and 2fa page on user settings (#2695)Lunny Xiao2017-10-162-41/+33
| | | * merge password and 2fa page on user settings
* Fix PR, milestone and label functionality if issue unit is disabled (#2710)Lauris BH2017-10-166-61/+63
| | | | | | | | | | * 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 plain readme didn't render correctly on repo home page (#2705)Lunny Xiao2017-10-161-12/+7
| | | | | | | | * fix plain readme didn't render correctly on repo home page * fix missing render * remove unused template variables
* Integration test for activity page (#2704)Lauris BH2017-10-161-24/+4
| | | | | | | | * Integration test for activity page * Small code refactoring for acitvity page * Move activity stats calculation logic to model
* Create new branch from branch selection dropdown (#2130)Lauris BH2017-10-152-0/+53
| | | | | | | | | | * 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 .netrc authentication (#2700)David Schneiderbauer2017-10-151-10/+24
| | | | | | * provide both possible authentication solutions Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Fix so that user can still fork his own repository to owned organizations ↵Lauris BH2017-10-151-6/+20
| | | | | | | | | | (#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
* Remove direct user adding to organization members (#2641)Lauris BH2017-10-152-42/+0
|
* Add Activity page to repository (#2674)Lauris BH2017-10-152-0/+81
| | | | | | | | | | | | | | * 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
* Remove redudant functions and code (#2652)Morlinest2017-10-102-35/+23
| | | * Remove redudant functions and code
* fix panic on gogs webhook creation (#2675)David Schneiderbauer2017-10-081-2/+2
| | | | | | | | | | * fix panic on gogs webhook creation Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * fix panic in gogs webhook edit Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Change default sort order (#2647)Kazuki Sawada2017-10-052-9/+10
| | | | | | | | | | | | * sort repositories by `updated_unix` in Explore * Fix UI problem * Added missing sort order "newest" * Change default sort order * fmt
* Change pull description text (#2075) (#2646)Kazuki Sawada2017-10-041-11/+23
| | | | | | * Change pull description text * move duplicated code into helper function
* Remove repo unit index (#2621)Morlinest2017-10-021-6/+0
| | | | | | * Remove repo unit index * Fix sqlite
* Fix implementation of repo Home func (#2601)Morlinest2017-10-011-8/+13
| | | | | | * Fix implementation of repo Home func * Make fixture changes for testing
* Remove redudant CheckUnit calls in router (#2627)Morlinest2017-09-301-4/+4
|
* Remove redudant issue LoadAttributes() calls (#2614)Morlinest2017-09-271-6/+0
|
* fix go get subpackage bug (#2584)Lunny Xiao2017-09-231-21/+1
| | | | | | * fix go get subpackage bug * merge the duplicated funtions
* Use custom type and constants to hold order by options (#2572)Morlinest2017-09-222-19/+19
|
* fix readme view bug (#2566)Lunny Xiao2017-09-211-1/+3
|
* Add init support of orgmode document type on file view and readme (#2525)Lunny Xiao2017-09-215-10/+8
| | | | | | | | | | | | | | * add init support of orgmode document type on file view and readme * fix imports * fix imports and readmeExist * fix imports order * fix format * remove unnecessary convert
* Sync releases table with tags on push and for mirrors (#2459)Lauris BH2017-09-202-86/+101
| | | | | | | | | | | | | | | * 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
* Sort repository tree entries in natural way (#2506)Lauris BH2017-09-191-1/+1
| | | | | | | | | | | | * Sort repository tree entries in natural way * Fix sort for different length strings with first parts equal * Improve test case * Refactor return statements * Update gitea/git dependency
* Fork permission bug fixes (#2534)Jonas Franz2017-09-181-2/+4
| | | | | | | | | | | | | | | | * 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 issue search (#2387)Ethan Koenig2017-09-162-3/+3
| | | | | | | | | | * Improve issue indexer * Fix new issue sqlite bug * Different test indexer paths for each db * Add integration indexer paths to make clean
* Restructure markup & markdown to prepare for multiple markup language… (#2411)Lunny Xiao2017-09-164-17/+15
| | | | | | | | | | * restructure markup & markdown to prepare for multiple markup languages support * adjust some functions between markdown and markup * fix tests * improve the comments
* Implementation of all repositories of a user from user->settings (#1740)Rémy Boulanouar2017-09-142-0/+36
| | | | | | | | | | | | * Implementation of all repositories of a user from user->settings * Update message when no repository found * Update according to comments * Change UI to have a better look * improved user repositories UI
* improve protected branch to add whitelist support (#2451)Lunny Xiao2017-09-148-143/+216
| | | | | | | | | | | | | | | | | | | | * 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
* Display commit status on landing page of repo (#1784)Rémy Boulanouar2017-09-142-0/+18
| | | | | | | | * Display commit status on landing page of repo * improve last status of commits and add link to ci * fix last commit status since the order of ids are desc
* Hotfix for "Add time manually" ↵Jonas Franz2017-09-131-1/+1
| | | | | (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125) (#2499) Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Feature: Timetracking (#2211)Jonas Franz2017-09-128-4/+324
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Only check at least one email gpg key (#2266)Antoine GIRARD2017-09-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | * Only require one email (possibly not yet validated) * Update message error and check validation of commit * Add integrations tests * Complete integration for import * Add pre-check/optimization * Add some test (not finished) * Finish * Fix fixtures * Fix typo * Don't guess key ID
* Webhooks for repo creation/deletion (#1663)Ethan Koenig2017-09-038-14/+15
| | | | | | | | * Webhooks for repo creation/deletion * add createHookTask * Add handles for GetSlackPayload and GetDiscordPayload
* fix orgnization webhooks (#2422)Lunny Xiao2017-08-301-1/+1
| | | | | | * fix org webhooks * remove trace code
* fix webhook test (#2415)Lunny Xiao2017-08-291-2/+10
| | | | | | | | * fix webhook test * fix error message * fix typo
* Fix route handler order (#2409)Ethan Koenig2017-08-291-3/+4
| | | | | | * Fix route handler order * Fix more routes
* fix missing orgnization discord webhook (#2414)Lunny Xiao2017-08-292-1/+2
|
* Implementation of discord webhook (#2402)Lunny Xiao2017-08-282-5/+108
| | | | | | | | | | | | * implementation of discord webhook * fix webhooks * fix typo and unnecessary color values * fix typo * fix imports and revert changes to webhook_slack.go
* fix duplicated feed (#2370)Lunny Xiao2017-08-282-2/+0
|
* Fix missing collabrative repos (#2367)Lunny Xiao2017-08-242-18/+21
| | | | | | | | * fix missing collabrative repos * fix bug of collabrative * fix SQL quotes
* Add possibility to record branch or tag information in an issue (#780)Zsombor2017-08-241-0/+10
|