Skip to content

Commit e5bc992

Browse files
committed
move draft & labels to PullRequestItem
1 parent 92bb6ea commit e5bc992

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@
2525
import com.spotify.github.GithubStyle;
2626
import com.spotify.github.v3.User;
2727

28-
import java.util.List;
2928
import java.util.Optional;
3029
import javax.annotation.Nullable;
3130

32-
import com.spotify.github.v3.issues.Label;
3331
import org.immutables.value.Value;
3432

3533
/**
@@ -82,12 +80,6 @@ public interface PullRequest extends PullRequestItem {
8280
@Nullable
8381
String mergeableState();
8482

85-
/** Is it a draft PR? */
86-
Optional<Boolean> draft();
87-
88-
@Nullable
89-
List<Label> labels();
90-
9183
@Nullable
9284
AutoMerge autoMerge();
9385
}

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@
2727
import com.spotify.github.GithubStyle;
2828
import com.spotify.github.v3.Milestone;
2929
import com.spotify.github.v3.User;
30+
import com.spotify.github.v3.issues.Label;
31+
32+
import javax.annotation.Nullable;
3033
import java.net.URI;
3134
import java.util.List;
3235
import java.util.Optional;
33-
import javax.annotation.Nullable;
36+
3437
import org.immutables.value.Value;
3538

3639
/** Pull request item resource represents data returned during pull request list operation */
@@ -130,4 +133,11 @@ public interface PullRequestItem extends PartialPullRequestItem {
130133
/** Node ID. */
131134
@Nullable
132135
String nodeId();
136+
137+
/** Is it a draft PR? */
138+
Optional<Boolean> draft();
139+
140+
/** List of PR labels */
141+
@Nullable
142+
List<Label> labels();
133143
}

0 commit comments

Comments
 (0)