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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
initAndPushToGitHubRepository
(GitHubRepository repository, GitHubUser user, Path localPath, String authToken) Push files inlocalPath
to 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 inlocalPath
to 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
-