We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents afce9ec + aa2b7ae commit dccb43fCopy full SHA for dccb43f
1 file changed
src/main/java/org/kohsuke/github/GitHub.java
@@ -473,6 +473,14 @@ public GHRepository getRepository(String name) throws IOException {
473
String[] tokens = name.split("/");
474
return retrieve().to("/repos/" + tokens[0] + '/' + tokens[1], GHRepository.class).wrap(this);
475
}
476
+
477
+ /**
478
+ * Gets the repository object from its ID
479
+ */
480
+ public GHRepository getRepositoryById(String id) throws IOException {
481
+ return retrieve().to("/repositories/" + id, GHRepository.class).wrap(this);
482
+ }
483
484
/**
485
* Returns a list of popular open source licenses
486
*
0 commit comments