diff --git a/pom.xml b/pom.xml
index 15c85ed319..a1568b93cd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
org.kohsuke
pom
- 20
+ 21
github-api
diff --git a/src/main/java/org/kohsuke/github/GitHub.java b/src/main/java/org/kohsuke/github/GitHub.java
index d5d0a2be33..d5e6697127 100644
--- a/src/main/java/org/kohsuke/github/GitHub.java
+++ b/src/main/java/org/kohsuke/github/GitHub.java
@@ -474,6 +474,14 @@ public GHRepository getRepository(String name) throws IOException {
String[] tokens = name.split("/");
return retrieve().to("/repos/" + tokens[0] + '/' + tokens[1], GHRepository.class).wrap(this);
}
+
+ /**
+ * Gets the repository object from its ID
+ */
+ public GHRepository getRepositoryById(String id) throws IOException {
+ return retrieve().to("/repositories/" + id, GHRepository.class).wrap(this);
+ }
+
/**
* Returns a list of popular open source licenses
*