Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add builds enabled option to config.sh #90

Open
samrocketman opened this issue Dec 4, 2015 · 0 comments
Open

Add builds enabled option to config.sh #90

samrocketman opened this issue Dec 4, 2015 · 0 comments

Comments

@samrocketman
Copy link
Owner

First discovered in GitLab 8.2.2-ee on GitLab.com.

When creating new projects builds, will are now enabled by default. This should be exposed as an option in config.sh.

diff --git a/lib/manage_gitlab_project.py b/lib/manage_gitlab_project.py
index ac8accf..7c8ec82 100755
--- a/lib/manage_gitlab_project.py
+++ b/lib/manage_gitlab_project.py
@@ -70,6 +70,7 @@ def createproject(pname):
     'snippets_enabled': options.snippets,
     'public': options.public,
     'namespace_id': git.find_group(name=gitlab_namespace).id,
+    'builds_enabled': False
   }
   #make all project options lowercase boolean strings i.e. true instead of True
   for x in project_options.keys():

The config.sh option could be

builds_enabled=true

The default value should be false if config.sh doesn't contain it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant