public class GitHubReleaseAPI extends Object
| Constructor and Description |
|---|
GitHubReleaseAPI(@NotNull String repoName,
@NotNull String orgName)
Create an API object.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull List<GitHubRelease> |
getAllReleases()
Get all the releases the GitHub project.
|
int |
getBuildsBehind(GitHubRelease release)
Get how many versions behind a release is.
|
@NotNull GitHubRelease |
getLatestVersion()
Get the latest release.
|
@NotNull GitHubRelease |
getReleaseByTag(@NotNull String tag)
Get a release by a given tag.
|
String |
getRepoURL()
Get the repository's URL.
|
void |
refreshReleases()
Refresh the releases for this repository.
|
public GitHubReleaseAPI(@NotNull
@NotNull String repoName,
@NotNull
@NotNull String orgName)
throws IOException
repoName - The repository name.orgName - The name of the user OR organization the repository is on.IOException@NotNull public @NotNull List<GitHubRelease> getAllReleases()
public int getBuildsBehind(GitHubRelease release)
release - The release you want to check.@NotNull public @NotNull GitHubRelease getLatestVersion()
@NotNull public @NotNull GitHubRelease getReleaseByTag(@NotNull @NotNull String tag)
tag - The tag to search for.public String getRepoURL()
public void refreshReleases()
throws IOException
IOExceptionCopyright © 2023. All rights reserved.