github-api
github-api copied to clipboard
Java API for GitHub
Support Endpoints: - https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#check-if-vulnerability-alerts-are-enabled-for-a-repository - https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#enable-vulnerability-alerts - https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#disable-vulnerability-alerts
**Describe the bug** Due to some reflections you encounter errors during the runtime when `github-api` is used in a native image. Example ```plain at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)\nCaused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance...
Fixes #1905 # Description # Before submitting a PR: - [ X] Changes must not break binary backwards compatibility. If you are unclear on how to make the change you...
From [this comment](https://github.com/hub4j/github-api/pull/1895/files#r1704397808) on #1895 : > GitHubClient has a method to get Date (or Instant). > https://github.com/hub4j/github-api/blob/main/src/main/java/org/kohsuke/github/GitHubClient.java#L916 > > Unfortunately, diff from local machine time is not reliable. The...
The Github API docs (https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-repository-contributors) say that there is am `anon=true` parameter to add to `/repos/{owner}/{repo}/contributors` in order to fetch anonymous contributions. There does not seem to be an option...
I can't seem to find the implementation of [this endpoint](https://docs.github.com/en/rest/apps/installations?apiVersion=2022-11-28#add-a-repository-to-an-app-installation). What I want to do is be able to create a repository and add it to an already existing app...
**Describe the bug** Calling `getRef().delete()` does not respect the base URL set in .withEndpoint() when creating the OAuth client. It uses `api.github.com` by default. While this would work in production,...
# Description This fix is adding branch renaming support (fix #1967) # Before submitting a PR: - [X] Changes must not break binary backwards compatibility. If you are unclear on...
`GitHubAbuseLimitHander` and `GitHubRateLimitHandler` both implement `parseWaitTime`. Most of the code is the same and could also be useful to consumers of this library. Extract `parseWaitTime` to a utility class and...
# Description # Before submitting a PR: - [ ] Changes must not break binary backwards compatibility. If you are unclear on how to make the change you think is...