Tabnine Logo
GHMyself.listRepositories
Code IndexAdd Tabnine to your IDE (free)

How to use
listRepositories
method
in
org.kohsuke.github.GHMyself

Best Java code snippets using org.kohsuke.github.GHMyself.listRepositories (Showing top 13 results out of 315)

origin: kohsuke/github-api

/**
 * Lists up all repositories this user owns (public and private).
 *
 * Unlike {@link #getAllRepositories()}, this does not wait until all the repositories are returned.
 * Repositories are returned by GitHub API with a 30 items per page.
 */
@Override
public PagedIterable<GHRepository> listRepositories() {
 return listRepositories(30);
}
origin: kohsuke/github-api

/**
 * @deprecated
 *      Use {@link #listRepositories()}
 */
public PagedIterable<GHRepository> listAllRepositories() {
  return listRepositories();
}
origin: org.kohsuke/github-api

/**
 * @deprecated
 *      Use {@link #listRepositories()}
 */
public PagedIterable<GHRepository> listAllRepositories() {
  return listRepositories();
}
origin: org.sonarsource.sonar-plugins.github/github-api

/**
 * Lists up all repositories this user owns (public and private).
 *
 * Unlike {@link #getAllRepositories()}, this does not wait until all the repositories are returned.
 * Repositories are returned by GitHub API with a 30 items per page.
 */
@Override
public PagedIterable<GHRepository> listRepositories() {
 return listRepositories(30);
}
origin: org.sonarsource.sonar-plugins.github/github-api

/**
 * @deprecated
 *      Use {@link #listRepositories()}
 */
public PagedIterable<GHRepository> listAllRepositories() {
  return listRepositories();
}
origin: kohsuke/github-api

/**
 * List repositories that are accessible to the authenticated user (public and private) using the specified page size.
 *
 * This includes repositories owned by the authenticated user, repositories that belong to other users
 * where the authenticated user is a collaborator, and other organizations' repositories that the authenticated
 * user has access to through an organization membership.
 *
 * @param pageSize size for each page of items returned by GitHub. Maximum page size is 100.
 *
 * Unlike {@link #getRepositories()}, this does not wait until all the repositories are returned.
 */
public PagedIterable<GHRepository> listRepositories(final int pageSize) {
  return listRepositories(pageSize, RepositoryListFilter.ALL);
}
origin: org.kohsuke/github-api

/**
 * Lists up all repositories this user owns (public and private).
 *
 * Unlike {@link #getAllRepositories()}, this does not wait until all the repositories are returned.
 * Repositories are returned by GitHub API with a 30 items per page.
 */
@Override
public PagedIterable<GHRepository> listRepositories() {
 return listRepositories(30);
}
origin: org.kohsuke/github-api

/**
 * List repositories that are accessible to the authenticated user (public and private) using the specified page size.
 *
 * This includes repositories owned by the authenticated user, repositories that belong to other users
 * where the authenticated user is a collaborator, and other organizations' repositories that the authenticated
 * user has access to through an organization membership.
 *
 * @param pageSize size for each page of items returned by GitHub. Maximum page size is 100.
 *
 * Unlike {@link #getRepositories()}, this does not wait until all the repositories are returned.
 */
public PagedIterable<GHRepository> listRepositories(final int pageSize) {
  return listRepositories(pageSize, RepositoryListFilter.ALL);
}
origin: com.salesforce.dockerfile-image-update/dockerfile-image-update

  public PagedIterable<GHRepository> getGHRepositories(Multimap<String, String> pathToDockerfileInParentRepo,
                             GHMyself currentUser) throws InterruptedException {
    PagedIterable<GHRepository> listOfRepos;
    Set<String> repoNamesSet = new HashSet<>();
    while (true) {
      listOfRepos = currentUser.listRepositories(100, GHMyself.RepositoryListFilter.OWNER);
      for (GHRepository repo : listOfRepos) {
        repoNamesSet.add(repo.getName());
      }
      boolean listOfReposHasRecentForks = true;
      for (String s : pathToDockerfileInParentRepo.keySet()) {
        String forkName = s.substring(s.lastIndexOf('/') + 1);
        log.info(forkName);
        if (!repoNamesSet.contains(forkName)) {
          listOfReposHasRecentForks = false;
        }
      }
      if (listOfReposHasRecentForks) {
        break;
      } else {
        log.info("Waiting for GitHub API cache to clear...");
        Thread.sleep(TimeUnit.MINUTES.toMillis(1));
      }
    }

    return listOfRepos;
  }
}
origin: salesforce/dockerfile-image-update

  public PagedIterable<GHRepository> getGHRepositories(Multimap<String, String> pathToDockerfileInParentRepo,
                             GHMyself currentUser) throws InterruptedException {
    PagedIterable<GHRepository> listOfRepos;
    Set<String> repoNamesSet = new HashSet<>();
    while (true) {
      listOfRepos = currentUser.listRepositories(100, GHMyself.RepositoryListFilter.OWNER);
      for (GHRepository repo : listOfRepos) {
        repoNamesSet.add(repo.getName());
      }
      boolean listOfReposHasRecentForks = true;
      for (String s : pathToDockerfileInParentRepo.keySet()) {
        String forkName = s.substring(s.lastIndexOf('/') + 1);
        log.info(forkName);
        if (!repoNamesSet.contains(forkName)) {
          listOfReposHasRecentForks = false;
        }
      }
      if (listOfReposHasRecentForks) {
        break;
      } else {
        log.info("Waiting for GitHub API cache to clear...");
        Thread.sleep(TimeUnit.MINUTES.toMillis(1));
      }
    }

    return listOfRepos;
  }
}
origin: groupon/DotCi

public Iterable<GHRepository> getRepositories(final String orgName) {
  try {
    if (orgName.equals(this.user.getLogin())) {
      return this.gh.getMyself().listRepositories();
    } else {
      return this.gh.getOrganization(orgName).listRepositories();
    }
  } catch (final IOException e) {
    throw new RuntimeException(e);
  }
}
origin: org.jenkins-ci.plugins/github-branch-source

for (GHRepository repo : myself.listRepositories(100, GHMyself.RepositoryListFilter.OWNER)) {
  result.add(repo.getName());
origin: org.jenkins-ci.plugins/github-branch-source

          "Looking up repositories of myself %s", repoOwner
      )));
for (GHRepository repo : myself.listRepositories(100)) {
  Connector.checkApiRateLimit(listener, github);
  if (!repo.getOwnerName().equals(repoOwner)) {
org.kohsuke.githubGHMyselflistRepositories

Javadoc

Lists up all repositories this user owns (public and private). Unlike #getAllRepositories(), this does not wait until all the repositories are returned. Repositories are returned by GitHub API with a 30 items per page.

Popular methods of GHMyself

  • getLogin
  • getEmail
  • getName
  • getEmails2
    Returns the read-only list of e-mail addresses configured for you. This corresponds to the stuff you
  • getRepository
  • listAllRepositories
  • getAllOrganizations
    Gets the organization that this user belongs to.
  • getAllRepositories
    Gets the all repositories this user owns (public and private).
  • getAvatarUrl
  • listOrgMemberships
    List your organization memberships

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Socket (java.net)
    Provides a client-side TCP socket.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Notification (javax.management)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now