/** * @deprecated * Use {@code getDeployment(deploymentId).createStatus(ghDeploymentState)} */ public GHDeploymentStatusBuilder createDeployStatus(int deploymentId, GHDeploymentState ghDeploymentState) throws IOException { return getDeployment(deploymentId).createStatus(ghDeploymentState); }
/** * @deprecated * Use {@code getDeployment(id).listStatuses()} */ public PagedIterable<GHDeploymentStatus> getDeploymentStatuses(final int id) throws IOException { return getDeployment(id).listStatuses(); }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); deployment.wrap(repository); } } }
/** * Obtains a single {@link GHDeployment} by its ID. */ public GHDeployment getDeployment(long id) throws IOException { return root.retrieve().to("deployments/" + id, GHDeployment.class).wrap(this); }
/** * Obtains a single {@link GHDeployment} by its ID. */ public GHDeployment getDeployment(long id) throws IOException { return root.retrieve().to("deployments/" + id, GHDeployment.class).wrap(this); }
/** * @deprecated * Use {@code getDeployment(id).listStatuses()} */ public PagedIterable<GHDeploymentStatus> getDeploymentStatuses(final int id) throws IOException { return getDeployment(id).listStatuses(); }
/** * @deprecated * Use {@code getDeployment(deploymentId).createStatus(ghDeploymentState)} */ public GHDeploymentStatusBuilder createDeployStatus(int deploymentId, GHDeploymentState ghDeploymentState) throws IOException { return getDeployment(deploymentId).createStatus(ghDeploymentState); }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); deployment.wrap(repository); } } }
public GHDeployment create() throws IOException { return builder.to(repo.getApiTailUrl("deployments"),GHDeployment.class).wrap(repo); } }
public GHDeployment create() throws IOException { return builder.to(repo.getApiTailUrl("deployments"),GHDeployment.class).wrap(repo); } }
public GHDeployment create() throws IOException { return builder.to(repo.getApiTailUrl("deployments"),GHDeployment.class).wrap(repo); } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); deployment.wrap(repository); deploymentStatus.wrap(repository); } } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); deployment.wrap(repository); deploymentStatus.wrap(repository); } } }