2
0
Commit Graph

1046 Commits

Author SHA1 Message Date
GiteaBot
cd7b9b6d1b [skip ci] Updated translations via Crowdin 2020-03-09 19:57:34 +00:00
GiteaBot
cb37f1656a [skip ci] Updated translations via Crowdin 2020-03-08 23:42:21 +00:00
James Lakin
241b08b54a System-wide webhooks (#10546)
* Create system webhook column (and migration)

* Create system webhook DB methods

Based on the default webhook ones

* Modify router to handle system webhooks and default ones

* Remove old unused admin nav template

* Adjust orgRepoCtx to differentiate system and default webhook URLs

* Assign IsSystemWebhook when creating webhooks

* Correctly use booleans for IsSystemWebhook

* Use system webhooks when preparing webhooks for payload

* Add UI and locale changes

* Use router params to differentiate admin hook pages

* Fix deleting admin webhooks and rename method

* Add clarity to webhook docs

* Revert "Remove old unused admin nav template"

This reverts commit 191a20a7389fe5f6256b0ad6aafd04b9b0e295c5.

* Rename WebHooksNewPost to GiteaHooksNewPost for clarity

* Reintroduce blank line lost during merge conflict

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2020-03-09 00:08:05 +02:00
GiteaBot
d4eeb409a9 [skip ci] Updated translations via Crowdin 2020-03-08 13:36:49 +00:00
GiteaBot
df59fa325e [skip ci] Updated translations via Crowdin 2020-03-07 21:07:35 +00:00
GiteaBot
bc1ea039de [skip ci] Updated translations via Crowdin 2020-03-06 06:50:20 +00:00
John Olheiser
faebc81581 Granular webhook events (#9626)
* Initial work

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

* Add PR reviews and API coverage

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

* Split up events

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

* Add migration and locale

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

* Format

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

* Revert IsPull

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

* Fix comments

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

* Fix tests

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

* Fix PR reviews

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

* Fix issue_comment

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

* Make fmt

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

* Migrations

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

* Backwards compatible API

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

* Fix feishu

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

* Move session commit

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

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
2020-03-06 07:10:48 +02:00
zeripath
e0c34631fc Add Approval Counts to pulls list (#10238)
* Add Approval Counts to pulls list

Add simple approvals counts to pulls lists

* Remove non-official counts

* Add PR features to milestone_issues.tmpl
2020-03-06 03:44:06 +00:00
Lauris BH
801cb3b447 Add restricted user filter to LDAP authentication (#10600)
* Add restricted user filter to LDAP authentification

* Fix unit test cases
2020-03-05 08:30:33 +02:00
Lauris BH
490633b0c4 OAuth2: add Yandex provider (#8335) (#10564)
* OAuth2: add Yandex provider (#8335)

* remove changes from locale ru-RU

* fmt modules/auth/oauth2/oauth2.go

Co-Authored-By: 6543 <6543@obermui.de>

* fix fmt

* Update templates/admin/auth/new.tmpl

* fix fmt

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
2020-03-05 00:08:52 +02:00
GiteaBot
153155b151 [skip ci] Updated translations via Crowdin 2020-03-03 19:53:16 +00:00
Felix W. Dekker
5a76cda281 Rename repo size sorting options (#10587) 2020-03-03 14:27:38 -03:00
techknowlogick
20a441b19c nextcloud oauth (#10562)
Fix #7078
2020-03-02 22:11:45 -05:00
GiteaBot
0d0af922d0 [skip ci] Updated translations via Crowdin 2020-03-02 20:56:37 +00:00
guillep2k
3e2fa7715e Admin page for managing user e-mail activation (#10557)
* Implement mail activation admin panel

* Add export comments

* Fix another export comment

* again...

* And again!

* Apply suggestions by @lunny

* Add UI for user activated emails

* Make new activation UI work

* Fix lint

* Prevent admin from self-deactivate; add modal

Co-authored-by: zeripath <art27@cantab.net>
2020-03-02 15:25:36 -03:00
GiteaBot
f8288693f7 [skip ci] Updated translations via Crowdin 2020-03-02 15:54:56 +00:00
zeripath
62a44d6c74 Show Signer in commit lists and add basic trust (#10425)
* Show Signer in commit lists and add basic trust

Show the avatar of the signer in the commit list pages as we do not
enforce that the signer is an author or committer. This makes it
clearer who has signed the commit.

Also display commits signed by non-members differently from
members and in particular make it clear when a non-member signer
is different from the committer to help reduce the risk of
spoofing.

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

* ensure orange text and background is available

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

* Update gpg_key.go

* Update models/gpg_key.go

* Apply suggestions from code review

* Require team collaborators to have access to UnitTypeCode

* as per @6543

* fix position of sha as per @silverwind

* as per @guillep2k
2020-02-27 16:20:55 -03:00
GiteaBot
0e0be733d4 [skip ci] Updated translations via Crowdin 2020-02-25 16:01:35 +00:00
GiteaBot
0dcdaf6cfd [skip ci] Updated translations via Crowdin 2020-02-24 22:53:36 +00:00
guillep2k
39e5abb2f7 Various fixes in login sources (#10428) 2020-02-23 13:52:05 -06:00
zeripath
53151fede2 Handle push rejection message in Merge & Web Editor (#10373)
* Handle push rejection message in Merge

* placate golangci-lint

* Fix sanitize, adjust message handling

* oops

* Oops

* Handle push-rejection in webeditor CRUD too

* Apply suggestions from code review

Co-authored-by: Lauris BH <lauris@nix.lv>
2020-02-22 15:08:48 +02:00
zeripath
95f8737ca2 Render READMEs in docs/ .gitea or .github from root (#10361)
* Render READMEs in docs/ .gitea or .github from root
2020-02-21 17:04:20 -06:00
GiteaBot
139cd2affa [skip ci] Updated translations via Crowdin 2020-02-21 18:19:29 +00:00
GiteaBot
5a09dbcf38 [skip ci] Updated translations via Crowdin 2020-02-20 21:04:58 +00:00
Lauris BH
1e785f357f Add detected file language to code search (#10256)
Move langauge detection to separate module to be more reusable

Add option to disable vendored file exclusion from file search

Allways show all language stats for search
2020-02-20 16:53:55 -03:00
GiteaBot
c201c81e92 [skip ci] Updated translations via Crowdin 2020-02-18 06:11:13 +00:00
GiteaBot
a830f87868 [skip ci] Updated translations via Crowdin 2020-02-18 03:17:09 +00:00
GiteaBot
4bdfb4330c [skip ci] Updated translations via Crowdin 2020-02-16 21:43:17 +00:00
GiteaBot
e9405e1280 [skip ci] Updated translations via Crowdin 2020-02-15 18:47:31 +00:00
GiteaBot
8d0a6379b4 [skip ci] Updated translations via Crowdin 2020-02-14 12:44:14 +00:00
GiteaBot
ae5d06c6ba [skip ci] Updated translations via Crowdin 2020-02-14 03:09:58 +00:00
GiteaBot
f8ba9a0f16 [skip ci] Updated translations via Crowdin 2020-02-12 19:33:28 +00:00
Lunny Xiao
2664979048 Add feishu webhook support (#10229)
Add feishu webhook support
2020-02-12 08:48:28 +00:00
GiteaBot
4045c09af5 [skip ci] Updated translations via Crowdin 2020-02-12 01:54:51 +00:00
GiteaBot
6ce8f48da2 [skip ci] Updated translations via Crowdin 2020-02-11 15:44:26 +00:00
Lauris BH
20e11119c4 Language statistics bar for repositories (#8037)
* Implementation for calculating language statistics

Impement saving code language statistics to database

Implement rendering langauge stats

Add primary laguage to show in repository list

Implement repository stats indexer queue

Add indexer test

Refactor to use queue module

* Do not timeout for queues
2020-02-11 11:34:17 +02:00
GiteaBot
9a02b8f822 [skip ci] Updated translations via Crowdin 2020-02-10 23:07:55 +00:00
GiteaBot
3b13b5bb48 [skip ci] Updated translations via Crowdin 2020-02-10 19:26:08 +00:00
guillep2k
056e397fd2 Improve 404 error message (#10214) 2020-02-10 21:23:35 +02:00
GiteaBot
25757edc29 [skip ci] Updated translations via Crowdin 2020-02-09 20:20:33 +00:00
GiteaBot
664187ea32 [skip ci] Updated translations via Crowdin 2020-02-07 17:11:26 +00:00
James Lakin
7dfacb0efc Tweak locale to respect singular conflicting file message in P… (#10177)
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
2020-02-07 17:38:18 +01:00
GiteaBot
d3682d7e81 [skip ci] Updated translations via Crowdin 2020-02-05 09:48:57 +00:00
GiteaBot
a2818022ab [skip ci] Updated translations via Crowdin 2020-02-04 14:28:42 +00:00
James Lakin
31ec466629 Show if a PR has conflicting files on the PR lists (#10130)
Co-authored-by: Lauris BH <lauris@nix.lv>
2020-02-04 00:14:38 +02:00
Lauris BH
29881b8f58 Show download count info in release list (#10124)
* Show download count info in release list

* Use go-humanize
2020-02-03 21:50:37 +02:00
GiteaBot
79970a12e8 [skip ci] Updated translations via Crowdin 2020-02-03 08:48:26 +00:00
GiteaBot
4d6b159107 [skip ci] Updated translations via Crowdin 2020-01-30 16:12:42 +00:00
zeripath
4aab92a030 Queue: Make WorkerPools and Queues flushable (#10001)
* Make WorkerPools and Queues flushable

Adds Flush methods to Queues and the WorkerPool
Further abstracts the WorkerPool
Adds a final step to Flush the queues in the defer from PrintCurrentTest
Fixes an issue with Settings inheritance in queues

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

* Change to for loop

* Add IsEmpty and begin just making the queues composed WorkerPools

* subsume workerpool into the queues and create a flushable interface

* Add manager command

* Move flushall to queue.Manager and add to testlogger

* As per @guillep2k

* as per @guillep2k

* Just make queues all implement flushable and clean up the wrapped queue flushes

* cope with no timeout

Co-authored-by: Lauris BH <lauris@nix.lv>
2020-01-28 20:01:06 -05:00
GiteaBot
c6adea8828 [skip ci] Updated translations via Crowdin 2020-01-27 22:38:55 +00:00