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

com.societegenerale.cidroid.tasks.consumer.services.RemoteGitHub Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
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