Commit Graph

11047 Commits (343c75635713ecbb494b7729558d0ba05eaf85dc)
 

Author SHA1 Message Date
Lunny Xiao 3287ce22ef
Fix lfs preview bug ()
GiteaBot e35d1bf502 [skip ci] Updated translations via Crowdin
dependabot[bot] 61f9a72f24
Bump gsap from 3.5.1 to 3.6.0 ()
Bumps [gsap](https://github.com/greensock/GSAP) from 3.5.1 to 3.6.0.
- [Release notes](https://github.com/greensock/GSAP/releases)
- [Commits](https://github.com/greensock/GSAP/compare/3.5.1...3.6.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
6543 a0e424da85
Enhance Ghost comment mitigation Settings ()
* refactor models.DeleteComment and delete related reactions too

* use deleteComment for UserDeleteWithCommentsMaxDays in DeleteUser

* nits

* Use time.Duration as other time settings have

* docs

* Resolve Fixme & fix potential deadlock

* Disabled by Default

* Update Config Value Description

* switch args

* Update models/issue_comment.go

Co-authored-by: zeripath <art27@cantab.net>

Co-authored-by: zeripath <art27@cantab.net>
GiteaBot 0e2e73410e [skip ci] Updated translations via Crowdin
zeripath 20f980dcc2
ensure timeout error is shown on u2f timeout ()
Signed-off-by: Andrew Thornton <art27@cantab.net>
EV3R4 af7054511e
Add TrN for repository limit ()
* Added TrN for repository limit

* Removed form.reach_limit_of_creation_0

* disable Create Button if user can not create

Co-authored-by: 6543 <6543@obermui.de>
GiteaBot aa4c33b43d [skip ci] Updated translations via Crowdin
techknowlogick 62643d94a3
Update golangci-lint to 1.35.2 ()
Chester Liu 072d550dda
Allow ssh-keygen on Windows to detect ssh key type ()
GiteaBot c05c0a1512 [skip ci] Updated translations via Crowdin
6543 81c833d92d
Add support to migrate from gogs ()
Add support to migrate gogs:

  *  issues
  *  comments
  *  labels
  *  milestones
  *  wiki


Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Andrew Thornton <art27@cantab.net>
Norwin b5570d3e68
Display current stopwatch in navbar ()
* add notification about running stopwatch to header

* serialize seconds, duration in stopwatches api

* ajax update stopwatch

i should get my testenv working locally...

* new variant: hover dialog

* noscript compatibility

* js: live-update stopwatch time

* js live update robustness
KN4CK3R 56a8929605
Comment - Reference in new issue ()
* Implemented "Reference in new issue"

* Fixed menu style on "pulls/x/files" because "button" has a style.

* Added context menu for PR file comments.

* Use only a single modal for every comment.

* Use current repository as default. Added search filter.

* Added suggested changes.

* Fixed assignment.

Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Patrick Schratz 1c230f69d9
update ssh passthrough ()
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
GiteaBot 83c920d7fa [skip ci] Updated translations via Crowdin
Kamil Domański 26da20aa93
load U2F js only on pages which need it ()
* load U2F js only on pages which need it

* Update templates/base/head.tmpl
Artemis Tosini cb08248c33
Add support for ed25519_sk and ecdsa_sk SSH keys ()
* Add support for ed25519_sk and ecdsa_sk SSH keys

These start with sk-ssh-ed25519@openssh.com and sk-ecdsa-sha2-nistp256@openssh.com.
They are supported in recent versions of go x/crypto/ssh and OpenSSH 8.2
or higher.

* skip ssh-keygen

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Andrew Thornton <art27@cantab.net>
Roberto Santalla ef85bf84ee
Project: show referenced PRs in issue cards ()
Co-authored-by: Lauris BH <lauris@nix.lv>
zeripath 172229966c
Prevent panic on fuzzer provided string ()
* 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>
techknowlogick b708968694
upgrade to alpine 3.13 ()
Lunny Xiao 135b0e502d
Fix log http status is always zero ()
* Fix log http status is always zero

* Fix lint

Co-authored-by: 6543 <6543@obermui.de>
Kyle D 41e19b93a2
Align dropdown right ()
Jake Howard e05670da84
Note that all template directories are relative to the `CustomPath` configuration, not a `custom` directory inside it ()
* 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
Chester Liu 0c0445c97a
Add pager to the branches page ()
* 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>
KN4CK3R 8d0e331c0a
Removed invalid form tag ()
introduced by 
Daniel Vos 185c5ae2c4
Update back-up restore example for 1.13 changes ()
Signed-off-by: Daniël Vos <danielvos@outlook.com>

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Lunny Xiao b4dc080c96
It seems vet on windows is unnecessary ()
* It seems vet on windows is unnecessary

* add vet back to drone but remove GOOS and GOARCH when build vet
zeripath b59ed41e81
Use path not filepath in routers/editor ()
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>
Ash McKenzie 6ff63c8202
Display error if twofaSecret cannot be retrieved ()
6543 2686e6bbbe
Check if label template exist first ()
* add check

* refactor

* rollback repo on error after session closed
Ash McKenzie 127907c5e6
Allow passcode invalid error to appear ()
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Jimmy Praet f95dce2f10
exclude authored PRs from Review Requested filter ()
Co-authored-by: Lauris BH <lauris@nix.lv>
GiteaBot 8e39157e92 [skip ci] Updated translations via Crowdin
Lauris BH f5abe2f563
Upgrade blevesearch dependency to v2.0.1 ()
* Upgrade blevesearch dependency to v2.0.1

* Update rupture to v1.0.0

* Fix test
GiteaBot 3aa53dc6bc [skip ci] Updated translations via Crowdin
6543 21da519c0c
Implement ghost comment mitigation ()
* 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>
Lauris BH ca63a9d3f1
Add edit, delete and reaction support to code review comments on issue page ()
Jimmy Praet acb1ceb1f4
Add review requested filter on pull request overview ()
* Add review requested filter on pull request overview 

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
Jimmy Praet 872d308892
escape branch names in compare url ()
GiteaBot 66e426b2f1 [skip ci] Updated translations via Crowdin
Jimmy Praet 4d9349123f
label and milestone webhooks on issue/pull creation ()
GiteaBot e6155ff9b6 [skip ci] Updated translations via Crowdin
Lunny Xiao dc66e4740f
Fix middlewares sequences ()
Co-authored-by: 6543 <6543@obermui.de>
GiteaBot 76fefd803f [skip ci] Updated translations via Crowdin
Lauris BH 0a3c3357f3
Sort issue search results by revelance ()
GiteaBot 2db4733c7d [skip ci] Updated translations via Crowdin
6543 3091600cc8
KanBan: be able to set default board ()
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: zeripath <art27@cantab.net>
GiteaBot c09e11d018 [skip ci] Updated translations via Crowdin
Kyle D bfd0c47ef6
Kd/fix allow svg doctype ()
* make svg regex case-insensitive & use strict word boundary

* allow doctype svg

* add doctype tests

* allow <!DOCTYPE svg> and <svg/>