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

Java API for GitHub

Results 268 github-api issues
Sort by recently updated
recently updated
newest added

Error when I upload a 60M file. This is my code. ``` GHRepository repo = github.getRepository(user+"/"+GithubUploader.repo); GHRef masterRef = repo.getRef("heads/master"); String masterTreeSha = repo.getTreeRecursive("master", 1).getSha(); GHTreeBuilder treeBuilder = repo.createTree().baseTree(masterTreeSha); treeBuilder.add(uploadPath+"/"+file.getName(),...

new feature
enhancement

Using URI Templates would make it clearer what parts of Requests are supposed to be in the URL and which should be passed as JSON. This would also simplify `GitHubRequest`...

enhancement

Version 2.18 and older use this: https://docs.github.com/en/enterprise/2.18/user/rest/reference/git#get-all-references Version 2.19 and new use this: https://docs.github.com/en/rest/reference/git#references Specifically, getting references is now done using `git/matching-refs` instead of `git/refs`. See #822, #842, #844, #845....

bug
enhancement

The only way to get the issue/pull number from notifications is like below: ```` GitHub github = GitHub.connect(); GHNotificationStream stream = github.listNotifications(); for (GHThread t : stream.nonBlocking(true).participating(false).read(true)) { System.out.println((t.getBoundIssue() !=...

enhancement
good first issue

#495 and #496 raise an interesting point. Also #584. This project currently tends to treat instances of data objects as "final" - you request an Issue and the instance you...

new feature
breaking change

Even for people that know certain bits and pieces of this library's source code, it still not trivial to understand how this library deals with GitHub's API rate limit. I'm...

enhancement
documentation

The work around for #669 isn't working on Windows. It appears this may be a bug in Okhttp caching on windows, but it is unclear. https://github.com/github-api/github-api/commit/967512629821b706e8d06ef9b3e57061f397d073

bug
external

Currently, this library does not expose methods for the API that can [Create an impersonation OAuth token](https://developer.github.com/enterprise/2.20/v3/enterprise-admin/users/#create-an-impersonation-oauth-token) or [Delete an impersonation OAuth token](https://developer.github.com/enterprise/2.20/v3/enterprise-admin/users/#delete-an-impersonation-oauth-token).

new feature

One of the most common scenarios is needing to take a new snapshot for a test. Instead of making people file the right resources folder, we should make `github.test.takeSnapshot` default...

task