forgejo-federation/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 Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
cache.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
cors.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
cron.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
cron_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
database.go Support disabling database auto migration (#22053) 2022-12-07 09:58:31 -06:00
database_sqlite.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
database_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
directory.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
federation.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
git.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
i18n.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
incoming_email.go Add support for incoming emails (#22056) 2023-01-14 23:57:10 +08:00
indexer.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
indexer_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
lfs.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
log.go Reminder for no more logs to console (#22282) 2023-01-01 22:00:33 +08:00
mailer.go Allow HOST has no port (#22280) 2023-01-11 20:09:24 +00:00
mailer_test.go Allow HOST has no port (#22280) 2023-01-11 20:09:24 +00:00
markup.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
migrations.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
mime_type_map.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
mirror.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
oauth2_client.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
packages.go Add Conda package registry (#22262) 2023-02-01 12:30:39 -06:00
packages_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
picture.go Fix bug of DisableGravatar default value (#22296) 2023-01-01 20:19:23 +08:00
project.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
proxy.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
queue.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
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 Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
session.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
setting.go Use native error checking with exec.ErrDot (#22735) 2023-02-03 17:22:11 +00:00
setting_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
storage.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
storage_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
task.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
webhook.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00