forgejo/models
techknowlogick 2741546bed
Repositories: by default disable all units except code and pulls on forks ()
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 ref to trigger Actions () 2023-01-31 22:45:25 +00:00
activities Don't return duplicated users who can create org repo () 2023-01-30 18:12:45 +08:00
admin Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
asymkey Improve error report when user passes a private key () 2023-02-02 18:25:54 +00:00
auth Support scoped access tokens () 2023-01-17 15:46:03 -06:00
avatars Fix get system setting bug when enabled redis cache () 2023-01-02 00:06:52 +08:00
db update to build with go1.20 () 2023-02-03 11:23:52 -05:00
dbfs Add some comments for recent code () 2023-02-02 11:39:38 -06:00
fixtures Do not overwrite empty DefaultBranch () 2023-02-02 14:48:48 -06:00
git Add cron method to gc LFS MetaObjects () 2023-01-16 13:50:53 -06:00
issues Improve trace logging for pulls and processes () 2023-02-03 18:11:48 -05:00
migrations Implement actions () 2023-01-31 09:45:19 +08:00
organization Don't return duplicated users who can create org repo () 2023-01-30 18:12:45 +08:00
packages Add Conda package registry () 2023-02-01 12:30:39 -06:00
perm Rename almost all Ctx functions () 2022-12-10 10:46:31 +08:00
project Project links should use parent link methods () 2023-01-23 15:51:18 -06:00
pull refactor some functions to support ctx as first parameter () 2022-12-03 10:48:26 +08:00
repo Do not overwrite empty DefaultBranch () 2023-02-02 14:48:48 -06:00
secret Secrets storage with SecretKey encrypted () 2022-12-20 17:07:13 +08:00
system Set disable_gravatar/enable_federated_avatar when offline mode is true () 2023-01-17 17:00:19 +02:00
unit Repositories: by default disable all units except code and pulls on forks () 2023-02-04 14:48:38 +08:00
unittest Implement actions () 2023-01-31 09:45:19 +08:00
user Implement actions () 2023-01-31 09:45:19 +08:00
webhook Support system hook API () 2023-01-28 19:12:10 +01:00
error.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
fixture_generation.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
fixture_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
main_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
migrate.go Check primary keys for all tables and drop ForeignReference () 2022-12-23 19:35:43 +08:00
migrate_test.go Check primary keys for all tables and drop ForeignReference () 2022-12-23 19:35:43 +08:00
org.go refactor some functions to support ctx as first parameter () 2022-12-03 10:48:26 +08:00
org_team.go Supports wildcard protected branch () 2023-01-16 16:00:22 +08:00
org_team_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
org_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
repo.go Implement actions () 2023-01-31 09:45:19 +08:00
repo_collaboration.go refactor some functions to support ctx as first parameter () 2022-12-03 10:48:26 +08:00
repo_collaboration_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
repo_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
repo_transfer.go Always reuse transaction () 2023-01-08 09:34:58 +08:00
repo_transfer_test.go Rename almost all Ctx functions () 2022-12-10 10:46:31 +08:00
user.go Supports wildcard protected branch () 2023-01-16 16:00:22 +08:00