Missing support for deployment environments
Deployment environments are missing from the library. For example, I can't get, list, create, update, or delete deployment environments.
GitHub REST API documentation for deployment environments
Note: Deployment environments may be indirectly created via creating a deployment and specifying a string in the environment field:
import org.kohsuke.github.GitHub
private void createDeployment() {
GitHub.connectUsingOAuth("githubToken")
.getRepository("user/repo")
.createDeployment("1.0")
.environment("production")
.create()
}
Hi @bitwiseman I want to work on this issue.
@bitwiseman
I think your working on gradle.
Since org.kohsuke.github library might not support these endpoints directly, you can use a library like OkHttp or Apache HttpClient to make direct HTTP requests to the GitHub API.
implementation 'com.squareup.okhttp3:okhttp:4.9.2'
if issue resolve please let me know @bitwiseman