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 Creation Endpoint #38

Merged
merged 5 commits into from
Jun 19, 2016

Conversation

bitdivision
Copy link
Contributor

@bitdivision bitdivision commented May 29, 2016

Hi,

I've added a create method on Repo to allow creation of new repositories as per https://developer.github.com/v3/repos/#create.

I had to add a RepoOptions struct and accompanying Builder.

I've tried to keep everything as similar as possible to other code in rep.rs.in so hopefully there won't be too many issues with it.

I did have two queries.

  1. Was there any reason the private field on Repo was commented out as private (keyword)? I've added it back in for the moment.
  2. I've added team_id on RepoOptions as an u32, since there is currently no implementation of teams in the library. Let me know if this is not the best option, happy to change it.

I'm more than happy to change any of this so please do let me know if you have any queries.

@bitdivision
Copy link
Contributor Author

Friendly ping @softprops

@softprops
Copy link
Owner

sry for the delay I'll have a look this weekend

@softprops softprops merged commit 3139422 into softprops:master Jun 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants