com.societegenerale.cidroid.tasks.consumer.services.RemoteGitHub Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ci-droid-tasks-consumer-services Show documentation
Show all versions of ci-droid-tasks-consumer-services Show documentation
ci-droid-tasks-consumer services
package com.societegenerale.cidroid.tasks.consumer.services;
import com.societegenerale.cidroid.tasks.consumer.services.exceptions.BranchAlreadyExistsException;
import com.societegenerale.cidroid.tasks.consumer.services.exceptions.GitHubAuthorizationException;
import com.societegenerale.cidroid.tasks.consumer.services.model.github.*;
import java.util.List;
public interface RemoteGitHub {
List fetchOpenPullRequests(String repoFullName);
PullRequest fetchPullRequestDetails(String repoFullName, int prNumber);
User fetchUser(String login);
void addCommentDescribingRebase(String repoFullName,
int prNumber,
Comment comment);
List fetchPullRequestFiles(String repoFullName, int prNumber);
List fetchPullRequestComments(String repoFullName, int prNumber);
ResourceContent fetchContent(String repoFullName, String path, String branch);
UpdatedResource updateContent(String repoFullName, String path, DirectCommit directCommit, String gitLogin, String gitPassword) throws
GitHubAuthorizationException;
PullRequest createPullRequest(String repoFullName, PullRequestToCreate newPr);
Repository fetchRepository(String repoFullName);
Reference fetchHeadReferenceFrom(String repoFullName, String branchName);
Reference createBranch(String repoFullName, String branchName, String fromReferenceSha1, String gitLogin, String gitPassword)
throws BranchAlreadyExistsException, GitHubAuthorizationException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy