Commit Graph

8189 Commits (d0c7a08d751bd068e557efe56683b999d29eb910)
 

Author SHA1 Message Date
Lukas d0c7a08d75 Correct some outdated statements in the contributing guidelines ()
* 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>
zeripath 2f9a66a76c
Prevent .code-view from overriding font on icon fonts ()
zeripath d8161ee3fd
Expose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params ()
* 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>
GiteaBot 73f8069249 [skip ci] Updated translations via Crowdin
zeripath b59a905394
Update heatmap fixtures to restore tests ()
* Update heatmap fixtures to restore tests
* Add hint to check the fixture age on fail
GiteaBot 41c7aa5a3a [skip ci] Updated translations via Crowdin
David Svantesson 969a540ce2 Add id references on all events to allow linking to it ()
yan bfdcedfe89 fix emoji panel be removed bug in issue page, when the sub issue summit the duplicate emoji ()
zeripath 0bfe5eb10b
Allow Protected Branches to Whitelist Deploy Keys ()
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  

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
6543 b1c1e1549b Ensure that diff stats can scroll independently of the diff ()
This PR ensures that once opened the diff stats detail box can be scrolled independently of the diff on the compare page.

Fixes  

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
GiteaBot b539a6e6e3 [skip ci] Updated translations via Crowdin
George Harvey 481c66a91f Allows external rendering of other filetypes 2 ()
* allow external rendering of other filetypes

fixes  and  
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
zeripath 28f60bb5cb
Ensure default gpg settings not nil and found commits have reference to repo ()
* 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
GiteaBot c8f3146cd5 [skip ci] Updated translations via Crowdin
David Svantesson 2657e718b6 Basic Design guidelines (describing different parts of the code) ()
* Design guidelines with description of different parts of code

* Better readability with code parts in bold.
GiteaBot 85e4190761 [skip ci] Updated translations via Crowdin
Viktor Szakats bcd96421dd webhook: set Content-Type for application/x-www-form-urlencoded ()
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
6543 3b379691fa move translation to crowdin ()
Konrad Pozniak f37b87f81e Improve german translation of homepage ()
I'm a native speaker, it looks much better this way
Antoine GIRARD 85609efaad Display Gitea logo in Readme ()
* readme: add gitea logo

* Update README.md

* Update README.md

* Update README.md
Jonas Franz b2b9bdaf26 Fix by handling empty repos ()
* Fix  by handling empty repos

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix tests

Signed-off-by: Jonas Franz <info@jonasfranz.software>
zeripath 5a62ae5cbf
Add setting to disable BASIC authentication ()
Closes .
Lunny Xiao 280f4bebbf Move issue label operations to issue service package ()
* Move issue label operations to issue service package

* fix test

* fix fmt
John Olheiser 240f46a422 Fix template error on account page ()
John Olheiser 0a004a69cd Improve webhooks ()
* 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>
Nicholas Smith 05e437f8fd Remove arrows on numeric inputs ()
* Nothing needs the arrows for input, especially 2FA

* Moved into LESS
GiteaBot 23045c7d53 [skip ci] Updated translations via Crowdin
Lunny Xiao 945f121262
Fix bug on pull requests when transfer head repository ()
* fix bug on pull requests when transfer head repository

* add migration and fix lint

* fix tests and add a cache check on LoadBaseRepo
GiteaBot fecd8f949d [skip ci] Updated translations via Crowdin
John Olheiser 7c4c01c0fd Fix review webhooks ()
Signed-off-by: jolheiser <john.olheiser@gmail.com>
GiteaBot d44053eeda [skip ci] Updated translations via Crowdin
Wenxuan Zhao 17c96ee52b Allow more than 255 characters for tokens in external_login_user table ()
Signed-off-by: Wenxuan Zhao <viz@linux.com>
GiteaBot 37028f0e4e [skip ci] Updated translations via Crowdin
zeripath 115a1cc680
Fix building from source docs to ref AppWorkPath ()
The current source docs reference AppWorkDir instead of AppWorkPath
Lunny Xiao d151503d34 Upgrade xorm to v0.8.0 ()
GiteaBot ae132632a9 [skip ci] Updated translations via Crowdin
Wenxuan Zhao cf42cb0ae6 Allow externalID to be UUID ()
Signed-off-by: Wenxuan Zhao <viz@linux.com>
GiteaBot c43feedb96 [skip ci] Updated translations via Crowdin
Antoine GIRARD c748deef33 don't ignore error message ()
Lukas de4f10be86 Allow committing / adding empty files using the web ui () ()
* Allow committing / adding empty files from the web ui ()

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>
zeripath d4cd4ed442
Restrict modules/graceful to non-windows build and shim the IsChild marker ()
zeripath fcb535c5c3
Sign merges, CRUD, Wiki and Repository initialisation with gpg key ()
This PR fixes  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.
zeripath 1b72690cb8 Ensure that GitRepo is set on Empty repositories ()
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 
8ctopus 8f0e63c80a Doc added how to setup email ()
GiteaBot 50b66b66e7 [skip ci] Updated translations via Crowdin
Lunny Xiao 8edf3d5804 Move sync mirror actions to mirror service package ()
* move sync mirror actions to mirror service

* fix go.mod

* fix lint

* fix lint
Lunny Xiao 1d9a1a0d45 Fix migrate mirror 500 bug ()
zeripath 0b44f0c465
Update the provided gitea.service to mention socket activation ()
* 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>
zeripath e1505d6250
Add missed close in ServeBlobLFS ()
guillep2k 31655aabfc Fix password complexity regex for special characters (on master) ()
* 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