mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-31 08:21:27 +00:00
Add method to get the list of languages using in repository
This commit is contained in:
@@ -43,4 +43,11 @@ public class RepositoryTest extends AbstractGitHubApiTestBase {
|
||||
private GHRepository getRepository() throws IOException {
|
||||
return gitHub.getOrganization("github-api-test-org").getRepository("jenkins");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void listLanguages() throws IOException {
|
||||
GHRepository r = gitHub.getRepository("kohsuke/github-api");
|
||||
String mainLanguage = r.getLanguage();
|
||||
assertTrue(r.listLanguages().containsKey(mainLanguage));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user