summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [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.
* Do not reload page after adding comments in Pull Request reviews (#13877)Jimmy Praet2021-01-0812-92/+205
| | | | | | | | | | | | | | | | Fixed #8861 * use ajax on PR review page * handle review comments * extract duplicate code FetchCodeCommentsByLine was initially more or less copied from fetchCodeCommentsByReview. Now they both use a common findCodeComments function instead * use the Engine that was passed into the method Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix session bug when introduce chi (#14287)Lunny Xiao2021-01-086-12/+30
| | | * Update go-chi session
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-072-0/+7
|
* Add secure/httpOnly attributes to the lang cookie (#9690) (#14279)Timo Gurr2021-01-071-7/+9
|
* Some code improvements (#14266)Lunny Xiao2021-01-065-3/+17
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-061-6/+6
|
* Fix wrong type on hooktask to convert typ from char(16) to varchar(16) (#14148)Lunny Xiao2021-01-065-8/+114
| | | | | | | | | | | | | | | | | | | | | | | | | * Fix wrong type on hooktask to convert typ from char(16) to varchar(16) * Fix bugs * Improve code * Use different trim function for MSSQL * Fix bug * Removed wrong changed line * Removed wrong changed line * Fix nullable * Fix lint * Ignore sqlite on migration * Fix mssql modify column failure * Move modifyColumn to migrations.go so that other migrate function could use it
* Upgrade XORM links in documentation. (#14265)Grace2021-01-064-4/+4
| | | | | | | | | * [en] upgrade XORM link. * [fr] upgrade XORM link. * [zh-cn] upgrade XORM link. * [zh-tw] upgrade XORM link.
* Check permission for the appropriate unit type (#14261)Jimmy Praet2021-01-061-2/+2
| | | | | | | | | * Check permission for the appropriate unit type Fixes false positives for "User created Issues in Repository which they no longer have access to" errors * change log level to Debug Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Add compliance check for windows to ensure cross platform build (#14260)techknowlogick2021-01-051-0/+12
| | | | | | | | | * Add compliance check for windows to ensure cross platform build * no race condition * woops. meant to change windows, not arm64 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-062-0/+25
|
* Fix windows build error (#14263)Lunny Xiao2021-01-0612-44/+61
| | | | | | | | | | | * fix build * take flash error message back and fix more windows lint error * performance optimization * own step to check lint for windows Co-authored-by: 6543 <6543@obermui.de>
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-051-0/+1
|
* Add option for administrator to reset user 2FA (#14243)65432021-01-054-0/+35
| | | | | | | * Frontend * Backend * only show 2FA-Reset option if posible
* Fix recovery middleware to render gitea style page. (#13857)Lunny Xiao2021-01-0575-307/+5233
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Some changes to fix recovery * Move Recovery to middlewares * Remove trace code * Fix lint * add session middleware and remove dependent on macaron for sso * Fix panic 500 page rendering * Fix bugs * Fix fmt * Fix vendor * recover unnecessary change * Fix lint and addd some comments about the copied codes. * Use util.StatDir instead of com.StatDir Co-authored-by: 6543 <6543@obermui.de>
* upgrade xorm to v1.0.6 (#14246)Lunny Xiao2021-01-0519-24/+91
|
* Handle NotifyCreateRef as create branch in feeds (#14245)Cirno the Strongest2021-01-042-1/+6
| | | Co-authored-by: Lauris BH <lauris@nix.lv>