github-api
github-api copied to clipboard
Java API for GitHub
I saw a number of projects making the choice to remove `@author` tags from their JavaDocs (https://github.com/checkstyle/checkstyle/issues/5738 for example). I thought it was a good choice - this is a...
Could such method be added into PR object? Issue and PR content differs and it very inconvenient to do a call through parent like `pr.getRepository().getIssue(pr.getNumber())`
The documentation of this library is **extremely lacking**. There are no examples for even the simplest case of OAuth-based authentication for a GitHub app. The javadoc is basically non-existent. I...
`org.kohsuke.github.GitHubBuilder#fromProperties()` as well as `org.kohsuke.github.GitHubBuilder#fromEnvironment()` doesn't support custom apiUrl
**Describe the bug** The test-case below triggers a NullPointerException because since some versions github-api expects "encoding" to be set in GHContent always, however it seems sometimes this is not set...
https://github.com/github-api/github-api/blob/bccae94c7a740fa7ba297fd6eb2a6782ed156a98/src/main/java/org/kohsuke/github/GHRepository.java#L1771-L1774 This is fine for a few pages, but bad beyond three pages. This points to a need for `last()`, `first()`, `count()`, and other methods to be added to `PagedIterable`...
Please refer to this githug api - https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref Currently there in the library there is no good way to find the combined status of a ref. I believe support for...
# Description When you misuse GHRepository.getFileContent a `com.fasterxml.jackson.databind.exc.MismatchedInputException` is thrown. ## Reproduce Create an authorized instance `Github github` (for example using `new GitHubBuilder().withOAuthToken(token).build();`) Execute this: `gitHub.getRepository("github-api/github-api").getFileContent("");` You should get something...
Rename `GHCreateRepositoryBuilder`to `GHRepositoryBuilder`, or perhaps even `GHRepository.Creator`
The `populate()` method depends on `adapt()`. The Iterator created in `adapt()` loads a result, but never refreshes it: https://github.com/github-api/github-api/blob/bccae94c7a740fa7ba297fd6eb2a6782ed156a98/src/main/java/org/kohsuke/github/PagedSearchIterable.java#L91-L93 This means that the `getTotalCount()` can become out of sync from...