From 1520387d1caeb859687c1ccea7944ae51a82c6fb Mon Sep 17 00:00:00 2001 From: Abhishek Date: Wed, 30 Apr 2025 10:15:02 +0200 Subject: [PATCH] fix: Fix breaking change by making the previous change Nullable/Optional --- .../java/com/spotify/github/v3/checks/CheckRunResponse.java | 4 ++-- .../com/spotify/github/v3/prs/PartialPullRequestItem.java | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/spotify/github/v3/checks/CheckRunResponse.java b/src/main/java/com/spotify/github/v3/checks/CheckRunResponse.java index 9c50f3e0..3acd1379 100644 --- a/src/main/java/com/spotify/github/v3/checks/CheckRunResponse.java +++ b/src/main/java/com/spotify/github/v3/checks/CheckRunResponse.java @@ -80,7 +80,7 @@ public interface CheckRunResponse extends CheckRunBase { /** * Pull Requests where this check is applied. - * @return the list of pull requests + * @return the optional of list of pull requests */ - List pullRequests(); + Optional> pullRequests(); } diff --git a/src/main/java/com/spotify/github/v3/prs/PartialPullRequestItem.java b/src/main/java/com/spotify/github/v3/prs/PartialPullRequestItem.java index 35dd2018..9e8a1177 100644 --- a/src/main/java/com/spotify/github/v3/prs/PartialPullRequestItem.java +++ b/src/main/java/com/spotify/github/v3/prs/PartialPullRequestItem.java @@ -34,12 +34,15 @@ @JsonDeserialize(as = ImmutablePartialPullRequestItem.class) public interface PartialPullRequestItem extends CloseTracking { /** ID. */ + @Nullable Long id(); /** URL. */ + @Nullable URI url(); /** Number. */ + @Nullable Long number(); /** Head reference. */