ansys / ansys-templates

A tool for creating new projects according to Ansys guidelines
https://templates.ansys.com
MIT License
11 stars 4 forks source link

Investigate auto-push to GitHub #89

Open jorgepiloto opened 2 years ago

jorgepiloto commented 2 years ago

🐞 Problem As opposed to the deprecated template, ansys-templates does not automatically create a GitHub repository for pushing the generated project.

💡 Solution One of the ways for creating a new GH repo is to use the gh tool, see https://cli.github.com/manual/gh_repo_create.

I think we could take advantage of the [subprocess] module for calling gh in the background and push the baked project if specified by the user. The following things need to be considered:

jorgepiloto commented 2 years ago

Also, what happens with git configuration? What about signing via GPG...? Should we expect users to have this defined by default in their global config?

germa89 commented 2 years ago

This is interesting. I recently used this package and I kind of missed that. Although it did ask you about the git repo.