]> source.dussan.org Git - gitea.git/log
gitea.git
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 22 Jan 2020 21:26:56 +0000 (21:26 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFrontport: Fix regression with tag test running (#9941) (#9942)
techknowlogick [Wed, 22 Jan 2020 21:25:41 +0000 (16:25 -0500)]
Frontport: Fix regression with tag test running (#9941) (#9942)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 22 Jan 2020 20:57:03 +0000 (20:57 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoChangelog 1.11.0-rc2 (#9853) (#9940)
John Olheiser [Wed, 22 Jan 2020 20:51:38 +0000 (14:51 -0600)]
Changelog 1.11.0-rc2 (#9853) (#9940)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years agoDon't convert ellipsis in markdown (#9905)
John Olheiser [Wed, 22 Jan 2020 15:30:20 +0000 (09:30 -0600)]
Don't convert ellipsis in markdown (#9905)

* Don't convert ellipsis

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

Co-Authored-By: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
4 years agoRemove statements not supported by SQLExpress from migration te… (#9929)
guillep2k [Wed, 22 Jan 2020 14:09:35 +0000 (11:09 -0300)]
Remove statements not supported by SQLExpress from migration te… (#9929)

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agoImprove stale message (#9920)
Antoine GIRARD [Wed, 22 Jan 2020 10:55:27 +0000 (11:55 +0100)]
Improve stale message (#9920)

* Improve stale nessage

* Update .github/stale.yml

Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
4 years agoCheck if diff actually contains sections when rendering (#9926)
Lauris BH [Wed, 22 Jan 2020 07:20:58 +0000 (09:20 +0200)]
Check if diff actually contains sections when rendering (#9926)

4 years agomisc webpack tweaks (#9924)
silverwind [Wed, 22 Jan 2020 06:35:29 +0000 (07:35 +0100)]
misc webpack tweaks (#9924)

- reduce verbosity during build
- use array form `use` to allow easier extension
- disable uninteresting source maps
- disable symlink resolution for a speedup

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <matti@mdranta.net>
4 years agoFix wrong hint when status checking is running on pull request view (#9886)
Lunny Xiao [Wed, 22 Jan 2020 03:46:04 +0000 (11:46 +0800)]
Fix wrong hint when status checking is running on pull request view (#9886)

* Fix wrong hint when status checking is running on pull request view

* fix lint

* fix test

* fix test

* fix wrong tmpl

* fix import

* rename function name

4 years agoadd remote ip to the invalid credentials error message (#9918)
bobemoe [Tue, 21 Jan 2020 22:51:39 +0000 (22:51 +0000)]
add remote ip to the invalid credentials error message (#9918)

4 years agoFix RocketChat (#9908)
John Olheiser [Tue, 21 Jan 2020 20:29:24 +0000 (14:29 -0600)]
Fix RocketChat (#9908)

* Fix RocketChat??

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Don't send attachment for repo create/delete

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

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoDo not try to recreate ldap user if they are already created (#9900)
zeripath [Tue, 21 Jan 2020 18:49:30 +0000 (18:49 +0000)]
Do not try to recreate ldap user if they are already created (#9900)

* Do not try to recreate ldap user if they are already created

* just remove autoregister

Co-authored-by: techknowlogick <matti@mdranta.net>
4 years agofix wrong font url on semantic-ui (#9917)
Lunny Xiao [Tue, 21 Jan 2020 18:07:34 +0000 (02:07 +0800)]
fix wrong font url on semantic-ui (#9917)

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agomove jquery and jquery-migrate to npm/webpack (#9813)
silverwind [Tue, 21 Jan 2020 17:32:33 +0000 (18:32 +0100)]
move jquery and jquery-migrate to npm/webpack (#9813)

Currently, this needs to be its own chunk because fomantic depends
on jQuery being present. The next step is to move fomantic to webpack
too after which we can combine the index,fomantic and jquery files into
one.

jquery-migrate is still neccessary because our ancient version of Dropzone
seems to break without it. I imagine it can be removed after a Dropzone
upgrade.

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 21 Jan 2020 16:27:57 +0000 (16:27 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFilter locales under 25% (#9893)
Antoine GIRARD [Tue, 21 Jan 2020 16:26:17 +0000 (17:26 +0100)]
Filter locales under 25% (#9893)

* Create update-locales.sh

* Update .drone.yml

* fix file perms +x

4 years agoUpdate queue_redis.go (#9910)
zeripath [Tue, 21 Jan 2020 12:50:27 +0000 (12:50 +0000)]
Update queue_redis.go (#9910)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agoFix missing defer prepareTestEnv(t)() on some tests (#9906)
guillep2k [Tue, 21 Jan 2020 11:40:21 +0000 (08:40 -0300)]
Fix missing defer prepareTestEnv(t)() on some tests (#9906)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 21 Jan 2020 10:21:24 +0000 (10:21 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFixed repo link in generated comment for cross repository dependency (#9863)
Brad Albright [Tue, 21 Jan 2020 10:18:52 +0000 (04:18 -0600)]
Fixed repo link in generated comment for cross repository dependency (#9863)

* fixed link to issue in issue comments after adding/removing a dependency, before links assumed the issue was in the same repository. also changed the format of the displayed issue since the issue will not necessarily be in the same repo

* based on pr comments, changed to use HTMLURL instead of piecing together the issue url, and added an if statement around the issue link display as a nil protection

* only showing repo name in dependency comment if the issue is from another repo

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agoUse npm to manage fomantic and only build needed components (#9561)
Lunny Xiao [Tue, 21 Jan 2020 05:17:58 +0000 (13:17 +0800)]
Use npm to manage fomantic and only build needed components (#9561)

* Use npm to manage fomantic

* Only build needed semantic components

* Fix make

* Don't import fonts from google sites since we have loaded

* [misc] devendor fomantic-ui and rebuild upon src or config changes only

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* Change sort alphabetically of semantic components

* Fix trailing slash

* fix makefile

* Remove dependency to gulp from package.json

* Fix something

* Simplife the makefile

* add missed fomantic compnent

Co-authored-by: Jakob Ackermann <das7pad@outlook.com>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 20 Jan 2020 23:35:43 +0000 (23:35 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoAdd documentation how to render PlantUML in code blocks. (#9894)
David Svantesson [Mon, 20 Jan 2020 23:34:23 +0000 (00:34 +0100)]
Add documentation how to render PlantUML in code blocks. (#9894)

* Add documentation how to render plantuml in code blocks.

* Review comments

* Apply suggestions from code review

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
4 years agofix broken link (#9901)
zeripath [Mon, 20 Jan 2020 20:45:16 +0000 (20:45 +0000)]
fix broken link (#9901)

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoRefactor repository check and sync functions (#9854)
Lunny Xiao [Mon, 20 Jan 2020 20:01:19 +0000 (04:01 +0800)]
Refactor repository check and sync functions (#9854)

Move more general repository functions out of models/repo.go

4 years agoAdd documentation to add Mermaid.js to Gitea (#9872)
zeripath [Mon, 20 Jan 2020 16:14:03 +0000 (16:14 +0000)]
Add documentation to add Mermaid.js to Gitea (#9872)

* Add documentation to add mermaid to Gitea

* Update documentation

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 20 Jan 2020 15:46:46 +0000 (15:46 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoAdd support for database schema in PostgreSQL (#8819)
guillep2k [Mon, 20 Jan 2020 15:45:14 +0000 (12:45 -0300)]
Add support for database schema in PostgreSQL (#8819)

* Add support for database schema

* Require setting search_path for the db user

* Add schema setting to admin/config.tmpl

* Use a schema different from default for psql tests

* Update postgres scripts to use custom schema

* Update to xorm/core 0.7.3 and xorm/xorm c37aff9b3a

* Fix migration test

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agoFix wrong permissions check when issues/prs shared operations (#9885)
Lunny Xiao [Mon, 20 Jan 2020 12:00:32 +0000 (20:00 +0800)]
Fix wrong permissions check when issues/prs shared operations (#9885)

* Fix wrong permissions check when issues/prs shared operations

* move redirect to the last of the function

* fix swagger

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoAdd top author stats to activity page (#9615)
Lauris BH [Mon, 20 Jan 2020 10:07:30 +0000 (12:07 +0200)]
Add top author stats to activity page (#9615)

4 years agoIssue/PR Context Popups (#9822)
John Olheiser [Mon, 20 Jan 2020 04:39:21 +0000 (22:39 -0600)]
Issue/PR Context Popups (#9822)

* Add data-index attribute to issue anchors

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

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add required data to anchor

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

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Revert changes to html.go

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Better octicon contexts

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Split out popup function for re-use

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Style changes, test fixes, and cross-reference support

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Prefer em to px

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move label margin to base CSS

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move JS to separate file.

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move JS to features and fix module

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove query-string and hash

Co-Authored-By: silverwind <me@silverwind.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
4 years agoAdd option to prevent LDAP from deactivating everything on empty search (#9879)
zeripath [Mon, 20 Jan 2020 03:47:39 +0000 (03:47 +0000)]
Add option to prevent LDAP from deactivating everything on empty search (#9879)

* Add option to prevent LDAP from deactivating everything on empty search

* Update options/locale/locale_en-US.ini

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agoGive the stdout on temp_repo error (#9871)
zeripath [Mon, 20 Jan 2020 01:32:47 +0000 (01:32 +0000)]
Give the stdout on temp_repo error (#9871)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agoCheck user != nil before checking values (#9881)
zeripath [Sun, 19 Jan 2020 23:49:55 +0000 (23:49 +0000)]
Check user != nil before checking values (#9881)

* Check user != nil before checking values

* Handle autoAdmin

4 years agoAdd missing columns to repository and user (#9861)
guillep2k [Sun, 19 Jan 2020 22:27:44 +0000 (19:27 -0300)]
Add missing columns to repository and user (#9861)

4 years agoAllow hyphen in language name (#9873)
zeripath [Sun, 19 Jan 2020 21:36:00 +0000 (21:36 +0000)]
Allow hyphen in language name (#9873)

4 years agoEnsure that 2fa is checked on reset-password (#9857)
zeripath [Sun, 19 Jan 2020 20:17:36 +0000 (20:17 +0000)]
Ensure that 2fa is checked on reset-password (#9857)

* Ensure that 2fa is checked on reset-password

* Apply suggestions from code review

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Properly manage scratch_code regeneration

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoEnsure that 2fa is checked on reset-password (#9857)
zeripath [Sun, 19 Jan 2020 20:17:12 +0000 (20:17 +0000)]
Ensure that 2fa is checked on reset-password (#9857)

* Ensure that 2fa is checked on reset-password

* Apply suggestions from code review

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Properly manage scratch_code regeneration

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoMake CertFile and KeyFile relative to CustomPath (#9868)
zeripath [Sun, 19 Jan 2020 19:07:44 +0000 (19:07 +0000)]
Make CertFile and KeyFile relative to CustomPath (#9868)

* Make CertFile and KeyFile relative to CustomPath

The current code will absolute CertFile and KeyFile against the current working directory. This is quite unexpected for users. This code makes relative paths absolute against the CustomPath.

Fix #4196

* Improve error reporting when reading certificates

* Apply suggestions from code review

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 19 Jan 2020 09:19:29 +0000 (09:19 +0000)]
[skip ci] Updated translations via Crowdin

4 years agorun translations pipeline on arm server (#9865)
techknowlogick [Sun, 19 Jan 2020 09:17:57 +0000 (04:17 -0500)]
run translations pipeline on arm server (#9865)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 19 Jan 2020 06:44:47 +0000 (06:44 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix issues/pulls dependencies problems (#9842)
Lunny Xiao [Sun, 19 Jan 2020 06:43:38 +0000 (14:43 +0800)]
Fix issues/pulls dependencies problems (#9842)

* Fix issues/pulls dependencies problems

* fix swagger and api param name

* fix js

4 years agoChange won't sign information text to black. (#9843)
David Svantesson [Sat, 18 Jan 2020 11:30:35 +0000 (12:30 +0100)]
Change won't sign information text to black. (#9843)

* Change won't sign information text to black.

* icon and text same color

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agoExplicitly refer to PR in squash-merge commit message in case of external tracker...
David Svantesson [Sat, 18 Jan 2020 04:40:43 +0000 (05:40 +0100)]
Explicitly refer to PR in squash-merge commit message in case of external tracker (#9844)

* Explicitly refer to PR in squash-merge commit message in case of external tracker

* documentation

Co-authored-by: zeripath <art27@cantab.net>
4 years ago[Docs] add usefull info to REQUIRE_SIGNIN_VIEW (#9848)
6543 [Fri, 17 Jan 2020 23:34:56 +0000 (00:34 +0100)]
[Docs] add usefull info to REQUIRE_SIGNIN_VIEW (#9848)

4 years agoChangelog 1.10.3 (#9832) (#9850)
6543 [Fri, 17 Jan 2020 22:03:07 +0000 (23:03 +0100)]
Changelog 1.10.3 (#9832) (#9850)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 17 Jan 2020 18:35:33 +0000 (18:35 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoImprove notification pager (#9821)
Lunny Xiao [Fri, 17 Jan 2020 18:31:26 +0000 (02:31 +0800)]
Improve notification pager (#9821)

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agofix (#9836)
6543 [Fri, 17 Jan 2020 14:37:46 +0000 (15:37 +0100)]
fix (#9836)

4 years agoFix download file wrong content-type (#9825)
Lunny Xiao [Fri, 17 Jan 2020 12:16:05 +0000 (20:16 +0800)]
Fix download file wrong content-type (#9825)

* Fix download file wrong content-type

* change the error text to be more precise

* fix test

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 17 Jan 2020 10:24:56 +0000 (10:24 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix wrong identify poster on a migrated pull request when submi… (#9827)
Lunny Xiao [Fri, 17 Jan 2020 10:23:46 +0000 (18:23 +0800)]
Fix wrong identify poster on a migrated pull request when submi… (#9827)

4 years agoAdd setting to set default and global disabled repository units. (#8788)
David Svantesson [Fri, 17 Jan 2020 07:34:37 +0000 (08:34 +0100)]
Add setting to set default and global disabled repository units. (#8788)

* Add possibility to global disable repo units.

* Add Default Repo Unit app.ini setting.

* Hide units

* Hide disabled repo units

* Minor fixes

* Indicate disabled units in team settings.

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
4 years agoAdd "Update Branch" button to Pull Requests (#9784)
6543 [Fri, 17 Jan 2020 06:03:40 +0000 (07:03 +0100)]
Add "Update Branch" button to Pull Requests (#9784)

* add Divergence

* add Update Button

* first working version

* re-use code

* split raw merge commands and db-change functions (notify, cache, ...)

* use rawMerge (remove redundant code)

* own function to get Diverging of PRs

* use FlashError

* correct Error Msg

* hook is triggerd ... so remove comment

* add "branch2" to "user2/repo1" because it unit-test "TestPullView_ReviewerMissed" use it but dont exist jet :/

* move GetPerm to IsUserAllowedToUpdate

* add Flash Success MSG

* imprufe code
- remove useless js chage

* fix-lint

* TEST: add PullRequest ID:5
Repo: user2/repo1
Base: branch1
Head: pr-to-update

* correct comments

* make PR5 outdated

* fix Tests

* WIP: add pull update test

* update revs

* update locales

* working TEST

* update UI

* misspell

* change style

* add 1s delay so rev exist

* move row up (before merge row)

* fix lint nit

* UI remove divider

* Update style

* nits

* do it right

* introduce IsSameRepo

* remove useless check

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agofix dump non-exist log directory (#9818)
Lunny Xiao [Fri, 17 Jan 2020 02:56:51 +0000 (10:56 +0800)]
fix dump non-exist log directory (#9818)

4 years agoremove promise-polyfill (#9812)
silverwind [Thu, 16 Jan 2020 22:52:07 +0000 (23:52 +0100)]
remove promise-polyfill (#9812)

promises are polyfilled by babel, it's no longer needed.

4 years agoFix admin handling at merge of PR (#9749)
David Svantesson [Thu, 16 Jan 2020 21:01:22 +0000 (22:01 +0100)]
Fix admin handling at merge of PR (#9749)

* Admin shall be able to bypass merge checks.

* Repository admin should not bypass if merge whitelist is set.

* Add code comment about checks that PR are ready

* notAllOverrideableChecksOk->notAllOverridableChecksOk

* Fix merge, require signed currently not overridable.

* fix

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agoFix compare (#9808)
Lunny Xiao [Thu, 16 Jan 2020 19:59:07 +0000 (03:59 +0800)]
Fix compare (#9808)

Co-authored-by: techknowlogick <matti@mdranta.net>
4 years agoci: simplify tag/release by always running coverage (#9774)
Antoine GIRARD [Thu, 16 Jan 2020 19:21:35 +0000 (20:21 +0100)]
ci: simplify tag/release by always running coverage (#9774)

* ci: simplify tag/release by always running coverage

* use mod and vendor for unit test coverage

* remove not needed lfs for unit test

4 years agoMove mailer to use a queue (#9789)
zeripath [Thu, 16 Jan 2020 17:55:36 +0000 (17:55 +0000)]
Move mailer to use a queue (#9789)

* Move mailer to use a queue

* Make sectionMap map[string]bool

* Ensure that Message is json encodable

4 years ago[refactor] notify remove unused praram (#9804)
6543 [Thu, 16 Jan 2020 16:24:20 +0000 (17:24 +0100)]
[refactor] notify remove unused praram (#9804)

4 years agotests: configure github remaining limit + read token (#9800)
Antoine GIRARD [Thu, 16 Jan 2020 15:15:44 +0000 (16:15 +0100)]
tests: configure github remaining limit + read token (#9800)

* ci: configure remaining github limmit

* prepend with github since package is common to all migrations

* add RefreshRate

* Update github.go

* add missing space

* go fmt

* Read env variable GITHUB_READ_TOKEN for token

* Update .drone.yml

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 16 Jan 2020 14:22:28 +0000 (14:22 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoRemove unnecessary permissions load (#9796)
Lunny Xiao [Thu, 16 Jan 2020 14:18:30 +0000 (22:18 +0800)]
Remove unnecessary permissions load (#9796)

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <matti@mdranta.net>
4 years agoFix markdown anchor links (#9673)
Moritz [Thu, 16 Jan 2020 11:23:48 +0000 (12:23 +0100)]
Fix markdown anchor links (#9673)

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoUpdate go-org to 0.1.9 (#9782)
Damien Cassou [Thu, 16 Jan 2020 08:27:41 +0000 (09:27 +0100)]
Update go-org to 0.1.9 (#9782)

* Update go-org to 0.1.9

What I did to generate this commit:

$ go get github.com/niklasfasching/go-org

* make vendor

4 years ago[Docs] Update Feature 'Reject unsigned commits' (#9793)
6543 [Thu, 16 Jan 2020 06:43:02 +0000 (07:43 +0100)]
[Docs] Update Feature 'Reject unsigned commits' (#9793)

* update docs

* add link to feature

4 years agoFix push-to-create (#9772)
John Olheiser [Thu, 16 Jan 2020 02:40:13 +0000 (20:40 -0600)]
Fix push-to-create (#9772)

* Fix push-to-create

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Check URL path and service

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Send dummy payload on receive-pack GET

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* The space was actually a NUL byte

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Use real bare repo instead of manufactured payload

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoupdate supported browsers and add a few more (#9734)
silverwind [Thu, 16 Jan 2020 00:28:03 +0000 (01:28 +0100)]
update supported browsers and add a few more (#9734)

Now includes Firefox ESR, Opera and a few more browser with usages
between 0.5% and 1%. defaults resolves to > 0.5%, last 2 versions, Firefox ESR, not dead.

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agoFix signing info on PR view if not signed in (#9788)
6543 [Wed, 15 Jan 2020 22:55:25 +0000 (23:55 +0100)]
Fix signing info on PR view if not signed in (#9788)

4 years agoFix missing unlock in uniquequeue (#9790)
zeripath [Wed, 15 Jan 2020 21:58:33 +0000 (21:58 +0000)]
Fix missing unlock in uniquequeue (#9790)

4 years agoFix missing msteam webhook on organization (#9781)
Lunny Xiao [Wed, 15 Jan 2020 18:38:44 +0000 (02:38 +0800)]
Fix missing msteam webhook on organization (#9781)

4 years agoFix #9662 (#9767)
David Svantesson [Wed, 15 Jan 2020 13:18:02 +0000 (14:18 +0100)]
Fix #9662 (#9767)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 15 Jan 2020 11:16:35 +0000 (11:16 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoMigrate reactions when migrating repository from github (#9599)
Lunny Xiao [Wed, 15 Jan 2020 11:14:07 +0000 (19:14 +0800)]
Migrate reactions when migrating repository from github (#9599)

* Migrate reactions when migrating repository from github

* fix missed sleep

* fix tests

* update reactions when external user binding

* Fix test

* fix tests

* change the copy head

* fix test

* fix migrator add/delete reaction

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 15 Jan 2020 09:56:33 +0000 (09:56 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoerr_admin_name_pattern_not_allowed String Clarification (#9731)
Bagas Sanjaya [Wed, 15 Jan 2020 09:53:30 +0000 (16:53 +0700)]
err_admin_name_pattern_not_allowed String Clarification (#9731)

* err_admin_name_pattern_not_allowed clarification edit

* Apply suggestion from @zeripath

Context: username that provided as admin

Co-Authored-By: zeripath <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agoAdd require signed commit for protected branch (#9708)
zeripath [Wed, 15 Jan 2020 08:32:57 +0000 (08:32 +0000)]
Add require signed commit for protected branch (#9708)

* Add require signed commit for protected branch

* Fix fmt

* Make editor show if they will be signed

* bugfix

* Add basic merge check and better information for CRUD

* linting comment

* Add descriptors to merge signing

* Slight refactor

* Slight improvement to appearances

* Handle Merge API

* manage CRUD API

* Move error to error.go

* Remove fix to delete.go

* prep for merge

* need to tolerate \r\n in message

* check protected branch before trying to load it

* Apply suggestions from code review

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* fix commit-reader

Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
4 years agouse arm drone agent for docs (#9776)
techknowlogick [Wed, 15 Jan 2020 05:59:13 +0000 (00:59 -0500)]
use arm drone agent for docs (#9776)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 15 Jan 2020 04:34:53 +0000 (04:34 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoci: move some integration tests on arm64 (#9747)
Antoine GIRARD [Wed, 15 Jan 2020 04:33:54 +0000 (05:33 +0100)]
ci: move some integration tests on arm64 (#9747)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 15 Jan 2020 03:55:40 +0000 (03:55 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoMove RepoWorkingPool to services/repository package (#9754)
Lunny Xiao [Wed, 15 Jan 2020 03:14:50 +0000 (11:14 +0800)]
Move RepoWorkingPool to services/repository package (#9754)

* Move RepoWorkingPool to services/repository package

* Make repoWorkingPool private

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agoci: run notify on arm64 (#9762)
Antoine GIRARD [Wed, 15 Jan 2020 02:14:21 +0000 (03:14 +0100)]
ci: run notify on arm64 (#9762)

* ci: run notify on arm64

Free one jobs on amrd64

* Update .drone.yml

* Update .drone.yml

* Update .drone.yml

Based on: https://github.com/appleboy/drone-discord/blob/master/.drone.yml#L339

* improve trigger

Co-authored-by: techknowlogick <matti@mdranta.net>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 15 Jan 2020 00:08:04 +0000 (00:08 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix #9752 (#9769)
zeripath [Tue, 14 Jan 2020 23:11:08 +0000 (23:11 +0000)]
Fix #9752 (#9769)

4 years agoFix milestones page (#9770)
John Olheiser [Tue, 14 Jan 2020 21:57:13 +0000 (15:57 -0600)]
Fix milestones page (#9770)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoFix SimpleMDE quote reply (#9757)
John Olheiser [Tue, 14 Jan 2020 20:47:38 +0000 (14:47 -0600)]
Fix SimpleMDE quote reply (#9757)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
4 years agomove swagger-ui to webpack/npm (#9714)
silverwind [Tue, 14 Jan 2020 18:02:08 +0000 (19:02 +0100)]
move swagger-ui to webpack/npm (#9714)

Created a second webpack output file for swagger-ui which is loaded on
the /api/swagger route. One notable difference is the absence of the
swagger favicon that was previously used which is now the gitea icon. I
see no easy way to restore that favicon, so I decided to not keep it.

4 years ago[API] add endpoint to check notifications [Extend #9488] (#9595)
6543 [Tue, 14 Jan 2020 15:37:19 +0000 (16:37 +0100)]
[API] add endpoint to check notifications [Extend #9488] (#9595)

* introduce GET /notifications/new

* add TEST

* use Sprintf instead of path.Join

* Error more verbose

* return number of notifications if unreaded exist

* 200 http status for available notifications

4 years agoAdd Privacy Policy and Terms of Service Page (#9513)
Bagas Sanjaya [Tue, 14 Jan 2020 13:34:40 +0000 (20:34 +0700)]
Add Privacy Policy and Terms of Service Page (#9513)

* Add privacy policy page and link

* Add TOS page and link

* Add update date

* [Docs] Add customizing PP and TOS

* Separate h2 user-generated content with its paragraph

* Reimplement Privacy Policy

The document is inspired from GitHub.

* Refactor to contrib

* [Docs] Mention how to add legal pages

* Reimplement Terms of Service

Adapted from GitHub

* Update revision date

* Rename to mark as sample file

* Apply suggestion from @sapk

Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
* Apply suggestion from @sapk

Use absolute link instead

Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
* Apply suggestion from @zeripath

Change `Last Updated` element to `<h4>`

Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath

Close this `<li>` element instance

Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath

Intentionally grammar fix

Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath

Information grammar

Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath

Cannot guarantee absolute security...

Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath

Use `<h4>` element for last updated date

Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath

Remove trailing `</p>` at the end of API clause

Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath

Migrate privacy email domain to Your Gitea Instance

Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestions from @zeripath

Remove `<p>` container for `<ol>` definitions

Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestions from @zeripath

Remove `<p>` container that contain `<ol>` user-generated content

Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestions from @zeripath

Remove `<p>` container for private repositories `<ol>` listing

Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestions from @zeripath

Migrate remaining email domains to Your Gitea Instance

Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath

Offer support

Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath

Change "Your Gitea Instance" references to match your situation and Gitea project disclaimer

Co-Authored-By: zeripath <art27@cantab.net>
* Reword transmission data to reflect hosting on third-party provider

* Reword Analytics clause to reflects that not all Gitea instances deploy analytics OOTB

* Remove `<p>` container from account terms

* Migrate support email on tos to your-gitea-instance

* Reword Tracking and Analytics clause for OOTB case

* [Docs] Append privacy.html to cp destination

* Apply suggestion from @6543

Create or append to footer template

Co-Authored-By: 6543 <6543@obermui.de>
* Apply suggestion from myself

@6543 suggest replacing this `cp` line (which assumed that Gitea sources are available) with `wget` to GitHub raw link. At the time of writing this, this returned 404, but when this PR has been merged, this should get the actual page.

* Apply suggestions from @6543

1. Add gpg key to profile information
2. Add Git repos to list of User Personal Information
3. Comment out responsibility for sensitive information

Co-Authored-By: 6543 <6543@obermui.de>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 14 Jan 2020 12:54:26 +0000 (12:54 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoci: use new mssql image (#9720)
Antoine GIRARD [Tue, 14 Jan 2020 12:06:49 +0000 (13:06 +0100)]
ci: use new mssql image (#9720)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 14 Jan 2020 10:31:54 +0000 (10:31 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix missing updated time on migrated issues and comments (#9744)
Lunny Xiao [Tue, 14 Jan 2020 10:29:22 +0000 (18:29 +0800)]
Fix missing updated time on migrated issues and comments (#9744)

* Fix missing updated time on migrated issues and comments

* Fix testing and missing updated on migrating pullrequest

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agoMove newbranch to standalone package (#9627)
Lunny Xiao [Tue, 14 Jan 2020 03:38:04 +0000 (11:38 +0800)]
Move newbranch to standalone package (#9627)

* Move newbranch to standalone package

* move branch functions to modules to avoid dependencies cycles

* fix tests

* fix lint

* fix lint

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 14 Jan 2020 00:08:14 +0000 (00:08 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoAdd test for git + git lfs (#9753)
guillep2k [Tue, 14 Jan 2020 00:06:54 +0000 (21:06 -0300)]
Add test for git + git lfs (#9753)