github-api icon indicating copy to clipboard operation
github-api copied to clipboard

Missing support for deployment environments

Open charlie-collard opened this issue 2 years ago • 3 comments

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()
}

charlie-collard avatar Sep 19 '23 16:09 charlie-collard

Hi @bitwiseman I want to work on this issue.

rpeb avatar Nov 29 '23 13:11 rpeb

@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'

VivekShahare04 avatar Jul 10 '24 07:07 VivekShahare04

if issue resolve please let me know @bitwiseman

VivekShahare04 avatar Jul 10 '24 07:07 VivekShahare04