github-api icon indicating copy to clipboard operation
github-api copied to clipboard

Create example for creating submodules within a repo

Open balajikadambi opened this issue 4 years ago • 2 comments

Is there an API to create sub modules within a repository? Any help to handle this programmatically is appreciated. Thanks for your help!

Regards, Balaji

balajikadambi avatar Oct 20 '21 07:10 balajikadambi

@bitwiseman would you be able to answer my query. Thanks.

balajikadambi avatar Oct 21 '21 04:10 balajikadambi

Is there a REST API call specifically for this? No. But it can be done.

This talks about how to do that via the REST API directly.
https://stackoverflow.com/questions/35765445/how-to-create-submodule-in-github-using-github-rest-api

You should be able to make equivalent calls via this library to create the submodule. I'm setting this as documentation issue.

bitwiseman avatar Oct 21 '21 14:10 bitwiseman