com.capitalone.dashboard.collector.GitHubClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of github-graphql-scm-collector Show documentation
Show all versions of github-graphql-scm-collector Show documentation
Github Collector Microservice collecting stats from Github using graphql
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