Class GitHubUtil

java.lang.Object
io.micronaut.starter.util.GitHubUtil

public class GitHubUtil extends Object
Utility class for GitHub operations.
Since:
2.2
Author:
Pavol Gressa
  • Field Details

  • Constructor Details

    • GitHubUtil

      public GitHubUtil()
  • Method Details

    • initAndPushToGitHubRepository

      public static void initAndPushToGitHubRepository(GitHubRepository repository, GitHubUser user, Path localPath, String authToken) throws IOException
      Push files in localPath to the GitHub repository repository.
      Parameters:
      repository - github repository
      user - github user
      localPath - local directry with generated content
      authToken - github user access authToken
      Throws:
      IOException - if the push to repo fails