You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a quicker/better way to get a GHPullRequest instance from searchIssues() results?
I have gotString sha1 and GHRepository repository instances and the following code:
final PagedSearchIterable<GHIssue> list = githubClient.searchIssues().q(sha1).list();
final GHIssue issue = list.iterator().next();
final String pullRequestUrl = issue.getPullRequest().getUrl().toString();
final int pullRequestNumber = Integer.valueOf(pullRequestUrl.substring(pullRequestUrl.lastIndexOf('/')+1));
final GHPullRequest pullRequest = repository.getPullRequest(pullRequestNumber);
The text was updated successfully, but these errors were encountered:
Is there a quicker/better way to get a
GHPullRequest
instance fromsearchIssues()
results?I have got
String sha1
andGHRepository repository
instances and the following code:The text was updated successfully, but these errors were encountered: