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 option to set projects "internal". #85

Open
afics opened this issue Oct 20, 2015 · 3 comments
Open

Add option to set projects "internal". #85

afics opened this issue Oct 20, 2015 · 3 comments

Comments

@afics
Copy link

afics commented Oct 20, 2015

No description provided.

@samrocketman
Copy link
Owner

https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/projects.md#project-visibility-level

This would drop support for GitLab versions older than 6.4. The minimum GitLab version would be 6.4+.

public should be depracated in config.sh. A new config option should be provided.

  • visibility - possible values: private, internal, public.

If public exists and not visibility then:

  • public=true - means visibility is public.
  • public=false - means visibility is private.

@samrocketman
Copy link
Owner

With older APIs of GitLab no longer being supported it makes sense to move forward with the visibility option.

@cdenneen
Copy link
Contributor

@samrocketman I've put a stop gap in for now with #119
The removal of public completely as boolean in favor of visibility as a string would take a bit more work but guessing could be done with adding something similar to:

    parser.add_option("--public",dest="public",action="store_true",default=False)
    parser.add_option('--visibility,
                      type='choice',
                      action='store',
                      dest='visibility',
                      choices=['private', 'internal', 'public',],
                      default='private',)

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

3 participants