Skip to content

Commit 13ba657

Browse files
authored
fix: Fix breaking change by making the previous change Nullable/Optional (#231)
1 parent b5cf400 commit 13ba657

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/main/java/com/spotify/github/v3/checks/CheckRunResponse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public interface CheckRunResponse extends CheckRunBase {
8080

8181
/**
8282
* Pull Requests where this check is applied.
83-
* @return the list of pull requests
83+
* @return the optional of list of pull requests
8484
*/
85-
List<PartialPullRequestItem> pullRequests();
85+
Optional<List<PartialPullRequestItem>> pullRequests();
8686
}

src/main/java/com/spotify/github/v3/prs/PartialPullRequestItem.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,15 @@
3434
@JsonDeserialize(as = ImmutablePartialPullRequestItem.class)
3535
public interface PartialPullRequestItem extends CloseTracking {
3636
/** ID. */
37+
@Nullable
3738
Long id();
3839

3940
/** URL. */
41+
@Nullable
4042
URI url();
4143

4244
/** Number. */
45+
@Nullable
4346
Long number();
4447

4548
/** Head reference. */

0 commit comments

Comments
 (0)