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

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

Add repository visibility field #2042

bradrydzewski opened this issue May 15, 2017 · 2 comments
Projects

Comments

@bradrydzewski
Copy link
Contributor

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 Add visibility field 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
Copy link
Contributor Author

closed by #2054

@bradrydzewski
Copy link
Contributor Author

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
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

1 participant