mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-05 08:21:21 +00:00
Merge branch 'master' of https://github.com/kohsuke/github-api
# Conflicts: # pom.xml
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user