Chester Liu
0c0445c97a
Add pager to the branches page ( #14202 )
...
* 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>
2021-01-19 05:07:38 +01:00
KN4CK3R
8d0e331c0a
Removed invalid form tag ( #14391 )
...
introduced by #5073
2021-01-19 04:02:47 +01:00
Daniel Vos
185c5ae2c4
Update back-up restore example for 1.13 changes ( #14374 )
...
Signed-off-by: Daniƫl Vos <danielvos@outlook.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-01-18 21:05:11 -05:00
Lunny Xiao
b4dc080c96
It seems vet on windows is unnecessary ( #14302 )
...
* It seems vet on windows is unnecessary
* add vet back to drone but remove GOOS and GOARCH when build vet
2021-01-19 02:56:10 +01:00
zeripath
b59ed41e81
Use path not filepath in routers/editor ( #14390 )
...
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>
2021-01-19 00:20:10 +01:00
Ash McKenzie
6ff63c8202
Display error if twofaSecret cannot be retrieved ( #14372 )
2021-01-18 21:38:41 +01:00
6543
2686e6bbbe
Check if label template exist first ( #14384 )
...
* add check
* refactor
* rollback repo on error after session closed
2021-01-18 21:00:50 +01:00
Ash McKenzie
127907c5e6
Allow passcode invalid error to appear ( #14371 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-01-18 03:51:32 -05:00
Jimmy Praet
f95dce2f10
exclude authored PRs from Review Requested filter ( #14368 )
...
Co-authored-by: Lauris BH <lauris@nix.lv>
2021-01-18 07:13:15 +02:00
GiteaBot
8e39157e92
[skip ci] Updated translations via Crowdin
2021-01-18 01:22:31 +00:00
Lauris BH
f5abe2f563
Upgrade blevesearch dependency to v2.0.1 ( #14346 )
...
* Upgrade blevesearch dependency to v2.0.1
* Update rupture to v1.0.0
* Fix test
2021-01-17 20:21:14 -05:00
GiteaBot
3aa53dc6bc
[skip ci] Updated translations via Crowdin
2021-01-17 20:49:54 +00:00
6543
21da519c0c
Implement ghost comment mitigation ( #14349 )
...
* 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>
2021-01-17 21:48:38 +01:00
Lauris BH
ca63a9d3f1
Add edit, delete and reaction support to code review comments on issue page ( #14339 )
2021-01-17 19:29:10 +02:00
Jimmy Praet
acb1ceb1f4
Add review requested filter on pull request overview ( #13701 )
...
* 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
2021-01-17 17:34:19 +01:00
Jimmy Praet
872d308892
escape branch names in compare url ( #14364 )
2021-01-17 15:57:42 +01:00
GiteaBot
66e426b2f1
[skip ci] Updated translations via Crowdin
2021-01-17 14:17:10 +00:00
Jimmy Praet
4d9349123f
label and milestone webhooks on issue/pull creation ( #14363 )
2021-01-17 16:15:57 +02:00
GiteaBot
e6155ff9b6
[skip ci] Updated translations via Crowdin
2021-01-16 11:24:18 +00:00
Lunny Xiao
dc66e4740f
Fix middlewares sequences ( #14354 )
...
Co-authored-by: 6543 <6543@obermui.de>
2021-01-16 12:23:02 +01:00
GiteaBot
76fefd803f
[skip ci] Updated translations via Crowdin
2021-01-16 04:56:29 +00:00
Lauris BH
0a3c3357f3
Sort issue search results by revelance ( #14353 )
2021-01-16 12:55:17 +08:00
GiteaBot
2db4733c7d
[skip ci] Updated translations via Crowdin
2021-01-15 20:30:48 +00:00
6543
3091600cc8
KanBan: be able to set default board ( #14147 )
...
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: zeripath <art27@cantab.net>
2021-01-15 22:29:32 +02:00
GiteaBot
c09e11d018
[skip ci] Updated translations via Crowdin
2021-01-15 09:39:56 +00:00
Kyle D
bfd0c47ef6
Kd/fix allow svg doctype ( #14344 )
...
* make svg regex case-insensitive & use strict word boundary
* allow doctype svg
* add doctype tests
* allow <!DOCTYPE svg> and <svg/>
2021-01-15 17:38:41 +08:00
Norwin
a21adf92ec
restrict query selector to edit form ( #14307 )
...
Co-authored-by: Lauris BH <lauris@nix.lv>
2021-01-15 06:55:51 +02:00
Lauris BH
6eee9f0f4e
Merge default and system webhooks under one menu ( #14244 )
2021-01-15 01:24:03 +02:00
Lunny Xiao
84b147c7f0
Use IsProd instead of testing if it's equal. ( #14336 )
...
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
2021-01-14 23:17:03 +02:00
Lunny Xiao
60a3297a33
Use ServerError provided by Context ( #14333 )
...
... instead of InternalServerError by macaron
2021-01-14 21:27:22 +01:00
Lunny Xiao
f76c30094f
Fix typo ( #14332 )
2021-01-14 23:35:10 +08:00
Kyungmin Bae
edbc5c86df
Use Request.URL.RequestURI() for fcgi ( #14312 ) ( #14314 )
2021-01-13 20:30:46 +00:00
techknowlogick
954aeefb05
Update Link
2021-01-13 10:55:52 -05:00
GiteaBot
648d85d426
[skip ci] Updated translations via Crowdin
2021-01-13 15:54:47 +00:00
Kyle D
920c0bde2d
Kd/add bountysource ( #14323 )
...
* Add bountysource to Sponsors link
* Add badge to readme
2021-01-13 10:53:17 -05:00
Elena Neuschild
564030336d
Issues overview should not show issues from archived repos ( #13220 )
...
* 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>
2021-01-12 23:19:17 -05:00
Jonathan Tran
81467e6f35
Display SVG files as images instead of text ( #14101 )
...
* 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>
2021-01-12 22:45:19 -05:00
GiteaBot
9465e60504
[skip ci] Updated translations via Crowdin
2021-01-13 00:51:06 +00:00
Nuno Silva
db9bb1ff69
Update docs to clarify issues raised in #14272 ( #14318 )
...
- example config is not supposed to be copied
- 'persistable-channel' uses a leveldb internally
- '*CONN_STR' overrides queue DIR
2021-01-13 08:49:52 +08:00
GiteaBot
9659808172
[skip ci] Updated translations via Crowdin
2021-01-10 18:06:29 +00:00
6543
74a0481586
[Refactor] Passwort Hash/Set ( #14282 )
...
* 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
2021-01-10 20:05:18 +02:00
6543
6b3b6f1833
Add option to change username to the admin panel ( #14229 )
...
Co-authored-by: Bwko <bouwko@gmail.com>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: zeripath <art27@cantab.net>
2021-01-10 14:14:02 +02:00
a1012112796
d989247bb0
fix mailIssueCommentBatch for pull request ( #14252 )
...
fix #14250
Signed-off-by: a1012112796 <1012112796@qq.com>
2021-01-09 17:34:08 +00:00
Cirno the Strongest
736928286b
Remove self from MAINTAINERS ( #14286 )
...
My time is limited and given recent developments, I don't think i want to dedicate any more of my time to this project.
2021-01-09 01:53:19 -05:00
Jimmy Praet
bcb7f35221
Do not reload page after adding comments in Pull Request reviews ( #13877 )
...
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>
2021-01-08 23:49:55 +02:00
Lunny Xiao
ce43d38b4f
Fix session bug when introduce chi ( #14287 )
...
* Update go-chi session
2021-01-08 14:15:06 +02:00
GiteaBot
461406070c
[skip ci] Updated translations via Crowdin
2021-01-07 13:41:39 +00:00
Timo Gurr
c1e30c9a84
Add secure/httpOnly attributes to the lang cookie ( #9690 ) ( #14279 )
2021-01-07 14:40:24 +01:00
Lunny Xiao
3c96a37162
Some code improvements ( #14266 )
2021-01-06 19:23:57 +00:00
GiteaBot
8688c2be95
[skip ci] Updated translations via Crowdin
2021-01-06 15:12:41 +00:00