Package org.kohsuke.github

Examples of org.kohsuke.github.GHOrganization


  }

  public boolean isUserMemberOfOrganization(String organisation, GHUser member){
    boolean orgHasMember = false;
    try {
      GHOrganization org = get().getOrganization(organisation);
      orgHasMember = org.hasMember(member);
      logger.log(Level.FINE, "org.hasMember(member)? user:{0} org: {1} == {2}",
          new Object[]{member.getLogin(), organisation, orgHasMember ? "yes" : "no"});

    } catch (IOException ex) {
      logger.log(Level.SEVERE, null, ex);
View Full Code Here


/**
* @author Kohsuke Kawaguchi
*/
public class Foo {
    public static void main(String[] args) throws Exception {
        GHOrganization org = GitHub.connect().getOrganization("jenkinsci");
        Map<String, GHTeam> teams = org.getTeams();
        System.out.println(teams.size());

        int sz = 0;
        for (GHTeam t : org.listTeams()) {
            sz++;
        }
        System.out.println(sz);
    }
View Full Code Here

TOP

Related Classes of org.kohsuke.github.GHOrganization

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.