diff --git a/defaults/main.yml b/defaults/main.yml index eb9195b..a000519 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -112,6 +112,15 @@ gitea_repository_push_create_user_enabled: False gitea_repository_push_create_org_enabled: False gitea_repository_auto_watch_on_creation: False gitea_repository_auto_watch_on_change: False +gitea_repository_default_repo_units: + - repo.code + - repo.releases + - repo.issues + - repo.pulls + - repo.wiki + - repo.projects +gitea_repository_default_branch: main + # @var gitea_repository_editor_line_wrap_ext:description: > # Comma-separated list of file extensions for which lines should be wrapped in the CodeMirror editor. # To line wrap files without an extension, just put a comma. diff --git a/templates/custom/conf/app.ini.j2 b/templates/custom/conf/app.ini.j2 index f5df55e..fb67090 100644 --- a/templates/custom/conf/app.ini.j2 +++ b/templates/custom/conf/app.ini.j2 @@ -18,6 +18,8 @@ ACCESS_CONTROL_ALLOW_ORIGIN = {{ gitea_repository_access_control_allow_origin }} USE_COMPAT_SSH_URI = {{ gitea_repository_use_compat_ssh_uri | bool | lower }} ENABLE_PUSH_CREATE_USER = {{ gitea_repository_push_create_user_enabled | bool | lower }} ENABLE_PUSH_CREATE_ORG = {{ gitea_repository_push_create_org_enabled | bool | lower }} +DEFAULT_REPO_UNITS = {{ gitea_repository_default_repo_units | join(",") }} +DEFAULT_BRANCH = {{ gitea_repository_default_branch }} [repository.editor] LINE_WRAP_EXTENSIONS = {{ gitea_repository_editor_line_wrap_ext | join(",") }}