We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Now, I'm using the following workaround:
java
public GHUser[] getContributors(final GHRepository repository) throws Exception { final Field field = GHRepository.class.getDeclaredField("root"); field.setAccessible(true); final GitHub gitHub = (GitHub) field.get(repository); final GHUser owner = repository.getOwner(); final String login = owner.getLogin(); final String name = repository.getName(); final Method retrieveMethod = GitHub.class.getDeclaredMethod("retrieve"); retrieveMethod.setAccessible(true); final Object request = retrieveMethod.invoke(gitHub); final Method toMethod = request.getClass().getDeclaredMethod("to", String.class, Class.class); toMethod.setAccessible(true); return (GHUser[]) toMethod.invoke(request, "/repos/" + login + "/" + name + "/contributors", GHUser[].class); }
The text was updated successfully, but these errors were encountered:
Implemented toward 1.62.
Sorry, something went wrong.
No branches or pull requests
Now, I'm using the following workaround:
java
The text was updated successfully, but these errors were encountered: