github-api
github-api copied to clipboard
Java API for GitHub
GitHub offers an option to generate release notes based on issues and PRs -> https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes The API call is described at https://docs.github.com/en/rest/releases/releases#generate-release-notes-content-for-a-release
**Describe the bug** While there is a way to create a tree (`GHTreeBuilder`) and to add an object to the tree (`GHTreeBuilder#add`), there is no clear way to remove an...
There is missing property `state_reason`, should be added with appropriate enum.
**Describe the bug** A `GHUser` type is returned even when in the payload the account type is `Organization`. More precisely in the event `installation.created` when the `installation.account.type` is set to...
# Description Fixes #576 Adds a method to check if GHUser is a collaborator on that repository. You can find the github documentation for that endpoint [here](https://docs.github.com/en/rest/reference/collaborators#check-if-a-user-is-a-repository-collaborator=). # Before submitting...
# Description Currently, when pulling down a list of GHGist objects, using ```Java gitHub.getMyself().listGists().toList() ``` The GHGist objects returned in the list do not contain the contents of the files...
# Description added new fields in GHPullRequestReviewComment that were missing. Assuming that the changes are minor the mocked data snapshot has not been updated. The response and its JSON Schema...
**Describe the bug** [GHBranchProtection](https://github.com/hub4j/github-api/blob/4e103a6b192ca88c7948457e2b21ea3e6be9de89/src/main/java/org/kohsuke/github/GHBranchProtection.java#L245) is using the `contexts` field in RequiredStatusChecks. [This field](https://docs.github.com/en/[email protected]/rest/reference/repos#update-branch-protection--parameters) was [deprecated in GitHub 3.0](https://docs.github.com/en/[email protected]/rest/reference/branches#update-branch-protection--parameters). > contexts(array of strings) | Required. Deprecated: The list of status checks...
**Describe the bug** Scan Repository Now fails branch ``` Checking branch [release/v1.9.0.0](repo-name/branch-name) ‘jenkins/Jenkinsfile.selenium’ found Met criteria ERROR: [Mon Jun 13 22:05:43 UTC 2022] Could not fetch branches from source a4e4fa47-7b9a-49de-a5b8-56e68cfb2e08...
**Describe the bug** It currently seems to be impossible to add a new public key to user's account using `GHMyself`. [`POST /user/keys`](https://developer.github.com/v3/users/keys/#create-a-public-ssh-key-for-the-authenticated-user) is the relevant GitHub API endpoint. **To Reproduce**...