Java Connector for GitHub API
Add the following configuration to your build.gradle
, replacing X.Y.Z by the latest version
repositories {
mavenCentral()
}
dependencies {
classpath("com.dipien:github-api-java:X.Y.Z")
}
GitHubClient client = new GitHubClient();
client.setOAuth2Token("GITHUB_OATH_TOKEN");
IRepositoryIdProvider repositoryIdProvider = RepositoryId.create("REPOSITORY_OWNER", "REPOSITORY_NAME");
Release release = new Release();
release.setBody("RELEASE_NOTES");
release.setDraft(false);
release.setName("RELEASE_NAME");
release.setTagName("RELEASE_TAG_NAME");
release.setPrerelease(false);
release.setTargetCommitish("BRANCH_NAME");
ReleaseService releaseService = new ReleaseService(client);
releaseService.createRelease(repositoryIdProvider, release);
Sponsor this open source project to help us get the funding we need to continue working on it.
- Donate with Bitcoin Lightning ⚡️ dipien@getalby.com
- Donate cryptocurrency
- Donate with PayPal
- Donate on Patreon
- Become a member of Medium [We will receive a portion of your membership fee]
You can donate BTC (lightning), using this QR: