From e5bc9927ba83157ba4d94d865d36edf1d5626eed Mon Sep 17 00:00:00 2001 From: sindunuragarp Date: Mon, 23 Jun 2025 14:46:48 +0200 Subject: [PATCH 1/2] move draft & labels to PullRequestItem --- .../java/com/spotify/github/v3/prs/PullRequest.java | 8 -------- .../com/spotify/github/v3/prs/PullRequestItem.java | 12 +++++++++++- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/spotify/github/v3/prs/PullRequest.java b/src/main/java/com/spotify/github/v3/prs/PullRequest.java index 84b88504..47dae718 100644 --- a/src/main/java/com/spotify/github/v3/prs/PullRequest.java +++ b/src/main/java/com/spotify/github/v3/prs/PullRequest.java @@ -25,11 +25,9 @@ import com.spotify.github.GithubStyle; import com.spotify.github.v3.User; -import java.util.List; import java.util.Optional; import javax.annotation.Nullable; -import com.spotify.github.v3.issues.Label; import org.immutables.value.Value; /** @@ -82,12 +80,6 @@ public interface PullRequest extends PullRequestItem { @Nullable String mergeableState(); - /** Is it a draft PR? */ - Optional draft(); - - @Nullable - List