2
0
Commit Graph

1695 Commits

Author SHA1 Message Date
GiteaBot
cab1988a8c [skip ci] Updated translations via Crowdin 2021-09-04 00:04:54 +00:00
GiteaBot
e33ceb2602 [skip ci] Updated translations via Crowdin 2021-09-03 00:04:56 +00:00
GiteaBot
2f148e2924 [skip ci] Updated translations via Crowdin 2021-09-02 00:04:56 +00:00
a1012112796
9ff6af3a64 Add option to update pull request by rebase (#16125)
* add option to update pull request by `rebase`

Signed-off-by: a1012112796 <1012112796@qq.com>
2021-08-31 16:03:45 +02:00
GiteaBot
ff125bf182 [skip ci] Updated translations via Crowdin 2021-08-30 00:04:50 +00:00
GiteaBot
eabc5c2ea2 [skip ci] Updated translations via Crowdin 2021-08-29 00:04:59 +00:00
zeripath
07b8d13afb 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>
2021-08-26 22:57:40 -04:00
GiteaBot
26795bcc45 [skip ci] Updated translations via Crowdin 2021-08-27 00:04:45 +00:00
GiteaBot
f4fd068f75 [skip ci] Updated translations via Crowdin 2021-08-26 00:04:46 +00:00
delvh
1fb0b951be 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>
2021-08-25 21:47:05 +08:00
John Olheiser
f9be6e905e 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>
2021-08-24 11:47:09 -05:00
GiteaBot
3fd57a616d [skip ci] Updated translations via Crowdin 2021-08-24 00:04:47 +00:00
GiteaBot
41094c0d03 [skip ci] Updated translations via Crowdin 2021-08-23 00:04:31 +00:00
GiteaBot
55eb215290 [skip ci] Updated licenses and gitignores 2021-08-22 00:06:14 +00:00
KN4CK3R
f49ed36e0c 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
2021-08-22 00:47:45 +02:00
Steven
4270d2b6ac Fix dependency translations (#16753)
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-08-21 00:13:45 +01:00
GiteaBot
9af71fc678 [skip ci] Updated translations via Crowdin 2021-08-18 00:04:48 +00:00
GiteaBot
fc70556846 [skip ci] Updated translations via Crowdin 2021-08-17 00:07:42 +00:00
GiteaBot
23c45e71fa [skip ci] Updated translations via Crowdin 2021-08-16 00:07:41 +00:00
GiteaBot
680fc9c0c3 [skip ci] Updated translations via Crowdin 2021-08-15 00:07:47 +00:00
delvh
6544231c45 Improve resource string (#16691)
* Improve resource string

Co-authored-by: zeripath <art27@cantab.net>
2021-08-14 16:10:39 +02:00
GiteaBot
d9adeff37d [skip ci] Updated translations via Crowdin 2021-08-14 00:07:48 +00:00
GiteaBot
b3d7efcdb3 [skip ci] Updated translations via Crowdin 2021-08-13 00:07:45 +00:00
a1012112796
3a27fd298c Add link to vscode to repo header (#16664)
add link to vscode to repo header

Signed-off-by: a1012112796 <1012112796@qq.com>
2021-08-12 14:21:34 +02:00
zeripath
8a84a44798 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>
2021-08-11 21:42:58 +01:00
GiteaBot
59425ad9bf [skip ci] Updated translations via Crowdin 2021-08-11 00:07:40 +00:00
GiteaBot
20bd2fc37e [skip ci] Updated translations via Crowdin 2021-08-09 00:07:47 +00:00
GiteaBot
e217be8ee9 [skip ci] Updated translations via Crowdin 2021-08-08 00:07:46 +00:00
GiteaBot
f80df51131 [skip ci] Updated translations via Crowdin 2021-08-07 00:07:42 +00:00
zeripath
bf85cb8c1b 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>
2021-08-05 21:11:08 -04:00
GiteaBot
2164bdad41 [skip ci] Updated translations via Crowdin 2021-08-06 00:08:10 +00:00
GiteaBot
b3e076dc2e [skip ci] Updated translations via Crowdin 2021-08-04 00:07:39 +00:00
Albert ARIBAUD
530504f886 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.
2021-08-02 20:23:57 +01:00
GiteaBot
f3c55d43e3 [skip ci] Updated translations via Crowdin 2021-08-02 00:07:40 +00:00
GiteaBot
1363366269 [skip ci] Updated translations via Crowdin 2021-08-01 00:07:51 +00:00
GiteaBot
c7abdcecef [skip ci] Updated translations via Crowdin 2021-07-31 00:07:42 +00:00
Marty
278632575f 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>
2021-07-29 03:32:48 +01:00
GiteaBot
1e6fe859f2 [skip ci] Updated translations via Crowdin 2021-07-27 00:07:52 +00:00
GiteaBot
e51ecd0cd3 [skip ci] Updated translations via Crowdin 2021-07-26 00:07:41 +00:00
GiteaBot
21df538388 [skip ci] Updated licenses and gitignores 2021-07-25 00:07:38 +00:00
GiteaBot
29e202f86e [skip ci] Updated translations via Crowdin 2021-07-24 00:07:49 +00:00
lengyuqu
728bb9bfdc Add support for corporate WeChat webhooks (#15910)
* 企业微信webhook

* 企业微信webhook

* 企业微信webhook

* Update templates/admin/hook_new.tmpl

Co-authored-by: a1012112796 <1012112796@qq.com>

* Update services/webhook/wechatwork.go

Co-authored-by: a1012112796 <1012112796@qq.com>

* 修善wechatwork

* 修善wechatwork

* fix

* Update locale_cs-CZ.ini

fix

* fix build

* fix

* fix build

* make webhooks.zh-cn.md

* delet unnecessary blank line

* delet unnecessary blank line

* 企业微信webhook

* 企业微信webhook

* 企业微信webhook

* Update templates/admin/hook_new.tmpl

Co-authored-by: a1012112796 <1012112796@qq.com>

* Update services/webhook/wechatwork.go

Co-authored-by: a1012112796 <1012112796@qq.com>

* 修善wechatwork

* 修善wechatwork

* fix

* fix build

* fix

* fix build

* make webhooks.zh-cn.md

* delet unnecessary blank line

* delet unnecessary blank line

* 企业微信webhook

* 企业微信webhook

* 企业微信webhook

* 企业微信webhook

* 企业微信webhook

* fix

* fix

* 企业微信webhook

* 企业微信webhook

* 企业微信webhook

* fix wechat

* fix wechat

* fix wechat

* fix wechat

* Fix invalid params and typo of email templates (#16394)

Signed-off-by: Meano <meanocat@gmail.com>

* Add LRU mem cache implementation (#16226)

The current default memory cache implementation is unbounded in size and number of
objects cached. This is hardly ideal.

This PR proposes creating a TwoQueue LRU cache as the underlying cache for Gitea.
The cache is limited by the number of objects stored in the cache (rather than size)
for simplicity. The default number of objects is 50000 - which is perhaps too small
as most of our objects cached are going to be much less than 1kB.

It may be worth considering using a different LRU implementation that actively limits
sizes or avoids GC - however, this is just a beginning implementation.

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

* [skip ci] Updated translations via Crowdin

* Replace `plugins/docker` with `techknowlogick/drone-docker`in ci (#16407)

* plugins/docker -> techknowlogick/drone-docker

* It is multi-arch

* docs: rewrite email setup (#16404)

* Add intro for both the docs page and mailer methods
  * Fix numbering level in SMTP section
  * Recommends implicit TLS

Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>

* Validate Issue Index before querying DB (#16406)

* Fix external renderer (#16401)

* fix external renderer

* use GBackground context as fallback

* no fallback, return error

Co-authored-by: Lauris BH <lauris@nix.lv>

* Add checkbox to delete pull branch after successful merge (#16049)

* Add checkbox to delete pull branch after successful merge

* Omit DeleteBranchAfterMerge field in json

* Log a warning instead of error when PR head branch deleted

* Add DefaultDeleteBranchAfterMerge to PullRequestConfig

* Add support for delete_branch_after_merge via API

* Fix for API: the branch should be deleted from the HEAD repo

If head and base repo are the same, reuse the already opened ctx.Repo.GitRepo

* Don't delegate to CleanupBranch, only reuse branch deletion code

CleanupBranch contains too much logic that has already been performed by the Merge

* Reuse gitrepo in MergePullRequest

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

* [skip ci] Updated translations via Crowdin

* Detect encoding changes while parsing diff (#16330)

* Detect encoding changes while parsing diff

* Let branch/tag name be a valid ref to get CI status (#16400)

* fix #16384#

* refactor: move shared helper func to utils package

* extend Tests

* use ctx.Repo.GitRepo if not nil

* fix

* fix

* 企业微信webhook

* 企业微信webhook

* 企业微信webhook

* fix build

* fix build

* Apply suggestions from code review

Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: myheavily <myheavily>
Co-authored-by: zhaoxin <gitea@fake.local>
Co-authored-by: Meano <Meano@foxmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: GiteaBot <teabot@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Bagas Sanjaya <bagasdotme@gmail.com>
Co-authored-by: Norwin <noerw@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Jimmy Praet <jimmy.praet@telenet.be>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-07-23 12:41:27 +08:00
GiteaBot
aacd08fe84 [skip ci] Updated translations via Crowdin 2021-07-23 00:07:51 +00:00
GiteaBot
5a5e87e6ff [skip ci] Updated translations via Crowdin 2021-07-22 00:07:51 +00:00
GiteaBot
c50a9e2909 [skip ci] Updated translations via Crowdin 2021-07-19 00:07:50 +00:00
GiteaBot
60f84f85b2 [skip ci] Updated translations via Crowdin 2021-07-18 00:07:50 +00:00
a1012112796
457a02b903 show tag name on dashboard items list (#16466)
fix #16458

Signed-off-by: a1012112796 <1012112796@qq.com>
2021-07-17 23:21:04 +02:00
GiteaBot
f6b9fa3fa8 [skip ci] Updated translations via Crowdin 2021-07-16 00:07:52 +00:00
GiteaBot
7e6dc246cb [skip ci] Updated translations via Crowdin 2021-07-15 15:07:57 +00:00
GiteaBot
849f87f008 [skip ci] Updated translations via Crowdin 2021-07-15 10:07:52 +00:00