diff options
author | Tait Hoyem <tait@tait.tech> | 2020-09-27 19:20:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-27 15:20:52 -0400 |
commit | c85c9d40c2744b8b76bfa66582bbe20ef3a01dff (patch) | |
tree | 444de12b5410c1f61ac2cc7be86989be80f5efd9 /modules | |
parent | 82179a6e81b4f712d523bd481b18a64c8eb99559 (diff) | |
download | gitea-c85c9d40c2744b8b76bfa66582bbe20ef3a01dff.tar.gz gitea-c85c9d40c2744b8b76bfa66582bbe20ef3a01dff.zip |
Add config option to make create-on-push repositories public by default (#12936)
* Add config option to make create-on-push repositories public by default
* Fix linting
* Add option to 'config cheat sheet' page
* Chinese translation
Signed-off-by: a1012112796 <1012112796@qq.com>
* Fix typo in docs
* fix typo
* Add option to example config
Co-authored-by: Tait Hoyem <code@tait.tech>
Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/repository.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/repository.go b/modules/setting/repository.go index b5764f7fc4..5203a1bbeb 100644 --- a/modules/setting/repository.go +++ b/modules/setting/repository.go @@ -29,6 +29,7 @@ var ( AnsiCharset string ForcePrivate bool DefaultPrivate string + DefaultPushCreatePrivate bool MaxCreationLimit int MirrorQueueLength int PullRequestQueueLength int @@ -134,6 +135,7 @@ var ( AnsiCharset: "", ForcePrivate: false, DefaultPrivate: RepoCreatingLastUserVisibility, + DefaultPushCreatePrivate: true, MaxCreationLimit: -1, MirrorQueueLength: 1000, PullRequestQueueLength: 1000, |