aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
* move translation to crowdin (#8596)65432019-10-202-458/+46
|
* Improve german translation of homepage (#8549)Konrad Pozniak2019-10-201-1/+1
| | | I'm a native speaker, it looks much better this way
* Display Gitea logo in Readme (#8592)Antoine GIRARD2019-10-191-1/+1
| | | | | | | | | | * readme: add gitea logo * Update README.md * Update README.md * Update README.md
* Fix #8582 by handling empty repos (#8587)Jonas Franz2019-10-192-0/+19
| | | | | | | | | | * Fix #8582 by handling empty repos Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix tests Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add setting to disable BASIC authentication (#8586)zeripath2019-10-194-1/+14
| | | Closes #8561.
* Move issue label operations to issue service package (#8553)Lunny Xiao2019-10-197-138/+168
| | | | | | | | * Move issue label operations to issue service package * fix test * fix fmt
* Fix template error on account page (#8562)John Olheiser2019-10-191-1/+1
|
* Improve webhooks (#8583)John Olheiser2019-10-186-94/+167
| | | | | | | | | | | | | | * Improve webhooks Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update MSTeams and ReviewPayload comment Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add repo.FullName to comments Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove arrows on numeric inputs (#8516)Nicholas Smith2019-10-182-0/+12
| | | | | | * Nothing needs the arrows for input, especially 2FA * Moved into LESS
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-181-1/+1
|
* Fix bug on pull requests when transfer head repository (#8564)Lunny Xiao2019-10-1810-73/+87
| | | | | | | | * fix bug on pull requests when transfer head repository * add migration and fix lint * fix tests and add a cache check on LoadBaseRepo
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-181-0/+5
|
* Fix review webhooks (#8570)John Olheiser2019-10-183-16/+40
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-181-1/+1
|
* Allow more than 255 characters for tokens in external_login_user table (#8554)Wenxuan Zhao2019-10-183-3/+24
| | | Signed-off-by: Wenxuan Zhao <viz@linux.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-172-25/+37
|
* Fix building from source docs to ref AppWorkPath (#8567)zeripath2019-10-181-3/+3
| | | The current source docs reference AppWorkDir instead of AppWorkPath
* Upgrade xorm to v0.8.0 (#8536)Lunny Xiao2019-10-17197-291/+191
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-171-0/+7
|
* Allow externalID to be UUID (#8551)Wenxuan Zhao2019-10-176-16/+6
| | | Signed-off-by: Wenxuan Zhao <viz@linux.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-172-0/+7
|
* don't ignore error message (#8550)Antoine GIRARD2019-10-171-1/+1
|
* Allow committing / adding empty files using the web ui (#8420) (#8532)Lukas2019-10-164-4/+39
| | | | | | | | | | * Allow committing / adding empty files from the web ui (#8420) Signed-off-by: LukBukkit <luk.bukkit@gmail.com> * Add a modal to confirm the commit of an empty file Signed-off-by: LukBukkit <luk.bukkit@gmail.com>
* Restrict modules/graceful to non-windows build and shim the IsChild marker ↵zeripath2019-10-168-0/+25
| | | | (#8537)
* Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631)zeripath2019-10-1640-121/+1627
| | | | | | | | | | | | | | | | | | | This PR fixes #7598 by providing a configurable way of signing commits across the Gitea instance. Per repository configurability and import/generation of trusted secure keys is not provided by this PR - from a security PoV that's probably impossible to do properly. Similarly web-signing, that is asking the user to sign something, is not implemented - this could be done at a later stage however. ## Features - [x] If commit.gpgsign is set in .gitconfig sign commits and files created through repofiles. (merges should already have been signed.) - [x] Verify commits signed with the default gpg as valid - [x] Signer, Committer and Author can all be different - [x] Allow signer to be arbitrarily different - We still require the key to have an activated email on Gitea. A more complete implementation would be to use a keyserver and mark external-or-unactivated with an "unknown" trust level icon. - [x] Add a signing-key.gpg endpoint to get the default gpg pub key if available - Rather than add a fake web-flow user I've added this as an endpoint on /api/v1/signing-key.gpg - [x] Try to match the default key with a user on gitea - this is done at verification time - [x] Make things configurable? - app.ini configuration done - [x] when checking commits are signed need to check if they're actually verifiable too - [x] Add documentation I have decided that adjusting the docker to create a default gpg key is not the correct thing to do and therefore have not implemented this.
* Ensure that GitRepo is set on Empty repositories (#8539)zeripath2019-10-161-2/+8
| | | | | | Both issues/new and settings/hooks/git expect `ctx.Repo.GitRepo` to be set. This PR changes the context code to open the GitRepo. Fixes #8538
* Doc added how to setup email (#8520)8ctopus2019-10-161-0/+33
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-161-0/+7
|
* Move sync mirror actions to mirror service package (#8518)Lunny Xiao2019-10-163-80/+93
| | | | | | | | | | * move sync mirror actions to mirror service * fix go.mod * fix lint * fix lint
* Fix migrate mirror 500 bug (#8526)Lunny Xiao2019-10-161-0/+1
|
* Update the provided gitea.service to mention socket activation (#8531)zeripath2019-10-161-2/+33
| | | | | | | | * Update the provided gitea.service since we have graceful restarting again * Update contrib/systemd/gitea.service Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Add missed close in ServeBlobLFS (#8527)zeripath2019-10-161-0/+5
|
* Fix password complexity regex for special characters (on master) (#8525)guillep2k2019-10-169-72/+140
| | | | | | | | | | | | | | | | | | | | * Fix extra space * Fix regular expression * Fix error template name * Simplify check code, fix default values, add test * Fix router tests * Fix fmt * Fix setting and lint * Move cleaning up code to test, improve comments * Tidy up variable declaration