Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Repo
was commented out asprivate (keyword)
? I've added it back in for the moment.team_id
onRepoOptions
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.