diff --git a/src/main/java/org/kohsuke/github/GHDeployment.java b/src/main/java/org/kohsuke/github/GHDeployment.java index cd83658ec..216cbf9c5 100644 --- a/src/main/java/org/kohsuke/github/GHDeployment.java +++ b/src/main/java/org/kohsuke/github/GHDeployment.java @@ -112,8 +112,8 @@ public class GHDeployment extends GHObject { } /** - * Specifies if the given environment is specific to the deployment - * and will no longer exist at some point in the future. + * Specifies if the given environment is specific to the deployment and will no longer exist at some point in the + * future. * * @return the environment is transient */ diff --git a/src/main/java/org/kohsuke/github/GHDeploymentBuilder.java b/src/main/java/org/kohsuke/github/GHDeploymentBuilder.java index 44f1743f0..1fe9a865c 100644 --- a/src/main/java/org/kohsuke/github/GHDeploymentBuilder.java +++ b/src/main/java/org/kohsuke/github/GHDeploymentBuilder.java @@ -19,7 +19,9 @@ public class GHDeploymentBuilder { */ public GHDeploymentBuilder(GHRepository repo) { this.repo = repo; - this.builder = repo.root.createRequest().withPreview(Previews.ANT_MAN).withPreview(Previews.FLASH) + this.builder = repo.root.createRequest() + .withPreview(Previews.ANT_MAN) + .withPreview(Previews.FLASH) .method("POST"); } diff --git a/src/main/java/org/kohsuke/github/GHDeploymentState.java b/src/main/java/org/kohsuke/github/GHDeploymentState.java index b418acb6d..c0affd317 100644 --- a/src/main/java/org/kohsuke/github/GHDeploymentState.java +++ b/src/main/java/org/kohsuke/github/GHDeploymentState.java @@ -4,7 +4,10 @@ package org.kohsuke.github; * Represents the state of deployment */ public enum GHDeploymentState { - PENDING, SUCCESS, ERROR, FAILURE, + PENDING, + SUCCESS, + ERROR, + FAILURE, @Preview(Previews.FLASH) IN_PROGRESS, diff --git a/src/main/java/org/kohsuke/github/GHDeploymentStatusBuilder.java b/src/main/java/org/kohsuke/github/GHDeploymentStatusBuilder.java index db95cd456..c07823f1f 100644 --- a/src/main/java/org/kohsuke/github/GHDeploymentStatusBuilder.java +++ b/src/main/java/org/kohsuke/github/GHDeploymentStatusBuilder.java @@ -32,7 +32,9 @@ public class GHDeploymentStatusBuilder { GHDeploymentStatusBuilder(GHRepository repo, long deploymentId, GHDeploymentState state) { this.repo = repo; this.deploymentId = deploymentId; - this.builder = repo.root.createRequest().withPreview(Previews.ANT_MAN).withPreview(Previews.FLASH) + this.builder = repo.root.createRequest() + .withPreview(Previews.ANT_MAN) + .withPreview(Previews.FLASH) .method("POST"); this.builder.with("state", state); @@ -136,6 +138,7 @@ public class GHDeploymentStatusBuilder { */ public GHDeploymentStatus create() throws IOException { return builder.withUrlPath(repo.getApiTailUrl("deployments/" + deploymentId + "/statuses")) - .fetch(GHDeploymentStatus.class).wrap(repo); + .fetch(GHDeploymentStatus.class) + .wrap(repo); } }