Package io.micronaut.starter.util
Class GitHubUtil
java.lang.Object
io.micronaut.starter.util.GitHubUtil
Utility class for GitHub operations.
- Since:
- 2.2
- Author:
- Pavol Gressa
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidinitAndPushToGitHubRepository(GitHubRepository repository, GitHubUser user, Path localPath, String authToken) Push files inlocalPathto the GitHub repositoryrepository.
-
Field Details
-
INIT_COMMIT_MESSAGE
- See Also:
-
-
Constructor Details
-
GitHubUtil
public GitHubUtil()
-
-
Method Details
-
initAndPushToGitHubRepository
public static void initAndPushToGitHubRepository(GitHubRepository repository, GitHubUser user, Path localPath, String authToken) throws IOException Push files inlocalPathto the GitHub repositoryrepository.- Parameters:
repository- github repositoryuser- github userlocalPath- local directry with generated contentauthToken- github user access authToken- Throws:
IOException- if the push to repo fails
-