Interface PullRequestApi


  • @Produces("application/json")
    @Path("/rest/api/{jclouds.api-version}/projects")
    public interface PullRequestApi
    • Method Detail

      • get

        @Named("pull-request:get")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}")
        @GET
        PullRequest get​(@PathParam("project")
                        String project,
                        @PathParam("repo")
                        String repo,
                        @PathParam("pullRequestId")
                        int pullRequestId)
      • list

        @Named("pull-request:list")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests")
        @GET
        PullRequestPage list​(@PathParam("project")
                             String project,
                             @PathParam("repo")
                             String repo,
                             @Nullable @QueryParam("direction")
                             String direction,
                             @Nullable @QueryParam("at")
                             String branchOrTag,
                             @Nullable @QueryParam("state")
                             String state,
                             @Nullable @QueryParam("order")
                             String order,
                             @Nullable @QueryParam("withAttributes")
                             Boolean withAttributes,
                             @Nullable @QueryParam("withProperties")
                             Boolean withProperties,
                             @Nullable @QueryParam("start")
                             Integer start,
                             @Nullable @QueryParam("limit")
                             Integer limit)
      • create

        @Named("pull-request:create")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests")
        @POST
        PullRequest create​(@PathParam("project")
                           String project,
                           @PathParam("repo")
                           String repo,
                           CreatePullRequest createPullRequest)
      • edit

        @Named("pull-request:edit")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}")
        @PUT
        PullRequest edit​(@PathParam("project")
                         String project,
                         @PathParam("repo")
                         String repo,
                         @PathParam("pullRequestId")
                         int pullRequestId,
                         EditPullRequest editPullRequest)
      • delete

        @Named("pull-request:delete")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}")
        @DELETE
        RequestStatus delete​(@PathParam("project")
                             String project,
                             @PathParam("repo")
                             String repo,
                             @PathParam("pullRequestId")
                             long pullRequestId,
                             long version)
      • merge

        @Named("pull-request:merge")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/merge")
        @POST
        PullRequest merge​(@PathParam("project")
                          String project,
                          @PathParam("repo")
                          String repo,
                          @PathParam("pullRequestId")
                          int pullRequestId,
                          @QueryParam("version")
                          int version)
      • canMerge

        @Named("pull-request:can-merge")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/merge")
        @GET
        MergeStatus canMerge​(@PathParam("project")
                             String project,
                             @PathParam("repo")
                             String repo,
                             @PathParam("pullRequestId")
                             int pullRequestId)
      • decline

        @Named("pull-request:decline")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/decline")
        @POST
        PullRequest decline​(@PathParam("project")
                            String project,
                            @PathParam("repo")
                            String repo,
                            @PathParam("pullRequestId")
                            int pullRequestId,
                            @QueryParam("version")
                            int version)
      • reopen

        @Named("pull-request:reopen")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/reopen")
        @POST
        PullRequest reopen​(@PathParam("project")
                           String project,
                           @PathParam("repo")
                           String repo,
                           @PathParam("pullRequestId")
                           int pullRequestId,
                           @QueryParam("version")
                           int version)
      • changes

        @Named("pull-request:changes")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/changes")
        @GET
        ChangePage changes​(@PathParam("project")
                           String project,
                           @PathParam("repo")
                           String repo,
                           @PathParam("pullRequestId")
                           int pullRequestId,
                           @Nullable @QueryParam("withComments")
                           Boolean withComments,
                           @Nullable @QueryParam("limit")
                           Integer limit,
                           @Nullable @QueryParam("start")
                           Integer start)
      • commits

        @Named("pull-request:commits")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/commits")
        @GET
        CommitPage commits​(@PathParam("project")
                           String project,
                           @PathParam("repo")
                           String repo,
                           @PathParam("pullRequestId")
                           int pullRequestId,
                           @Nullable @QueryParam("withCounts")
                           Boolean withCounts,
                           @Nullable @QueryParam("limit")
                           Integer limit,
                           @Nullable @QueryParam("start")
                           Integer start)
      • listActivities

        @Named("pull-request:list-activities")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/activities")
        @GET
        ActivitiesPage listActivities​(@PathParam("project")
                                      String project,
                                      @PathParam("repo")
                                      String repo,
                                      @PathParam("pullRequestId")
                                      long pullRequestId,
                                      @Nullable @QueryParam("limit")
                                      Integer limit,
                                      @Nullable @QueryParam("start")
                                      Integer start)
      • listParticipants

        @Named("pull-request:list-participants")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/participants")
        @GET
        ParticipantsPage listParticipants​(@PathParam("project")
                                          String project,
                                          @PathParam("repo")
                                          String repo,
                                          @PathParam("pullRequestId")
                                          long pullRequestId,
                                          @Nullable @QueryParam("limit")
                                          Integer limit,
                                          @Nullable @QueryParam("start")
                                          Integer start)
      • assignParticipant

        @Named("pull-request:assign-participants")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/participants")
        @POST
        Participants assignParticipant​(@PathParam("project")
                                       String project,
                                       @PathParam("repo")
                                       String repo,
                                       @PathParam("pullRequestId")
                                       long pullRequestId,
                                       CreateParticipants participants)
      • deleteParticipant

        @Named("pull-request:delete-participants")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/participants/{userSlug}")
        @DELETE
        RequestStatus deleteParticipant​(@PathParam("project")
                                        String project,
                                        @PathParam("repo")
                                        String repo,
                                        @PathParam("pullRequestId")
                                        long pullRequestId,
                                        @PathParam("userSlug")
                                        String userSlug)
      • addParticipant

        @Named("pull-request:add-participant")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/participants/{userSlug}")
        @PUT
        Participants addParticipant​(@PathParam("project")
                                    String project,
                                    @PathParam("repo")
                                    String repo,
                                    @PathParam("pullRequestId")
                                    long pullRequestId,
                                    @PathParam("userSlug")
                                    String userSlug,
                                    CreateParticipants participants)