Skip to content

Commit 0bac887

Browse files
committed
feat: add labels to PullRequestItem
1 parent fbcd82c commit 0bac887

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -32,6 +32,8 @@
3232
import java.util.List;
3333
import java.util.Optional;
3434
import javax.annotation.Nullable;
35+
36+
import com.spotify.github.v3.issues.Label;
3537
import org.immutables.value.Value;
3638

3739
/** Pull request item resource represents data returned during pull request list operation */
@@ -112,6 +114,10 @@ public interface PullRequestItem extends CloseTracking {
112114
@Nullable
113115
User user();
114116

117+
/** A list of PR labels */
118+
@Nullable
119+
List<Label> labels();
120+
115121
/** Statuses API URL. */
116122
@Nullable
117123
URI statusesUrl();

0 commit comments

Comments
 (0)