All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.capitalone.dashboard.collector.GitHubClient Maven / Gradle / Ivy

There is a newer version: 3.3.20
Show newest version
package com.capitalone.dashboard.collector;

import com.capitalone.dashboard.misc.HygieiaException;
import com.capitalone.dashboard.model.Commit;
import com.capitalone.dashboard.model.GitHubRateLimit;
import com.capitalone.dashboard.model.GitHubRepo;
import com.capitalone.dashboard.model.GitRequest;
import org.springframework.web.client.RestClientException;

import java.net.MalformedURLException;
import java.util.List;
import java.util.Map;

/**
 * Client for fetching commit history from GitHub
 */
public interface GitHubClient {


	List getCommits();
    List getPulls();
    List getIssues();
    String getLDAPDN(GitHubRepo repo, String user);

    void fireGraphQL(GitHubRepo repo, boolean firstRun, Map existingPRMap, Map prCloseMap) throws RestClientException, MalformedURLException, HygieiaException;

    GitHubRateLimit getRateLimit(GitHubRepo repo) throws MalformedURLException, HygieiaException;

    boolean isUnderRateLimit();

    long getRepoOffsetTime(GitHubRepo repo);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy