1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-01 09:11:40 +02:00
gitea/modules
techknowlogick 2741546bed
Repositories: by default disable all units except code and pulls on forks (#22541)
Most of the time forks are used for contributing code only, so not
having
issues, projects, release and packages is a better default for such
cases.
They can still be enabled in the settings.

A new option `DEFAULT_FORK_REPO_UNITS` is added to configure the default
units on forks.

Also add missing `repo.packages` unit to documentation.

code by: @brechtvl

## ⚠️ BREAKING ⚠️ 

When forking a repository, the fork will now have issues, projects,
releases, packages and wiki disabled. These can be enabled in the
repository settings afterwards. To change back to the previous default
behavior, configure `DEFAULT_FORK_REPO_UNITS` to be the same value as
`DEFAULT_REPO_UNITS`.

Co-authored-by: Brecht Van Lommel <brecht@blender.org>
2023-02-04 14:48:38 +08:00
..
actions Fix actions workflow branches match bug (#22724) 2023-02-02 20:40:08 +08:00
activitypub
analyze
auth Fix bugs with WebAuthn preventing sign in and registration. (#22651) 2023-02-01 07:24:10 +00:00
avatar
base
cache
charset Fix line spacing for plaintext previews (#22699) 2023-02-01 22:51:02 -06:00
container
context Implement actions (#21937) 2023-01-31 09:45:19 +08:00
csv
doctor
emoji
eventsource
generate
git Refactor git command package to improve security and maintainability (#22678) 2023-02-04 10:30:43 +08:00
gitgraph Refactor git command package to improve security and maintainability (#22678) 2023-02-04 10:30:43 +08:00
graceful
hcaptcha
highlight
hostmatcher
html
httpcache Add some comments for recent code (#22725) 2023-02-02 11:39:38 -06:00
httplib
indexer
issue/template
json
lfs
log Improve trace logging for pulls and processes (#22633) 2023-02-03 18:11:48 -05:00
markup Fix README TOC links (#22577) 2023-01-31 13:21:29 +08:00
mcaptcha
metrics
migration
mirror
nosql
notification Implement actions (#21937) 2023-01-31 09:45:19 +08:00
options
packages Add Conda package registry (#22262) 2023-02-01 12:30:39 -06:00
paginator
password
pprof
private Implement actions (#21937) 2023-01-31 09:45:19 +08:00
process Improve trace logging for pulls and processes (#22633) 2023-02-03 18:11:48 -05:00
proxy
proxyprotocol
public
queue
recaptcha
references Use correct captured group range when parsing cross-reference (#22672) 2023-01-31 10:08:05 +01:00
regexplru
repository Repositories: by default disable all units except code and pulls on forks (#22541) 2023-02-04 14:48:38 +08:00
secret
session
setting Repositories: by default disable all units except code and pulls on forks (#22541) 2023-02-04 14:48:38 +08:00
sitemap
ssh
storage Implement actions (#21937) 2023-01-31 09:45:19 +08:00
structs Implement actions (#21937) 2023-01-31 09:45:19 +08:00
svg
sync
system
templates Implement actions (#21937) 2023-01-31 09:45:19 +08:00
test
timeutil
translation
typesniffer
updatechecker
upload
uri
user
util
validation
watcher
web
webhook