aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Project: show referenced PRs in issue cards (#14183)Roberto Santalla2021-01-204-4/+38
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Prevent panic on fuzzer provided string (#14405)zeripath2021-01-202-10/+53
| | | | | | | | | | | | | | | | | | | * Prevent panic on fuzzer provided string The fuzzer has found that providing a <body> tag with an attribute to PostProcess causes a panic. This PR removes any rendered html or body tags from the output. Signed-off-by: Andrew Thornton <art27@cantab.net> * Placate lint * placate lint again Signed-off-by: Andrew Thornton <art27@cantab.net> * minor cleanup Signed-off-by: Andrew Thornton <art27@cantab.net>
* upgrade to alpine 3.13 (#14343)techknowlogick2021-01-203-5/+5
|
* Fix log http status is always zero (#14400)Lunny Xiao2021-01-192-2/+72
| | | | | | | * Fix log http status is always zero * Fix lint Co-authored-by: 6543 <6543@obermui.de>
* Align dropdown right (#14406)Kyle D2021-01-203-3/+3
|
* Note that all template directories are relative to the `CustomPath` ↵Jake Howard2021-01-191-27/+28
| | | | | | | | | | | | | configuration, not a `custom` directory inside it (#14399) * Note that all template directories are relative to the `CustomPath` configuration, not a `custom` directory inside it. This is a minor clarification, which makes locating where the templates need to be much easier * Note that it's possible to read the `GITEA_CUSTOM` value from the admin * Use "$GITEA_CUSTOM" as placeholder It's more obvious it's a variable and not a typo
* Add pager to the branches page (#14202)Chester Liu2021-01-196-80/+152
| | | | | | | | | | | * Add pager to the branches page * override pageSize if bigger than max * Make branches commit range configurable Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: silverwind <me@silverwind.io>
* Removed invalid form tag (#14391)KN4CK3R2021-01-191-12/+9
| | | introduced by #5073
* Update back-up restore example for 1.13 changes (#14374)Daniel Vos2021-01-183-17/+49
| | | | | | Signed-off-by: Daniël Vos <danielvos@outlook.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* It seems vet on windows is unnecessary (#14302)Lunny Xiao2021-01-191-1/+1
| | | | | * It seems vet on windows is unnecessary * add vet back to drone but remove GOOS and GOARCH when build vet
* Use path not filepath in routers/editor (#14390)zeripath2021-01-191-4/+3
| | | | | | The incorrect use of filepath instead of path means that it is possible to cause a stackoverflow on Windows Signed-off-by: Andrew Thornton <art27@cantab.net>
* Display error if twofaSecret cannot be retrieved (#14372)Ash McKenzie2021-01-182-1/+9
|
* Check if label template exist first (#14384)65432021-01-185-33/+40
| | | | | | | * add check * refactor * rollback repo on error after session closed
* Allow passcode invalid error to appear (#14371)Ash McKenzie2021-01-181-1/+1
| | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* exclude authored PRs from Review Requested filter (#14368)Jimmy Praet2021-01-181-0/+1
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-181-0/+1
|
* Upgrade blevesearch dependency to v2.0.1 (#14346)Lauris BH2021-01-17459-4212/+7519
| | | | | | | * Upgrade blevesearch dependency to v2.0.1 * Update rupture to v1.0.0 * Fix test
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-171-1/+2
|
* Implement ghost comment mitigation (#14349)65432021-01-177-1/+27
| | | | | | | | | | | | | * Implement ghost comment mitigation Adds a config option USER_DELETE_WITH_COMMENTS_MAX_DAYS to the [service] section. See https://codeberg.org/Codeberg/Discussion/issues/24 for the underlying issue. * cleanup * use setting module correctly * add to docs Co-authored-by: Moritz Marquardt <git@momar.de>
* Add edit, delete and reaction support to code review comments on issue page ↵Lauris BH2021-01-175-20/+101
| | | | (#14339)
* Add review requested filter on pull request overview (#13701)Jimmy Praet2021-01-179-88/+156
| | | | | | | | | | | | | * Add review requested filter on pull request overview #13682 fix formatting * add review_requested filter to /repos/issues/search API endpoint * only Approve and Reject status should supersede Request status * add support for team reviews * refactor: remove duplication of issue filtering conditions
* escape branch names in compare url (#14364)Jimmy Praet2021-01-171-5/+5
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-171-0/+1
|
* label and milestone webhooks on issue/pull creation (#14363)Jimmy Praet2021-01-172-0/+12
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-161-0/+2
|
* Fix middlewares sequences (#14354)Lunny Xiao2021-01-161-5/+5
| | | Co-authored-by: 6543 <6543@obermui.de>
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-162-2/+23
|
* Sort issue search results by revelance (#14353)Lauris BH2021-01-165-5/+6
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-151-0/+6
|
* KanBan: be able to set default board (#14147)65432021-01-157-55/+192
| | | | Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-1518-102/+16
|
* Kd/fix allow svg doctype (#14344)Kyle D2021-01-152-2/+10
| | | | | | | | | * make svg regex case-insensitive & use strict word boundary * allow doctype svg * add doctype tests * allow <!DOCTYPE svg> and <svg/>
* restrict query selector to edit form (#14307)Norwin2021-01-152-3/+3
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Merge default and system webhooks under one menu (#14244)Lauris BH2021-01-1512-141/+148
|
* Use IsProd instead of testing if it's equal. (#14336)Lunny Xiao2021-01-147-14/+17
| | | | Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
* Use ServerError provided by Context (#14333)Lunny Xiao2021-01-144-9/+9
| | | ... instead of InternalServerError by macaron
* Fix typo (#14332)Lunny Xiao2021-01-142-2/+2
|
* Use Request.URL.RequestURI() for fcgi (#14312) (#14314)Kyungmin Bae2021-01-132-7/+7
|
* Update Linktechknowlogick2021-01-131-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-131-0/+2
|
* Kd/add bountysource (#14323)Kyle D2021-01-133-0/+7
| | | | | * Add bountysource to Sponsors link * Add badge to readme
* Issues overview should not show issues from archived repos (#13220)Elena Neuschild2021-01-1214-163/+490
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add lots of comments to user.Issues() * Answered some questions from comments * fix typo in comment * Refac user.Issues(): add func repoIDs * Refac user.Issues(): add func userRepoIDs * Refac user.Issues(): add func issueIDsFromSearch * Refac user.Issues(): improve error handling * Refac user.Issues(): add inline documentation and move variable declarations closer to their usages * Refac user.Issues(): add func repoIDMap * Refac user.Issues(): cleanup * Refac: Separate Issues from Pulls during routing * fix typo in comment * Adapt Unittests to Refactoring * Issue13171: Issue and PR Overviews now ignore archived Repositories * changed some verbatim SQL conditions to builder.Eq * models/issue.go: use OptionalBool properly Co-authored-by: 6543 <6543@obermui.de> * Use IsArchived rather than ExcludeArchivedRepos * fixed broken test after merge * added nil check * Added Unit Test securing Issue 13171 fix * Improved IsArchived filtering in issue.GetUserIssueStats * Removed unused func * Added grouping to avoid returning duplicate repo IDs Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Gitea <gitea@fake.local> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Display SVG files as images instead of text (#14101)Jonathan Tran2021-01-1247-16/+736
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change to display SVG files as images * Remove unsafe styles from SVG CSP * Add integration test to test SVG headers * Add config setting to disable SVG rendering * Add test for img tag when loading SVG image * Remove the Raw view button for svg files since we don't fully support this * Fix copyright year * Rename and move config setting * Add setting to cheat sheet in docs * Fix so that comment matches cheat sheet * Add allowing styles in CSP based on pull request feedback * Re-enable raw button since we show SVG styles now * Change so that SVG files are editable * Add UI to toggle between source and rendered image for SVGs * Change to show blame button for SVG images * Fix to update ctx data * Add test for DetectContentType when file is longer than sniffLen Co-authored-by: Jonathan Tran <jon@allspice.io> Co-authored-by: Kyle D <kdumontnu@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-131-0/+10
|
* Update docs to clarify issues raised in #14272 (#14318)Nuno Silva2021-01-132-5/+12
| | | | | - example config is not supposed to be copied - 'persistable-channel' uses a leveldb internally - '*CONN_STR' overrides queue DIR
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-101-1/+2
|
* [Refactor] Passwort Hash/Set (#14282)65432021-01-1010-32/+158
| | | | | | | | | * move SaltGeneration into HashPasswort and rename it to what it does * Migration: Where Password is Valid with Empty String delete it * prohibit empty password hash * let SetPassword("") unset pwd stuff
* Add option to change username to the admin panel (#14229)65432021-01-109-43/+122
| | | | | Co-authored-by: Bwko <bouwko@gmail.com> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: zeripath <art27@cantab.net>
* fix mailIssueCommentBatch for pull request (#14252)a10121127962021-01-091-1/+5
| | | | | fix #14250 Signed-off-by: a1012112796 <1012112796@qq.com>
* Remove self from MAINTAINERS (#14286)Cirno the Strongest2021-01-091-1/+0
| | | My time is limited and given recent developments, I don't think i want to dedicate any more of my time to this project.