0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-03 23:02:46 +01:00
gitea/modules/setting
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.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
attachment.go
cache.go
cors.go
cron_test.go
cron.go
database_sqlite.go
database_test.go
database.go Support disabling database auto migration (#22053) 2022-12-07 09:58:31 -06:00
directory.go
federation.go
git.go
i18n.go
incoming_email.go Add support for incoming emails (#22056) 2023-01-14 23:57:10 +08:00
indexer_test.go
indexer.go
lfs.go
log.go Reminder for no more logs to console (#22282) 2023-01-01 22:00:33 +08:00
mailer_test.go Allow HOST has no port (#22280) 2023-01-11 20:09:24 +00:00
mailer.go Allow HOST has no port (#22280) 2023-01-11 20:09:24 +00:00
markup.go
migrations.go
mime_type_map.go
mirror.go
oauth2_client.go
packages_test.go
packages.go Add Conda package registry (#22262) 2023-02-01 12:30:39 -06:00
picture.go Fix bug of DisableGravatar default value (#22296) 2023-01-01 20:19:23 +08:00
project.go
proxy.go
queue.go
repository.go Repositories: by default disable all units except code and pulls on forks (#22541) 2023-02-04 14:48:38 +08:00
service.go
session.go
setting_test.go
setting.go Use native error checking with exec.ErrDot (#22735) 2023-02-03 17:22:11 +00:00
storage_test.go
storage.go
task.go
webhook.go