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 repository visibility field #2042

Closed
bradrydzewski opened this Issue May 15, 2017 · 2 comments

Comments

Projects
1 participant
@bradrydzewski
Member

bradrydzewski commented May 15, 2017

I would like to add a new attribute to the repository called visibility. This will give us more control over which repositories are visible to users and under which circumstances. This idea is inspired by gitlab.

The visibility field will have the following values:

  • public visible by anyone
  • private visible by anyone with access
  • internal visible by any authenticated user

The visibility field will have the following default value:

  • public if repository is public
  • private if repository is private

The use case for this is that some organizations are running github in private mode (meaning the repository is private) but don't want users to have to login to see the build results. This will replace the undocumented PUBLIC_MODE hack that we added a while back.

@bradrydzewski bradrydzewski changed the title from Add visibility field to Add repository visibility field May 15, 2017

@bradrydzewski bradrydzewski added this to To Do in Version 0.7 May 15, 2017

@bradrydzewski bradrydzewski moved this from To Do to In Progress in Version 0.7 May 22, 2017

@bradrydzewski bradrydzewski moved this from In Progress to Done in Version 0.7 May 22, 2017

@bradrydzewski

This comment has been minimized.

Show comment
Hide comment
@bradrydzewski

bradrydzewski May 22, 2017

Member

closed by #2054

Member

bradrydzewski commented May 22, 2017

closed by #2054

@bradrydzewski

This comment has been minimized.

Show comment
Hide comment
@bradrydzewski

bradrydzewski May 22, 2017

Member

note that at the moment this field can only be set via the command line utility (compiled from head or version 0.7+ if you are reading this in the future)

$ drone repo update octocat/hello-world --visibility=public
$ drone repo update octocat/hello-world --visibility=private
$ drone repo update octocat/hello-world --visibility=internal
$ drone repo info octocat/hello-world
  Owner: octocat
  Repo: hello-world
  Type: git
  Config: .drone.yml
  Visibility: internal
  Private: false
  Trusted: false
  Gated: false
  Remote: https://github.com/octocat/hello-world
Member

bradrydzewski commented May 22, 2017

note that at the moment this field can only be set via the command line utility (compiled from head or version 0.7+ if you are reading this in the future)

$ drone repo update octocat/hello-world --visibility=public
$ drone repo update octocat/hello-world --visibility=private
$ drone repo update octocat/hello-world --visibility=internal
$ drone repo info octocat/hello-world
  Owner: octocat
  Repo: hello-world
  Type: git
  Config: .drone.yml
  Visibility: internal
  Private: false
  Trusted: false
  Gated: false
  Remote: https://github.com/octocat/hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment