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

Support for GitHub Organizations #20

Open
eugeneross opened this issue May 22, 2017 · 2 comments
Open

Support for GitHub Organizations #20

eugeneross opened this issue May 22, 2017 · 2 comments

Comments

@eugeneross
Copy link

Would like to see this able to support repos within an organization. I would love to use this at my company. I originally tried to do this for an organization, but to the best of my knowledge organizations and their repos don't have auth tokens. Would there be a way to use stage through a web hook instead?

@zpnk
Copy link
Owner

zpnk commented Jun 2, 2017

We do use web hooks, but the reason we need the auth token is to actually clone the repo so we can deploy it.

The way it works is: GitHub sends an event via webhook -> stage clones the latest commit for the repo -> stage deploys the repo at that commit.

To handle this The Right Way™ would mean moving away from the personal access tokens and implementing the OAuth flow.

Users could sign in with GitHub the we'd generate the token for them and hand it off to stage-ci. Implementing this flow would require work on the stage.now site.

I'd love to move in that direction, but it's definitely a larger project. I'm definitely open to PRs on that front!

@eugeneross
Copy link
Author

Thanks for the clarification! I'll look into providing a PR somehow!

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

2 participants