public class GitHubUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INIT_COMMIT_MESSAGE |
| Constructor and Description |
|---|
GitHubUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
initAndPushToGitHubRepository(@NotNull GitHubRepository repository,
@NotNull GitHubUser user,
@NotNull java.nio.file.Path localPath,
@NotNull java.lang.String authToken)
Push files in
localPath to the GitHub repository repository. |
public static final java.lang.String INIT_COMMIT_MESSAGE
public static void initAndPushToGitHubRepository(@NotNull
@NotNull GitHubRepository repository,
@NotNull
@NotNull GitHubUser user,
@NotNull
@NotNull java.nio.file.Path localPath,
@NotNull
@NotNull java.lang.String authToken)
throws java.io.IOException
localPath to the GitHub repository repository.repository - github repositoryuser - github userlocalPath - local directry with generated contentauthToken - github user access authTokenjava.io.IOException - if the push to repo fails