Short cut

This commit is contained in:
Kohsuke Kawaguchi
2013-11-12 12:45:39 -08:00
parent 0533fc98a2
commit 6b7ceed1a5

View File

@@ -63,6 +63,13 @@ public class GHEventInfo {
return root.getUser(actor.getLogin());
}
/**
* Quick way to just get the actor of the login.
*/
public String getActorLogin() throws IOException {
return actor.getLogin();
}
public GHOrganization getOrganization() throws IOException {
return (org==null || org.getLogin()==null) ? null : root.getOrganization(org.getLogin());
}