summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* Issue due date (#3794)kolaente2018-05-012-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
* Symlink icons (#1416) (#3826)Tris Forster2018-05-012-0/+24
| | | | | | | | | | | | * Updated vendor code for code.gitea.io/git * Display symlinks correctly for files and directories * Added symlink tests * Applied silverwinds stylesheet patch Signed-off-by: Tris Forster <tris.git@shoddynet.org>
* Fix path cleanup in multiple places (#3871)Lauris BH2018-05-011-4/+14
|
* API endpoint for testing webhook (#3550)Ethan Koenig2018-04-291-1/+12
| | | | | | * API endpoint for testing webhook * Empty commit to rerun CI
* Store OAuth2 session data in database (#3660)Lauris BH2018-04-291-9/+10
| | | | | | * Store OAuth2 session data in database * Rename table to `oauth2_session` and do not skip xormstorage initialization error
* Shows total tracked time in issue and milestone list (#3341)Jonas Franz2018-04-291-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Show total tracked time in issue and milestone list Show total tracked time at issue page Signed-off-by: Jonas Franz <info@jonasfranz.software> * Optimizing TotalTimes by using SumInt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fixing wrong total times for milestones caused by a missing JOIN Adding unit tests for total times Signed-off-by: Jonas Franz <info@jonasfranz.software> * Logging error instead of ignoring it Signed-off-by: Jonas Franz <info@jonasfranz.software> * Correcting spelling mistakes Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change error message to a short version Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add error handling to TotalTimes Add variable for totalTimes Signed-off-by: Jonas Franz <info@jonasfranz.de> * Introduce TotalTrackedTimes as variable of issue Load TotalTrackedTimes by loading attributes of IssueList Load TotalTrackedTimes by loading attributes of single issue Add Sec2Time as helper to use it in templates Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fixed test + gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Load TotalTrackedTimes via MilestoneList instead of single requests Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add documentation for MilestoneList Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add documentation for MilestoneList Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix test Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change comment from SQL query to description Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit test by using int64 instead of int Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit test by using int64 instead of int Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if timetracker is enabled Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix test by enabling timetracking Signed-off-by: Jonas Franz <info@jonasfranz.de>
* Add topic support (#3711)Lunny Xiao2018-04-111-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | * add topic models and unit tests * fix comments * fix comment * add the UI to show or add topics for a repo * show topics on repositories list * fix test * don't show manage topics link when no permission * use green basic as topic label * fix topic label color * remove trace content * remove debug function
* Add EnableTimetracking option to app settings (#3719)Bwko2018-04-091-1/+5
|
* Add config option to enable or disable log executed SQL (#3726)Lunny Xiao2018-03-301-0/+2
| | | | | | * add config option to enable or disable log executed SQL * rename ShowSQL to LogSQL
* Add repository setting to enable/disable health checks (#3607)Allen Wild2018-03-271-0/+3
| | | | | | | | | | | | | | New Feature: * Repository struct field for IsFsckEnabled (default true of course) * Admin Settings section on repo options page, accessible only by admin users Possible Enhancements: * There's no way to force running health checks on all repos regardless of their IsFsckEnabled setting. This would be useful if there were an admin API or dashboard button to run fsck immediately. Issue: https://github.com/go-gitea/gitea/issues/1712 Signed-off-by: Allen Wild <allenwild93@gmail.com>
* Add protected branch whitelists for merging (#3689)Chri-s2018-03-251-4/+7
| | | | | | | | * Add database migrations for merge whitelist * Add merge whitelist settings for protected branches * Add checks for merge whitelists
* Global code search support (#3664)Lunny Xiao2018-03-162-8/+25
| | | | | | | | | | | | * add global code search on explore * fix bug when no anyone public repos * change the icon * fix typo and add UnitTypeCode check for login non-admin user * fix ui description when no match
* Refactor and simplify redirect to url (#3674)Lauris BH2018-03-151-0/+21
|
* Add label descriptions (#3662)Lauris BH2018-03-131-3/+4
| | | | | | * Add label descriptions * Add default descriptions to label template
* Fix wiki inter-links with cases and add tests for this case (#3560)Chaz Reid2018-03-052-6/+16
|
* Rework special link parsing in the post-processing of markup (#3354)Morgan Bazalgette2018-02-277-935/+1008
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Get rid of autolink * autolink in markdown * Replace email addresses with mailto links * better handling of links * Remove autolink.js from footer * Refactor entire html.go * fix some bugs * Make tests green, move what we can to html_internal_test, various other changes to processor logic * Make markdown tests work again This is just a description to allow me to force push in order to restart the drone build. * Fix failing markdown tests in routers/api/v1/misc * Add license headers, log errors, future-proof <body> * fix formatting
* fix gpg expired bug when time is zero (#3584)Lunny Xiao2018-02-261-0/+5
|
* Populate URL field of API commits (#3546)Ethan Koenig2018-02-207-82/+103
| | | | | | * Populate URL field of API commits * fix orgmode_test
* Implements generator cli for secrets (#3531)Codruț Constantin Gușoi2018-02-185-58/+114
| | | Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
* Add option to enable or disable swagger endpoints (#3502)Piotr Orzechowski2018-02-142-2/+5
|
* Escape search query (#3486)Jonas Franz2018-02-111-0/+7
| | | Signed-off-by: Jonas Franz <info@jonasfranz.de>
* 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
|