1704 Commits (a959ed99c2966dfc10ac41710eb74b7baf490bcf)

Author SHA1 Message Date
GiteaBot 5a42e72c04 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 132c8c43e1 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 20a2e26e99 [skip ci] Updated translations via Crowdin 3 years ago
Jimmy Praet 3d6cb25e31
Support unprotected file patterns (#16395)
Fixes #16381

Note that changes to unprotected files via the web editor still cannot be pushed directly to the protected branch. I could easily add such support for edits and deletes if needed. But for adding, uploading or renaming unprotected files, it is not trivial.

* Extract & Move GetAffectedFiles to modules/git
3 years ago
GiteaBot eb03e819d3 [skip ci] Updated translations via Crowdin 3 years ago
zeripath 9ca0e7905c
Add setting to OAuth handlers to skip local 2FA authentication (#16594)
This PR adds a setting to OAuth and OpenID login sources to allow the source to
skip local 2FA authentication.

Fix #13939

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
zeripath 248b96d8a3
Use git attributes to determine generated and vendored status for language stats and diffs (#16773)
Replaces #16262
Replaces #16250
Replaces #14833

This PR first implements a `git check-attr` pipe reader - using `git check-attr --stdin -z --cached` - taking account of the change in the output format in git 1.8.5 and creates a helper function to read a tree into a temporary index file for that pipe reader.

It then wires this in to the language stats helper and into the git diff generation.

Files which are marked generated will be folded by default.

Fixes #14786
Fixes #12653
3 years ago
GiteaBot df2c7901e6 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot ded438fb1a [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 5a73153493 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 219dec030d [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 9b4280ea4b [skip ci] Updated translations via Crowdin 3 years ago
a1012112796 cbf05c3f79
Add option to update pull request by `rebase` (#16125)
* add option to update pull request by `rebase`

Signed-off-by: a1012112796 <1012112796@qq.com>
3 years ago
GiteaBot b0ff429882 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 5e71b9c200 [skip ci] Updated translations via Crowdin 3 years ago
zeripath e37342db0c
Add modals to Organization and Team remove/leave (#16471)
* Add modals to Organization and Team remove/leave

Add confirmation modals to Organization and Team remove and leave.

Fix #16215

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

* avoid for-in

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

* Revert "avoid for-in"

This reverts commit 2af9a6f9d46ed31b6fc6e3a29e695577dcf09f75.

* Apply suggestions from code review

Co-authored-by: silverwind <me@silverwind.io>

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years ago
GiteaBot 3289aceec2 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot c446901a5d [skip ci] Updated translations via Crowdin 3 years ago
delvh 20efc6b56c
Unify migration descriptions (#16781)
* Unify migration descriptions

* Clarify that pure Git migration differs from other migrations

Co-authored-by: Norwin <noerw@users.noreply.github.com>

* Use Pull Requests for Gitea migration

Co-authored-by: Norwin <noerw@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
3 years ago
John Olheiser 648464b504
Add bundle download for repository (#14538)
* Add bundle download

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Fix fmt

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Fix build tags

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Download specific commit

Signed-off-by: jolheiser <john.olheiser@gmail.com>
3 years ago
GiteaBot d22cb600ed [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 94f529af02 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 208ae9e996 [skip ci] Updated licenses and gitignores 3 years ago
KN4CK3R cee5f7c5e2
Add migrate from OneDev (#16356)
* Use context to simplify logic.

* Added migration from OneDev.
This PR adds [OneDev](https://code.onedev.io/) as migration source.

Supported:
- [x] Milestones
- [x] Issues
- [x] Pull Requests
- [x] Comments
- [x] Reviews
- [x] Labels
3 years ago
Steven 3ecc4a1b9e
Fix dependency translations (#16753)
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
3 years ago
GiteaBot 65c6acccf6 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot cf4328359b [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot fe3299614a [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot f5158b4304 [skip ci] Updated translations via Crowdin 3 years ago
delvh d17f555fe3
Improve resource string (#16691)
* Improve resource string

Co-authored-by: zeripath <art27@cantab.net>
3 years ago
GiteaBot bbf9f41354 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 6bf5afe5de [skip ci] Updated translations via Crowdin 3 years ago
a1012112796 ca13e1d56c
Add link to vscode to repo header (#16664)
add link to vscode to repo header

Signed-off-by: a1012112796 <1012112796@qq.com>
3 years ago
zeripath e29e163737
Improve SMTP authentication and Fix user creation bugs (#16612)
* Improve SMTP authentication, Fix user creation bugs and add LDAP cert/key options

This PR has two parts:

Improvements for SMTP authentication:

* Default to use SMTPS if port is 465, and allow setting of force SMTPS.
* Always use STARTTLS if available
* Provide CRAM-MD5 mechanism
* Add options for HELO hostname disabling
* Add options for providing certificates and keys
* Handle application specific password response as a failed user login
instead of as a 500.

Close #16104

Fix creation of new users:

* A bug was introduced when allowing users to change usernames which
prevents the creation of external users.
* The LoginSource refactor also broke this page.

Close #16104

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
GiteaBot 2eeae4edb6 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 1dc41c47b9 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 07bc380c9f [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 2bbf1313b4 [skip ci] Updated translations via Crowdin 3 years ago
zeripath ab9bb54144
Add microsoft oauth2 providers (#16544)
* Clean up oauth2 providers

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

* Add AzureAD, AzureADv2, MicrosoftOnline OAuth2 providers

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

* Apply suggestions from code review

* remove unused Scopes

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

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years ago
GiteaBot 7e7006e00d [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot f03abe8fb1 [skip ci] Updated translations via Crowdin 3 years ago
Albert ARIBAUD a51cb3d4cb
Make PR merge options more intuitive (#5863) (#16582)
Reword options making clear whether the PRed branch is rebased or not, and which type of commit will be created if any.
3 years ago
GiteaBot 3375e7658e [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot b73e421646 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot e8306505f2 [skip ci] Updated translations via Crowdin 3 years ago
Marty 4e68d6f41d
Show correct text when comparing commits on empty pull request (#16569)
* fix

* use own text

* Update templates/repo/commits_table.tmpl

Co-authored-by: marty <m.karkossa@ultraware.nl>
Co-authored-by: zeripath <art27@cantab.net>
3 years ago
GiteaBot 4b6370c46d [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot e76f8cac9a [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 4f23624b16 [skip ci] Updated licenses and gitignores 3 years ago
GiteaBot 342f338bda [skip ci] Updated translations via Crowdin 3 years ago