Add getTeam by id function

This commit is contained in:
Karol Lassak
2019-03-18 14:15:29 +01:00
parent fad203a66d
commit 87245ab79f
2 changed files with 18 additions and 0 deletions

View File

@@ -578,6 +578,13 @@ public class GitHub {
return allMyTeams;
}
/**
* Gets a sigle team by ID.
*/
public GHTeam getTeam(int id) throws IOException {
return retrieve().to("/teams/" + id, GHTeam.class).wrapUp(this);
}
/**
* Public events visible to you. Equivalent of what's displayed on https://github.com/
*/