Open jorgepiloto opened 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?
This is interesting. I recently used this package and I kind of missed that. Although it did ask you about the git repo.
🐞 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:
Projects should be "internal/private" by default. This way we prevent accidental pushes to the platform and force a manual input from the users, meaning that there they are conscious of what they are doing.
How does gh behave with the current security of the PyAnsys organization when it comes to create a new repo?