# Conflicts:
#	pom.xml
This commit is contained in:
Paulo Almeida
2019-08-26 12:31:23 +12:00
7 changed files with 86 additions and 17 deletions

View File

@@ -481,6 +481,14 @@ public class GitHub {
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
*