summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix deadline on update issue or PR via API (#8696)David Svantesson2019-10-282-16/+14
| | | | | | * Fix deadline on update issue or PR via API * variable initialized directly (review comment)
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-272-13/+16
|
* Add myself as maintainer (#8708)jaqra2019-10-271-0/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-261-2/+2
|
* Move some repositories' operations to a standalone service package (#8557)Lunny Xiao2019-10-2610-89/+179
| | | | | | | | | | | | * Move some repositories' operations to a standalone service package * improve code * remove unused codes * add rollback when fork failed * add repo when return
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-262-0/+4
|
* Improve visibility of "Pending" indicator (#8685)guillep2k2019-10-263-1/+7
| | | | | | | | * Improve visibility of "Pending" indicator * Use background-color instead of just background * Tone down the yellow
* Mail assignee when issue/pull request is assigned (#8546)David Svantesson2019-10-2523-216/+333
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Send email to assigned user * Only send mail if enabled * Mail also when assigned through API * Need to refactor functions from models to issue service * Refer to issue index rather than ID * Disable email notifications completly at initalization if global disable * Check of user enbled mail shall be in mail notification function only * Initialize notifications from routers init function. * Use the assigned comment when sending assigned mail * Refactor so that assignees always added as separate step when new issue/pr. * Check error from AddAssignees * Check if user can be assiged to issue or pull request * Missing return * Refactor of CanBeAssigned check. CanBeAssigned shall have same check as UI. * Clarify function names (toggle rather than update/change), and clean up. * Fix review comments. * Flash error if assignees was not added when creating issue/pr * Generate error if assignee users doesn't exist
* Prevent chrome download page with alt + click (#8669)jaqra2019-10-251-0/+2
|
* Change external asciidoctor tool to embeded mode (#8677)Chris Sexton2019-10-251-1/+1
| | | | | | Ref #8676 * add the `-e` flag for embedded mode * add a level offset to include the title of the document
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-251-0/+40
|
* make call createMilestoneComment on newIssue func (#8678)jaqra2019-10-251-0/+4
| | | | | | * make call createMilestoneComment on newIssue func * make OldMilestoneID 0 instead of -1
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-242-1/+34
|
* Revert "API should follow RequireSignInView (#8654)" (#8675)Lunny Xiao2019-10-241-8/+1
| | | This reverts commit 3c63c3ace4bff1e0e796759a4676fcfff3c5c872.
* API should follow RequireSignInView (#8654)Lunny Xiao2019-10-241-1/+8
|
* Hide some user information via API if user have no enough permission (#8655)Lunny Xiao2019-10-242-5/+4
| | | | | | * Hide some user information via API if user have no enough permission * fix test
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-2412-12/+0
|
* Fix 500 when getting user as unauthenticated user (#8653)Monty Taylor2019-10-241-1/+1
| | | | | | | | When doing GET /api/v1/users/{user} as an unauthenticated user, gitea throws a 500 because it's trying to dereference elements from the context user. It wants to do this to see whether to show the primary email and will do that if the logged in user is admin or the user in question. However, if ctx.User is nil, go gets really unhappy.
* Use AppSubUrl for more redirections (#8647)zeripath2019-10-234-5/+5
| | | | Fix #8461 - fix misspelling of {{AppSubUrl}} and other misspelling in template Fixes /explore and organisation redirection
* Make /users/{username}/repos list private repos the current user has access ↵7FM2019-10-231-1/+1
| | | | to (#8621)
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-231-0/+1
|
* Improve OGP (#8637)John Olheiser2019-10-232-7/+21
| | | | | | | * Improve OGP * Ensure Repo is loaded when checking Pull info Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add 'Alt + click' feature to exclude labels (#8199)jaqra2019-10-237-7/+67
| | | | Add 'Alt + click' and 'Alt +enter' feature to exclude particular labels on searching for issues.
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-231-0/+9
|
* Graceful fixes (#8645)zeripath2019-10-235-7/+35
| | | | | | | | | | * Only attempt to kill parent once * Apply suggestions from code review Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Add waitgroup for running servers
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-231-1/+1
|
* Docs: Added instructions for Docker fail2ban configuration. (#8642)Nathaniel Sabanski2019-10-231-3/+19
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-233-7/+7
|
* Fix extra columns from `label` table (#8633)guillep2k2019-10-233-4/+40
| | | | | | | | | | * Fix extra fields from database * Add migration to drop unneeded columns * Fix lint * Make sure the columns exist
* Enabling and disabling the commit button to prevent empty commits (web ↵Lukas2019-10-231-1/+21
| | | | | | | | | | | | | | | | editor) (#8590) * Enabling and disabling the commit button to prevent empty commits Signed-off-by: LukBukkit <luk.bukkit@gmail.com> * The button won't get enabled if you change the commit message Signed-off-by: LukBukkit <luk.bukkit@gmail.com> * Fixes a spelling mistake for 'silent' Signed-off-by: LukBukkit <luk.bukkit@gmail.com>
* Add SubURL to redirect path (#8632)John Olheiser2019-10-221-1/+1
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-222-11/+20
|
* [assets] configurable URL for static resources (#7911)Jakob Ackermann2019-10-2221-129/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * static url * add cors support for static resources * [assets] work on the migration to configurable url for assets Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * [misc] fix whitespace Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * [assets] fix the loading of the manifest.json It is generated dynamically, and as such can not be served by the cdn. Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * Revert "add cors support for static resources" This reverts commit 42f964fd181dbb8b139808b9be623470d4f0e40f Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * [docs] add the STATIC_URL_PREFIX option Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * [docs] reverse-proxy: nginx: add two setups for STATIC_URL_PREFIX Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * [assets] migrate the url of a new asset to the static url prefix REF: f2a3abc683ad4b2177b7c7c6160a2c0b4316120a Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* Correct some outdated statements in the contributing guidelines (#8612)Lukas2019-10-211-2/+4
| | | | | | | | | | | | | * More information for drone-cli in CONTRIBUTING.md * Increases the version of drone-cli to 1.2.0 * Adds a note for the Docker Toolbox on Windows Signed-off-by: LukBukkit <luk.bukkit@gmail.com> * Fix the url for the blog repository (now on gitea.com) Signed-off-by: LukBukkit <luk.bukkit@gmail.com>
* Prevent .code-view from overriding font on icon fonts (#8614)zeripath2019-10-212-2/+2
|
* Expose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params ↵zeripath2019-10-214-16/+24
| | | | | | | | (#8528) * Expose db.SetMaxOpenConns and allow other dbs to set their connection params * Add note about port exhaustion Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-211-12/+12
|
* Update heatmap fixtures to restore tests (#8615)zeripath2019-10-213-4/+4
| | | | | * Update heatmap fixtures to restore tests * Add hint to check the fixture age on fail
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-212-0/+2
|
* Add id references on all events to allow linking to it (#8608)David Svantesson2019-10-211-20/+20
|
* fix emoji panel be removed bug in issue page, when the sub issue summit the ↵yan2019-10-211-1/+1
| | | | duplicate emoji (#8609)
* Allow Protected Branches to Whitelist Deploy Keys (#8483)zeripath2019-10-2113-2/+48
| | | | | | | | | | | | | | | Add an option to protected branches to add writing deploy keys to the whitelist for pushing. Please note this is technically a breaking change: previously if the owner of a repository was on the whitelist then any writing deploy key was effectively on the whitelist. This option will now need to be set if that is desired. Closes #8472 Details: * Allow Protected Branches to Whitelist Deploy Keys * Add migration * Ensure that IsDeployKey is set to false on the http pushes * add not null default false
* Ensure that diff stats can scroll independently of the diff (#8581)65432019-10-213-190/+205
| | | | | | | | | | | | | | | | | | | | | This PR ensures that once opened the diff stats detail box can be scrolled independently of the diff on the compare page. Fixes #5532 Details: * make diff-detail-box the main container * move file diff at the same level as diff-stats * make diff-view options sticy again * make diff-stats scroll if to mouch * rm useless css info * less: mv diff-stats to own class * use new css class * cleanup less file * diff-counter: margin-right: 15px; * make CI work * make numbers colorful * add sign (-/+) to numbers
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-211-0/+26
|
* Allows external rendering of other filetypes 2 (#8300)George Harvey2019-10-211-0/+14
| | | | | | | | | | | | | * allow external rendering of other filetypes fixes #4996 and #7614 allows rendering of non-tex files, or otherwise accounted for filetypes * Moves flie-size check before read() And performs gofmt -s * Only reads if markType is detected
* Ensure default gpg settings not nil and found commits have reference to repo ↵zeripath2019-10-202-0/+3
| | | | | | | | | | (#8604) * Ensure defaultGPGSettings not nil * Ensure that coerced commits gain a reference to the repo * Add warning if trying to get defaultgpgsetting on an unattached commit
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-205-1/+76
|
* Basic Design guidelines (describing different parts of the code) (#8601)David Svantesson2019-10-201-0/+19
| | | | | | * Design guidelines with description of different parts of code * Better readability with code parts in bold.
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-2030-47/+57
|
* webhook: set Content-Type for application/x-www-form-urlencoded (#8599)Viktor Szakats2019-10-201-0/+2
| | | | | This header is missing since switching http client from GiteaServer (`code.gitea.io/gitea/modules/httplib`) to Go-http-client/1.1 (`net.http`). The header [was added by default](https://github.com/go-gitea/gitea/blob/release/v1.8/modules/httplib/httplib.go#L301) by the former, but this is no longer true with `net.http`, so it needs to be done explicitly: Ref: https://github.com/go-gitea/gitea/issues/7700