Commit Graph

8175 Commits (2657e718b6a74775fd52709fb8b3bed0f9eabe49)
 

Author SHA1 Message Date
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
Colin Arnott 66e99d722a upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 ()
editorconfig-core-go made breaking api changes and has recently released
v2.1.1. This change consumes the new api and fixes up any breaking
references.
Colin Arnott 80655026d2 upgrade gopkg.in/ini.v1 ()
ini released v1.48.0 and deprecated the ini.AllCapsUnderscore symbol, as
such, during the upgrade we migrated to using ini.SnackCase.
GiteaBot 9b9b67cd31 [skip ci] Updated translations via Crowdin
zeripath 167e8f18da
Restore Graceful Restarting & Socket Activation ()
* Prevent deadlock in indexer initialisation during graceful restart

* Move from gracehttp to our own service to add graceful ssh

* Add timeout for start of indexers and make hammer time configurable

* Fix issue with re-initialization in indexer during tests

* move the code to detect use of closed to graceful

* Handle logs gracefully - add a pid suffix just before restart

* Move to using a cond and a holder for indexers

* use time.Since

* Add some comments and attribution

* update modules.txt

* Use zero to disable timeout

* Move RestartProcess to its own file

* Add cleanup routine
GiteaBot 4a290bd64c [skip ci] Updated translations via Crowdin
blueworrybear 8c909820a9 Enable Uploading/Removing Attachments When Editing an Issue/Comment ()
6543 d7d348ea86 [UI] Pull Request Download diff Button ()
* Add Diff Download to Compare List

* Add&Change Text for Diff Options

* move button to seperate template

* add drop down menue with options

* Update: Compare

update Gogs, BitBucket, RhodeCode and remove gitea issue link

Co-Authored-By: Lauris BH <lauris@nix.lv>

* remove last things from TESTing
oscar.lofwenhamn 1e9b330525 Update CodeMirror to version 5.49.0 ()
* Update CodeMirror to version 5.49.0

* Update CodeMirror versions in librejs and VERSIONS
Benson Muite 6fa14ac3c8 Update app.ini.sample ()
* Update app.ini.sample

Give further information on hyperlink rendering in Markdown

* Update app.ini.sample

Follow feedback from @guillep2k for CUSTOM_URL in markdown to indicate http and https are always rendered as links.

* Update custom/conf/app.ini.sample

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>

* Update custom/conf/app.ini.sample

Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
Lunny Xiao 20477a69ea
Move clearlabels from models to issue service ()
* move clearlabels from models to issue service

* improve code

* Apply suggestions from code review

Co-Authored-By: zeripath <art27@cantab.net>
Lunny Xiao 34fb9d68a5 Move AddTestPullRequestTask to pull service package from models ()
* move AddTestPullRequestTask to pull service package from models

* fix fmt
Benson Muite ebe8ff782f Update config-cheat-sheet.en-us.md ()
* Update config-cheat-sheet.en-us.md

Add more information on configuring URI hyperlink rendering for Markdown.

* Update config-cheat-sheet.en-us.md

Update description as suggested by @guillep2k

* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
guillep2k cea8ea5ae6 Support inline rendering of CUSTOM_URL_SCHEMES ()
* Support inline rendering of CUSTOM_URL_SCHEMES

* Fix lint

* Add tests

* Fix lint
David Svantesson 8ad2697611 Recalculate repository access only for specific user ()
* Recalculate repository access only for specific user

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Handle user repositories as well, and only add access if minimum mode

* Need to get repo owner to check if organization