aboutsummaryrefslogtreecommitdiffstats
path: root/services/forms
diff options
context:
space:
mode:
authorDenys Konovalov <kontakt@denyskon.de>2024-03-04 03:56:52 +0100
committerGitHub <noreply@github.com>2024-03-04 02:56:52 +0000
commitfe6792dff3d167e87b0c4476f7e7a7ce15742855 (patch)
tree9511f5bdbeba0f94189f9e173f83c116645a37bc /services/forms
parent8553b4600e3035b6f6ad6907c37cebd013fa4d64 (diff)
downloadgitea-fe6792dff3d167e87b0c4476f7e7a7ce15742855.tar.gz
gitea-fe6792dff3d167e87b0c4476f7e7a7ce15742855.zip
Enable/disable owner and repo projects independently (#28805)
Part of #23318 Add menu in repo settings to allow for repo admin to decide not just if projects are enabled or disabled per repo, but also which kind of projects (repo-level/owner-level) are enabled. If repo projects disabled, don't show the projects tab. ![grafik](https://github.com/go-gitea/gitea/assets/47871822/b9b43fb4-824b-47f9-b8e2-12004313647c) --------- Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'services/forms')
-rw-r--r--services/forms/repo_form.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/forms/repo_form.go b/services/forms/repo_form.go
index e40bcf4eea..8c3e458d2f 100644
--- a/services/forms/repo_form.go
+++ b/services/forms/repo_form.go
@@ -142,6 +142,7 @@ type RepoSettingForm struct {
ExternalTrackerRegexpPattern string
EnableCloseIssuesViaCommitInAnyBranch bool
EnableProjects bool
+ ProjectsMode string
EnableReleases bool
EnablePackages bool
EnablePulls bool