|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egit.github.core.service.GitHubService
org.eclipse.egit.github.core.service.PullRequestService
public class PullRequestService
Service class for creating, updating, getting, and listing pull requests as well as getting the commits associated with a pull request and the files modified by a pull request.
Field Summary | |
---|---|
static String |
PR_BASE
PR_BASE |
static String |
PR_BODY
PR_BODY |
static String |
PR_HEAD
PR_HEAD |
static String |
PR_STATE
PR_STATE |
static String |
PR_TITLE
PR_TITLE |
Fields inherited from class org.eclipse.egit.github.core.service.GitHubService |
---|
ACCEPT_FULL, ACCEPT_HTML, ACCEPT_TEXT, client |
Constructor Summary | |
---|---|
PullRequestService()
Create pull request service |
|
PullRequestService(GitHubClient client)
Create pull request service |
Method Summary | |
---|---|
CommitComment |
createComment(IRepositoryIdProvider repository,
int id,
CommitComment comment)
Create comment on given pull request |
PullRequest |
createPullRequest(IRepositoryIdProvider repository,
int issueId,
String head,
String base)
Create pull request by attaching branch information to an existing issue |
PullRequest |
createPullRequest(IRepositoryIdProvider repository,
PullRequest request)
Create pull request |
protected PagedRequest<PullRequest> |
createPullsRequest(IRepositoryIdProvider provider,
String state,
int start,
int size)
Create paged request for fetching pull requests |
void |
deleteComment(IRepositoryIdProvider repository,
long commentId)
Delete commit comment with given id |
CommitComment |
editComment(IRepositoryIdProvider repository,
CommitComment comment)
Edit pull request comment |
PullRequest |
editPullRequest(IRepositoryIdProvider repository,
PullRequest request)
Edit pull request |
CommitComment |
getComment(IRepositoryIdProvider repository,
long commentId)
Get commit comment with given id |
List<CommitComment> |
getComments(IRepositoryIdProvider repository,
int id)
Get all comments on commits in given pull request |
List<RepositoryCommit> |
getCommits(IRepositoryIdProvider repository,
int id)
Get all commits associated with given pull request id |
List<CommitFile> |
getFiles(IRepositoryIdProvider repository,
int id)
Get all changed files associated with given pull request id |
PullRequest |
getPullRequest(IRepositoryIdProvider repository,
int id)
Create request for single pull request |
List<PullRequest> |
getPullRequests(IRepositoryIdProvider repository,
String state)
Get pull requests from repository matching state |
boolean |
isMerged(IRepositoryIdProvider repository,
int id)
Is the given pull request id merged? |
MergeStatus |
merge(IRepositoryIdProvider repository,
int id,
String commitMessage)
Merge given pull request |
PageIterator<CommitComment> |
pageComments(IRepositoryIdProvider repository,
int id)
Page pull request commit comments |
PageIterator<CommitComment> |
pageComments(IRepositoryIdProvider repository,
int id,
int size)
Page pull request commit comments |
PageIterator<CommitComment> |
pageComments(IRepositoryIdProvider repository,
int id,
int start,
int size)
Page pull request commit comments |
PageIterator<PullRequest> |
pagePullRequests(IRepositoryIdProvider repository,
String state)
Page pull requests with given state |
PageIterator<PullRequest> |
pagePullRequests(IRepositoryIdProvider repository,
String state,
int size)
Page pull requests with given state |
PageIterator<PullRequest> |
pagePullRequests(IRepositoryIdProvider repository,
String state,
int start,
int size)
Page pull requests with given state |
CommitComment |
replyToComment(IRepositoryIdProvider repository,
int pullRequestId,
int commentId,
String body)
Reply to given comment |
Methods inherited from class org.eclipse.egit.github.core.service.GitHubService |
---|
check, createPagedRequest, createPagedRequest, createPageIterator, createRequest, getAll, getAll, getClient, getId, verifyRepository |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PR_TITLE
public static final String PR_BODY
public static final String PR_BASE
public static final String PR_HEAD
public static final String PR_STATE
Constructor Detail |
---|
public PullRequestService()
public PullRequestService(GitHubClient client)
client
- Method Detail |
---|
public PullRequest getPullRequest(IRepositoryIdProvider repository, int id) throws IOException
repository
- id
-
IOException
protected PagedRequest<PullRequest> createPullsRequest(IRepositoryIdProvider provider, String state, int start, int size)
provider
- state
- start
- size
-
public List<PullRequest> getPullRequests(IRepositoryIdProvider repository, String state) throws IOException
repository
- state
-
IOException
public PageIterator<PullRequest> pagePullRequests(IRepositoryIdProvider repository, String state)
repository
- state
-
public PageIterator<PullRequest> pagePullRequests(IRepositoryIdProvider repository, String state, int size)
repository
- state
- size
-
public PageIterator<PullRequest> pagePullRequests(IRepositoryIdProvider repository, String state, int start, int size)
repository
- state
- start
- size
-
public PullRequest createPullRequest(IRepositoryIdProvider repository, PullRequest request) throws IOException
repository
- request
-
IOException
public PullRequest createPullRequest(IRepositoryIdProvider repository, int issueId, String head, String base) throws IOException
repository
- issueId
- head
- base
-
IOException
public PullRequest editPullRequest(IRepositoryIdProvider repository, PullRequest request) throws IOException
repository
- request
-
IOException
public List<RepositoryCommit> getCommits(IRepositoryIdProvider repository, int id) throws IOException
repository
- id
-
IOException
public List<CommitFile> getFiles(IRepositoryIdProvider repository, int id) throws IOException
repository
- id
-
IOException
public boolean isMerged(IRepositoryIdProvider repository, int id) throws IOException
repository
- id
-
IOException
public MergeStatus merge(IRepositoryIdProvider repository, int id, String commitMessage) throws IOException
repository
- id
- commitMessage
-
IOException
public List<CommitComment> getComments(IRepositoryIdProvider repository, int id) throws IOException
repository
- id
-
IOException
public PageIterator<CommitComment> pageComments(IRepositoryIdProvider repository, int id)
repository
- id
-
public PageIterator<CommitComment> pageComments(IRepositoryIdProvider repository, int id, int size)
repository
- id
- size
-
public PageIterator<CommitComment> pageComments(IRepositoryIdProvider repository, int id, int start, int size)
repository
- id
- start
- size
-
public CommitComment getComment(IRepositoryIdProvider repository, long commentId) throws IOException
repository
- commentId
-
IOException
public CommitComment createComment(IRepositoryIdProvider repository, int id, CommitComment comment) throws IOException
repository
- id
- comment
-
IOException
public CommitComment replyToComment(IRepositoryIdProvider repository, int pullRequestId, int commentId, String body) throws IOException
repository
- pullRequestId
- commentId
- body
-
IOException
public CommitComment editComment(IRepositoryIdProvider repository, CommitComment comment) throws IOException
repository
- comment
-
IOException
public void deleteComment(IRepositoryIdProvider repository, long commentId) throws IOException
repository
- commentId
-
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |