summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [skip ci] Updated translations via CrowdinGiteaBot2021-07-148-11/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-07-1423-36/+720
|
* Use TrN helper for email templates (#16425)65432021-07-145-6/+9
| | | | | | | * Add TrN helper * use TrN * a nit
* Make gpg resource string more readable (#16423)delvh2021-07-141-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-07-145-1/+79
|
* Fix activation of primary email addresses (#16385)Meano2021-07-135-49/+56
| | | | | | | | | | | | | | | | * fix: primary email cannot be activated * Primary email should be activated together with user account when 'RegisterEmailConfirm' is enabled. * To fix the existing error state. When 'RegisterEmailConfirm' is enabled, the admin should have permission to modify the activations status of user email. And the user should be allowed to send activation to primary email. * Only judge whether email is primary from email_address table. * Improve logging and refactor isEmailActive Co-authored-by: zeripath <art27@cantab.net>
* Return updated repository when changing repository using API (#16420)65432021-07-131-1/+7
|
* Load issue/PR context popup data only when needed (#15955)Lauris BH2021-07-133-55/+152
| | | | | | | * Load issue/PR context popup data only when needed * Add SVG icon Vue component * Remove unneeded check
* Support HTTP/2 in Let's Encrypt (#16371)Stanley Hu2021-07-132-1/+2
| | | | | Modify the tlsConfig.NextProtos for Let's Encrypt and built-in HTTPS server in order to support HTTP/2. Co-authored-by: 6543 <6543@obermui.de>
* fix calculation for finalPage in repo-search component (#16382)65432021-07-131-1/+1
| | | Co-authored-by: Jan Naahs <jan.naahs@naahstea.de>
* Add option to provide signature for a token to verify key ownership (#14054)zeripath2021-07-1320-726/+1275
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add option to provide signed token to verify key ownership Currently we will only allow a key to be matched to a user if it matches an activated email address. This PR provides a different mechanism - if the user provides a signature for automatically generated token (based on the timestamp, user creation time, user ID, username and primary email. * Ensure verified keys can act for all active emails for the user * Add code to mark keys as verified * Slight UI adjustments * Slight UI adjustments 2 * Simplify signature verification slightly * fix postgres test * add api routes * handle swapped primary-keys * Verify the no-reply address for verified keys * Only add email addresses that are activated to keys * Fix committer shortcut properly * Restructure gpg_keys.go * Use common Verification Token code Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix archive error when rename repo or user (#16399)Lunny Xiao2021-07-135-23/+35
| | | Use repo id instead of full name to generate archive path
* Let branch/tag name be a valid ref to get CI status (#16400)65432021-07-134-60/+92
| | | | | | | | | * fix #16384# * refactor: move shared helper func to utils package * extend Tests * use ctx.Repo.GitRepo if not nil
* Detect encoding changes while parsing diff (#16330)Jimmy Praet2021-07-131-19/+31
| | | * Detect encoding changes while parsing diff
* [skip ci] Updated translations via CrowdinGiteaBot2021-07-136-3/+53
|
* Add checkbox to delete pull branch after successful merge (#16049)Jimmy Praet2021-07-1314-43/+181
| | | | | | | | | | | | | | | | | | | | | | | * Add checkbox to delete pull branch after successful merge * Omit DeleteBranchAfterMerge field in json * Log a warning instead of error when PR head branch deleted * Add DefaultDeleteBranchAfterMerge to PullRequestConfig * Add support for delete_branch_after_merge via API * Fix for API: the branch should be deleted from the HEAD repo If head and base repo are the same, reuse the already opened ctx.Repo.GitRepo * Don't delegate to CleanupBranch, only reuse branch deletion code CleanupBranch contains too much logic that has already been performed by the Merge * Reuse gitrepo in MergePullRequest Co-authored-by: Andrew Thornton <art27@cantab.net>
* Fix external renderer (#16401)65432021-07-122-0/+7
| | | | | | | | | * fix external renderer * use GBackground context as fallback * no fallback, return error Co-authored-by: Lauris BH <lauris@nix.lv>
* Validate Issue Index before querying DB (#16406)Norwin2021-07-121-0/+3
|
* docs: rewrite email setup (#16404)Bagas Sanjaya2021-07-121-11/+19
| | | | | | | * Add intro for both the docs page and mailer methods * Fix numbering level in SMTP section * Recommends implicit TLS Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
* Replace `plugins/docker` with `techknowlogick/drone-docker`in ci (#16407)65432021-07-121-5/+5
| | | | | * plugins/docker -> techknowlogick/drone-docker * It is multi-arch
* [skip ci] Updated translations via CrowdinGiteaBot2021-07-125-10/+2
|
* Add LRU mem cache implementation (#16226)zeripath2021-07-105-6/+219
| | | | | | | | | | | | | | The current default memory cache implementation is unbounded in size and number of objects cached. This is hardly ideal. This PR proposes creating a TwoQueue LRU cache as the underlying cache for Gitea. The cache is limited by the number of objects stored in the cache (rather than size) for simplicity. The default number of objects is 50000 - which is perhaps too small as most of our objects cached are going to be much less than 1kB. It may be worth considering using a different LRU implementation that actively limits sizes or avoids GC - however, this is just a beginning implementation. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix invalid params and typo of email templates (#16394)Meano2021-07-103-6/+6
| | | Signed-off-by: Meano <meanocat@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2021-07-102-4/+7
|
* Added documentation about 413 errors with an nginx solution (#15313)Avahe Kellenberger2021-07-102-0/+14
| | | | | | | * Added documentation about 413 errors with an nginx solution. Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Norwin <noerw@users.noreply.github.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix #16387 - rootless Docker user (#16388)Jonathan Hult2021-07-091-1/+2
| | | Move comment to top of USER instruction
* Update bluemonday to v1.0.15 (#16379)65432021-07-099-67/+44
| | | | | | | * update github.com/microcosm-cc/bluemonday * add exec flag to contrib/update_dependencies.sh * Fix TESTS
* [skip ci] Updated translations via CrowdinGiteaBot2021-07-091-2/+2
|
* specify user in rootless container numerically (#16361)Tobias Florek2021-07-081-1/+1
| | | | | | | | | | | | | * specify user in rootless container numerically With kubernetes' PodSecurityPolicy set to runAsNonRoot it will not allow starting the container. The error message is ``` Error: container has runAsNonRoot and image has non-numeric user (git), cannot verify user is non-root ``` The `USER` directive has to be numerical for that to work. * mention the name of the uid/gid Co-authored-by: 6543 <6543@obermui.de>
* Redirect on bad CSRF instead of presenting bad page (#14937)zeripath2021-07-083-5/+31
| | | | | | The current CSRF handler is a bit harsh with bad CSRF tokens on webpages I think we can be a little kinder and redirect to base page with a flash error Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix source typos (#16374)luzpaz2021-07-083-5/+5
| | | | | | | | | | * Fix source typos Follow up to e0296b6a6 Found via `codespell -q 3 -S ./options/locale,./vendor -L ba,pullrequest,pullrequests,readby` * rm "ignore destory on `make misspell-check`" Co-authored-by: 6543 <6543@obermui.de>
* Fix various documentation, user-facing, and source comment typos (#16367)luzpaz2021-07-0887-132/+132
| | | | | * Fix various doc, user-facing, and source comment typos Found via `codespell -q 3 -S ./options/locale,./vendor -L ba,pullrequest,pullrequests,readby`
* [skip ci] Updated translations via CrowdinGiteaBot2021-07-081-8/+65
|
* fix: not able to update local created non-urlencoded wiki pages (#16139)Gary Wang2021-07-071-13/+43
| | | | | | | | | | | | | | | | | | | | * fix: not able to update local created non-urlencoded wiki pages * tidy code * as per suggestion Signed-off-by: Andrew Thornton <art27@cantab.net> * Don't replace space to dash for unescaped wiki filename Co-authored-by: zeripath <art27@cantab.net> * Remove incorrect comment * Remove NameToUnescapedFilename() Co-authored-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Alpine 3.14 released (#16170)techknowlogick2021-07-073-5/+5
| | | | Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
* Update vendor 20210707 (#16366)techknowlogick2021-07-0717-93/+344
| | | | | | | | | | | | | | | | | * update gitea.com/go-chi/binding * update github.com/blevesearch/bleve/v2 * update github.com/caddyserver/certmagic * update github.com/go-git/go-git/v5 * update github.com/lafriks/xormstore * update github.com/yuin/goldmark * Revert "update gitea.com/go-chi/binding" This reverts commit dea2f292b116114f9316fab95c5fd124174da404.
* Fix typo in customizing-gitea.en-us.md (#16362)冯天书2021-07-071-1/+1
| | | Fixed a type in a URL in PlantUML code example in `customizing-gitea.en-us.md`.
* [skip ci] Updated translations via CrowdinGiteaBot2021-07-071-15/+17
|
* Changelog for v1.14.4 (#16348) (#16351)65432021-07-062-1/+14
| | | | | | | * Changelog for v1.14.4 (#16348) * docs: bump version Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2021-07-062-2/+38
|
* Creating a repo from a template repo via API (#15958)a10121127962021-07-056-0/+296
| | | | | | | | | * Creating a repo from a template repo via API fix #15934 ref: https://docs.github.com/en/rest/reference/repos#create-a-repository-using-a-template Signed-off-by: a1012112796 <1012112796@qq.com>
* Fix docs assets link (#16337)Lunny Xiao2021-07-042-2/+2
|
* Upgrade xorm to v1.1.1 (#16339)Lunny Xiao2021-07-0439-1193/+981
|
* Fix relative links in postprocessed images (#16334)zeripath2021-07-042-1/+37
| | | | | | | | | | If a pre-post-processed file contains relative img tags these need to be updated and joined correctly with the prefix. Finally, the node attributes need to be updated. Fix #16308 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* Update Vendor (#16325)65432021-07-04319-21056/+33574
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Dependencie Update Script * update gitea.com/lunny/levelqueue * update github.com/PuerkitoBio/goquery * update github.com/alecthomas/chroma * update github.com/blevesearch/bleve/v2 * update github.com/caddyserver/certmagic * update github.com/go-enry/go-enry/v2 * update github.com/go-redis/redis/v8 * update github.com/hashicorp/golang-lru * update github.com/klauspost/compress * update github.com/markbates/goth * update github.com/mholt/archiver/v3 * update github.com/microcosm-cc/bluemonday * update github.com/minio/minio-go/v7 * update github.com/olivere/elastic/v7 * update github.com/xanzy/go-gitlab * update github.com/yuin/goldmark
* [skip ci] Updated licenses and gitignoresGiteaBot2021-07-041-0/+78
|
* docs: Fix broken anchors in links to awesome-gitea (#16331)Val Lorentz2021-07-032-4/+4
|
* Fix U2F error reasons always hidden (#16327)Stephen Holdaway2021-07-031-1/+1
| | | | | | | | | This strict equality check in `u2fError` was causing the error description to hide immediately after showing. `Object.keys` always returns strings, but `errorType` argument is usually a number type. Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2021-07-031-0/+15
|
* Fix modified files list in webhooks when there is a space (#16288)zeripath2021-07-022-18/+152
| | | | | | | | | | | | | | | | | * Fix modified files list in webhooks when there is a space There is an unfortunate bug with GetCommitFileStatus where files with spaces are misparsed and split at the space. There is a second bug because modern gits detect renames meaning that this function no longer works correctly. There is a third bug in that merge commits don't have their modified files detected correctly. Fix #15865 Signed-off-by: Andrew Thornton <art27@cantab.net>