Skip to content

Commit

Permalink
Chore(deps): Bump com.diffplug.spotless:spotless-maven-plugin from 2.…
Browse files Browse the repository at this point in the history
…27.2 to 2.43.0 (#1785)

* Chore(deps): Bump com.diffplug.spotless:spotless-maven-plugin

Bumps [com.diffplug.spotless:spotless-maven-plugin](https://github.com/diffplug/spotless) from 2.27.2 to 2.43.0.
- [Changelog](https://github.com/diffplug/spotless/blob/main/CHANGES.md)
- [Commits](diffplug/spotless@maven/2.27.2...lib/2.43.0)

---
updated-dependencies:
- dependency-name: com.diffplug.spotless:spotless-maven-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Formatting updates

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Liam Newman <[email protected]>
  • Loading branch information
dependabot[bot] and bitwiseman authored Feb 20, 2024
1 parent 0f19519 commit 619885e
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.27.2</version>
<version>2.43.0</version>
<executions>
<execution>
<id>spotless-check</id>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/kohsuke/github/GHRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ public void delete() throws IOException {
} catch (FileNotFoundException x) {
throw (FileNotFoundException) new FileNotFoundException("Failed to delete " + getOwnerName() + "/" + name
+ "; might not exist, or you might need the delete_repo scope in your token: http://stackoverflow.com/a/19327004/12916")
.initCause(x);
.initCause(x);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ public interface AuthorizationProvider {
*
* <pre>
* {@code
* &#64;Override
* public String getEncodedAuthorization() {
* return "Bearer myBearerToken";
* }
* &#64;Override
* public String getEncodedAuthorization() {
* return "Bearer myBearerToken";
* }
* }
* </pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void createCheckRun() throws Exception {
"hello to you too").withTitle("Look here"))
.add(new GHCheckRunBuilder.Image("Unikitty",
"https://i.pinimg.com/474x/9e/65/c0/9e65c0972294f1e10f648c9780a79fab.jpg")
.withCaption("Princess Unikitty")))
.withCaption("Princess Unikitty")))
.add(new GHCheckRunBuilder.Action("Help", "what I need help with", "doit"))
.create();
assertThat(checkRun.getStatus(), equalTo(Status.COMPLETED));
Expand Down
28 changes: 14 additions & 14 deletions src/test/java/org/kohsuke/github/GHWorkflowRunTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ public void testManualRunAndBasicInformation() throws IOException {
GHWorkflowRun workflowRun = getWorkflowRun(FAST_WORKFLOW_NAME,
MAIN_BRANCH,
Status.COMPLETED,
latestPreexistingWorkflowRunId).orElseThrow(
() -> new IllegalStateException("We must have a valid workflow run starting from here"));
latestPreexistingWorkflowRunId)
.orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here"));

assertThat(workflowRun.getWorkflowId(), equalTo(workflow.getId()));
assertThat(workflowRun.getId(), notNullValue());
Expand Down Expand Up @@ -137,8 +137,8 @@ public void testCancelAndRerun() throws IOException {
GHWorkflowRun workflowRun = getWorkflowRun(SLOW_WORKFLOW_NAME,
MAIN_BRANCH,
Status.IN_PROGRESS,
latestPreexistingWorkflowRunId).orElseThrow(
() -> new IllegalStateException("We must have a valid workflow run starting from here"));
latestPreexistingWorkflowRunId)
.orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here"));

assertThat(workflowRun.getId(), notNullValue());

Expand Down Expand Up @@ -186,8 +186,8 @@ public void testDelete() throws IOException {
GHWorkflowRun workflowRunToDelete = getWorkflowRun(FAST_WORKFLOW_NAME,
MAIN_BRANCH,
Status.COMPLETED,
latestPreexistingWorkflowRunId).orElseThrow(
() -> new IllegalStateException("We must have a valid workflow run starting from here"));
latestPreexistingWorkflowRunId)
.orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here"));

assertThat(workflowRunToDelete.getId(), notNullValue());

Expand Down Expand Up @@ -224,8 +224,8 @@ public void testSearchOnBranch() throws IOException {
GHWorkflowRun workflowRun = getWorkflowRun(FAST_WORKFLOW_NAME,
SECOND_BRANCH,
Status.COMPLETED,
latestPreexistingWorkflowRunId).orElseThrow(
() -> new IllegalStateException("We must have a valid workflow run starting from here"));
latestPreexistingWorkflowRunId)
.orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here"));

assertThat(workflowRun.getWorkflowId(), equalTo(workflow.getId()));
assertThat(workflowRun.getHeadBranch(), equalTo(SECOND_BRANCH));
Expand Down Expand Up @@ -326,8 +326,8 @@ public void testLogs() throws IOException {
GHWorkflowRun workflowRun = getWorkflowRun(FAST_WORKFLOW_NAME,
MAIN_BRANCH,
Status.COMPLETED,
latestPreexistingWorkflowRunId).orElseThrow(
() -> new IllegalStateException("We must have a valid workflow run starting from here"));
latestPreexistingWorkflowRunId)
.orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here"));

List<String> logsArchiveEntries = new ArrayList<>();
String fullLogContent = workflowRun
Expand Down Expand Up @@ -370,8 +370,8 @@ public void testArtifacts() throws IOException {
GHWorkflowRun workflowRun = getWorkflowRun(ARTIFACTS_WORKFLOW_NAME,
MAIN_BRANCH,
Status.COMPLETED,
latestPreexistingWorkflowRunId).orElseThrow(
() -> new IllegalStateException("We must have a valid workflow run starting from here"));
latestPreexistingWorkflowRunId)
.orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here"));

List<GHArtifact> artifacts = new ArrayList<>(workflowRun.listArtifacts().toList());
artifacts.sort((a1, a2) -> a1.getName().compareTo(a2.getName()));
Expand Down Expand Up @@ -456,8 +456,8 @@ public void testJobs() throws IOException {
GHWorkflowRun workflowRun = getWorkflowRun(MULTI_JOBS_WORKFLOW_NAME,
MAIN_BRANCH,
Status.COMPLETED,
latestPreexistingWorkflowRunId).orElseThrow(
() -> new IllegalStateException("We must have a valid workflow run starting from here"));
latestPreexistingWorkflowRunId)
.orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here"));

List<GHWorkflowJob> jobs = workflowRun.listJobs()
.toList()
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/org/kohsuke/github/GHWorkflowTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ public void testDispatch() throws IOException {
workflow.dispatch("main", Collections.singletonMap("parameter", "value"));
verify(postRequestedFor(
urlPathEqualTo("/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859/dispatches"))
.withRequestBody(containing("inputs"))
.withRequestBody(containing("parameter"))
.withRequestBody(containing("value")));
.withRequestBody(containing("inputs"))
.withRequestBody(containing("parameter"))
.withRequestBody(containing("value")));
}

/**
Expand Down

0 comments on commit 619885e

Please sign in to comment.