public class GithubService
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GithubService.Asset |
static class |
GithubService.Author |
static class |
GithubService.AuthorExtended |
static class |
GithubService.Commit |
static class |
GithubService.CommitInfo |
static class |
GithubService.Release |
static class |
GithubService.SHAInfo |
Constructor and Description |
---|
GithubService(java.lang.String user,
java.lang.String repo)
Instantiates with the branch as "master"
|
GithubService(java.lang.String user,
java.lang.String repo,
java.lang.String branch) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
constructUrl(boolean raw)
Constructs the url this service is directed at
|
java.lang.String |
generateChangelog()
Generates a changelog
|
java.lang.String |
generateChangelog(java.lang.String sha)
Generates a changelog from the given sha
|
GithubService.Commit[] |
getCommitsToRepo()
Retrieves all the commits to the repo
|
GithubService.Commit[] |
getCommitsToRepo(java.lang.String start)
Retrieves all the commits to the repo
|
GithubService.Commit |
getCommitToRepo(java.lang.String sha)
Gets the commit with the corresponding sha
|
GithubService.Release[] |
getReleases() |
java.util.List<java.lang.String> |
readPath(java.lang.String path)
Reads the contents of the file at the given path relative to the repo
|
public GithubService(java.lang.String user, java.lang.String repo, java.lang.String branch)
public GithubService(java.lang.String user, java.lang.String repo)
public GithubService.Release[] getReleases()
public java.lang.String generateChangelog(java.lang.String sha)
sha
- The sha to start the changelog frompublic java.lang.String generateChangelog()
public GithubService.Commit[] getCommitsToRepo(java.lang.String start)
start
- The sha representing where to start listing commits frompublic GithubService.Commit[] getCommitsToRepo()
public GithubService.Commit getCommitToRepo(java.lang.String sha)
sha
- The shapublic java.util.List<java.lang.String> readPath(java.lang.String path) throws java.io.IOException
path
- The pathjava.io.IOException
public java.lang.String constructUrl(boolean raw)
raw
- Whether to use the raw version of the url