@Produces(value="application/json")
@Path(value="/rest/api/{jclouds.api-version}/projects")
public interface PullRequestApi
| Modifier and Type | Method and Description |
|---|---|
Participants |
addParticipant(java.lang.String project,
java.lang.String repo,
long pullRequestId,
java.lang.String userSlug,
CreateParticipants participants) |
Participants |
assignParticipant(java.lang.String project,
java.lang.String repo,
long pullRequestId,
CreateParticipants participants) |
MergeStatus |
canMerge(java.lang.String project,
java.lang.String repo,
int pullRequestId) |
ChangePage |
changes(java.lang.String project,
java.lang.String repo,
int pullRequestId,
java.lang.Boolean withComments,
java.lang.Integer limit,
java.lang.Integer start) |
CommitPage |
commits(java.lang.String project,
java.lang.String repo,
int pullRequestId,
java.lang.Boolean withCounts,
java.lang.Integer limit,
java.lang.Integer start) |
PullRequest |
create(java.lang.String project,
java.lang.String repo,
CreatePullRequest createPullRequest) |
PullRequest |
decline(java.lang.String project,
java.lang.String repo,
int pullRequestId,
int version) |
RequestStatus |
delete(java.lang.String project,
java.lang.String repo,
long pullRequestId,
long version) |
RequestStatus |
deleteParticipant(java.lang.String project,
java.lang.String repo,
long pullRequestId,
java.lang.String userSlug) |
PullRequest |
get(java.lang.String project,
java.lang.String repo,
int pullRequestId) |
PullRequestPage |
list(java.lang.String project,
java.lang.String repo,
java.lang.String direction,
java.lang.String branchOrTag,
java.lang.String state,
java.lang.String order,
java.lang.Boolean withAttributes,
java.lang.Boolean withProperties,
java.lang.Integer start,
java.lang.Integer limit) |
ActivitiesPage |
listActivities(java.lang.String project,
java.lang.String repo,
long pullRequestId,
java.lang.Integer limit,
java.lang.Integer start) |
ParticipantsPage |
listParticipants(java.lang.String project,
java.lang.String repo,
long pullRequestId,
java.lang.Integer limit,
java.lang.Integer start) |
PullRequest |
merge(java.lang.String project,
java.lang.String repo,
int pullRequestId,
int version) |
PullRequest |
reopen(java.lang.String project,
java.lang.String repo,
int pullRequestId,
int version) |
@Named(value="pull-request:get")
@Consumes(value="application/json")
@Path(value="/{project}/repos/{repo}/pull-requests/{pullRequestId}")
@GET
PullRequest get(@PathParam(value="project")
java.lang.String project,
@PathParam(value="repo")
java.lang.String repo,
@PathParam(value="pullRequestId")
int pullRequestId)
@Named(value="pull-request:list")
@Consumes(value="application/json")
@Path(value="/{project}/repos/{repo}/pull-requests")
@GET
PullRequestPage list(@PathParam(value="project")
java.lang.String project,
@PathParam(value="repo")
java.lang.String repo,
@Nullable @QueryParam(value="direction")
java.lang.String direction,
@Nullable @QueryParam(value="at")
java.lang.String branchOrTag,
@Nullable @QueryParam(value="state")
java.lang.String state,
@Nullable @QueryParam(value="order")
java.lang.String order,
@Nullable @QueryParam(value="withAttributes")
java.lang.Boolean withAttributes,
@Nullable @QueryParam(value="withProperties")
java.lang.Boolean withProperties,
@Nullable @QueryParam(value="start")
java.lang.Integer start,
@Nullable @QueryParam(value="limit")
java.lang.Integer limit)
@Named(value="pull-request:create")
@Consumes(value="application/json")
@Path(value="/{project}/repos/{repo}/pull-requests")
@POST
PullRequest create(@PathParam(value="project")
java.lang.String project,
@PathParam(value="repo")
java.lang.String repo,
CreatePullRequest createPullRequest)
@Named(value="pull-request:delete")
@Consumes(value="application/json")
@Path(value="/{project}/repos/{repo}/pull-requests/{pullRequestId}")
@DELETE
RequestStatus delete(@PathParam(value="project")
java.lang.String project,
@PathParam(value="repo")
java.lang.String repo,
@PathParam(value="pullRequestId")
long pullRequestId,
long version)
@Named(value="pull-request:merge")
@Consumes(value="application/json")
@Path(value="/{project}/repos/{repo}/pull-requests/{pullRequestId}/merge")
@POST
PullRequest merge(@PathParam(value="project")
java.lang.String project,
@PathParam(value="repo")
java.lang.String repo,
@PathParam(value="pullRequestId")
int pullRequestId,
@QueryParam(value="version")
int version)
@Named(value="pull-request:can-merge")
@Consumes(value="application/json")
@Path(value="/{project}/repos/{repo}/pull-requests/{pullRequestId}/merge")
@GET
MergeStatus canMerge(@PathParam(value="project")
java.lang.String project,
@PathParam(value="repo")
java.lang.String repo,
@PathParam(value="pullRequestId")
int pullRequestId)
@Named(value="pull-request:decline")
@Consumes(value="application/json")
@Path(value="/{project}/repos/{repo}/pull-requests/{pullRequestId}/decline")
@POST
PullRequest decline(@PathParam(value="project")
java.lang.String project,
@PathParam(value="repo")
java.lang.String repo,
@PathParam(value="pullRequestId")
int pullRequestId,
@QueryParam(value="version")
int version)
@Named(value="pull-request:reopen")
@Consumes(value="application/json")
@Path(value="/{project}/repos/{repo}/pull-requests/{pullRequestId}/reopen")
@POST
PullRequest reopen(@PathParam(value="project")
java.lang.String project,
@PathParam(value="repo")
java.lang.String repo,
@PathParam(value="pullRequestId")
int pullRequestId,
@QueryParam(value="version")
int version)
@Named(value="pull-request:changes")
@Consumes(value="application/json")
@Path(value="/{project}/repos/{repo}/pull-requests/{pullRequestId}/changes")
@GET
ChangePage changes(@PathParam(value="project")
java.lang.String project,
@PathParam(value="repo")
java.lang.String repo,
@PathParam(value="pullRequestId")
int pullRequestId,
@Nullable @QueryParam(value="withComments")
java.lang.Boolean withComments,
@Nullable @QueryParam(value="limit")
java.lang.Integer limit,
@Nullable @QueryParam(value="start")
java.lang.Integer start)
@Named(value="pull-request:commits")
@Consumes(value="application/json")
@Path(value="/{project}/repos/{repo}/pull-requests/{pullRequestId}/commits")
@GET
CommitPage commits(@PathParam(value="project")
java.lang.String project,
@PathParam(value="repo")
java.lang.String repo,
@PathParam(value="pullRequestId")
int pullRequestId,
@Nullable @QueryParam(value="withCounts")
java.lang.Boolean withCounts,
@Nullable @QueryParam(value="limit")
java.lang.Integer limit,
@Nullable @QueryParam(value="start")
java.lang.Integer start)
@Named(value="pull-request:list-activities")
@Consumes(value="application/json")
@Path(value="/{project}/repos/{repo}/pull-requests/{pullRequestId}/activities")
@GET
ActivitiesPage listActivities(@PathParam(value="project")
java.lang.String project,
@PathParam(value="repo")
java.lang.String repo,
@PathParam(value="pullRequestId")
long pullRequestId,
@Nullable @QueryParam(value="limit")
java.lang.Integer limit,
@Nullable @QueryParam(value="start")
java.lang.Integer start)
@Named(value="pull-request:list-participants")
@Consumes(value="application/json")
@Path(value="/{project}/repos/{repo}/pull-requests/{pullRequestId}/participants")
@GET
ParticipantsPage listParticipants(@PathParam(value="project")
java.lang.String project,
@PathParam(value="repo")
java.lang.String repo,
@PathParam(value="pullRequestId")
long pullRequestId,
@Nullable @QueryParam(value="limit")
java.lang.Integer limit,
@Nullable @QueryParam(value="start")
java.lang.Integer start)
@Named(value="pull-request:assign-participants")
@Consumes(value="application/json")
@Path(value="/{project}/repos/{repo}/pull-requests/{pullRequestId}/participants")
@POST
Participants assignParticipant(@PathParam(value="project")
java.lang.String project,
@PathParam(value="repo")
java.lang.String repo,
@PathParam(value="pullRequestId")
long pullRequestId,
CreateParticipants participants)
@Named(value="pull-request:delete-participants")
@Consumes(value="application/json")
@Path(value="/{project}/repos/{repo}/pull-requests/{pullRequestId}/participants/{userSlug}")
@DELETE
RequestStatus deleteParticipant(@PathParam(value="project")
java.lang.String project,
@PathParam(value="repo")
java.lang.String repo,
@PathParam(value="pullRequestId")
long pullRequestId,
@PathParam(value="userSlug")
java.lang.String userSlug)
@Named(value="pull-request:add-participant")
@Consumes(value="application/json")
@Path(value="/{project}/repos/{repo}/pull-requests/{pullRequestId}/participants/{userSlug}")
@PUT
Participants addParticipant(@PathParam(value="project")
java.lang.String project,
@PathParam(value="repo")
java.lang.String repo,
@PathParam(value="pullRequestId")
long pullRequestId,
@PathParam(value="userSlug")
java.lang.String userSlug,
CreateParticipants participants)