Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 4

Create repository via GraphQL

Solved! Go to Solution.

From here - https://platform.github.community/t/schema-request-create-repository-and-get-repository-contents/183..., creating a repo via GraphQL was not yet supported. The last update on that thread was Feb 8, 2018, and since the community has moved platforms.

 

Is there any update if create repository is now supported in GraphQL? I do not see a createRepository mutation in the documentation but perhaps there is another method.

 

Thanks

3 Replies
Solution
Community Manager
Message 2 of 4

Re: Create repository via GraphQL

Hi @CraigMilhiser,

Thanks for asking! You are correct, there is not currently a method for creating repositories using the GraphQL API. To create a repository, you will still need to use the Create a repository v3 API endpoint.

 

Thanks!

Highlighted
Copilot Lvl 2
Message 3 of 4

Re: Create repository via GraphQL

I would suggest placing this information directly on the v4 documentation.  It would save a lot of time.

 

More generally, if there were some statement regarding the up-to-dated-ness of the documented schema, that would be great.  In particular, I would hope that the documentation would be autogenereated whenever a change goes live, but that might be easier said than done.

Community Manager
Message 4 of 4

Re: Create repository via GraphQL

Hi @NathanZook,

 

As we're always trying to make GitHub friendlier and more approachable, I appreciate that recommendation. I will pass that on to our documentation team for consideration.

 

Thanks!