diff --git a/src/main/java/com/spotify/github/v3/issues/Label.java b/src/main/java/com/spotify/github/v3/issues/Label.java index bf78bad0..da46cc6f 100644 --- a/src/main/java/com/spotify/github/v3/issues/Label.java +++ b/src/main/java/com/spotify/github/v3/issues/Label.java @@ -7,9 +7,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -20,29 +20,57 @@ package com.spotify.github.v3.issues; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.spotify.github.GithubStyle; + import java.net.URI; import javax.annotation.Nullable; + import org.immutables.value.Value; -/** Issue label resource */ +/** + * Issue label resource + */ @Value.Immutable @GithubStyle @JsonSerialize(as = ImmutableLabel.class) @JsonDeserialize(as = ImmutableLabel.class) public interface Label { - /** URL */ - @Nullable - URI url(); + /** + * Id + */ + Long id(); + + @Nullable + String nodeId(); + + /** + * URL + */ + @Nullable + URI url(); + + /** + * Name + */ + @Nullable + String name(); + + /** + * Color + */ + @Nullable + String color(); - /** Name */ - @Nullable - String name(); + @Nullable + String description(); - /** Color */ - @Nullable - String color(); + /** + * Default + */ + @JsonProperty("default") + boolean isDefault(); } 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 f0a91016..0938d0f2 100644 --- a/src/main/java/com/spotify/github/v3/prs/PullRequest.java +++ b/src/main/java/com/spotify/github/v3/prs/PullRequest.java @@ -24,8 +24,12 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; 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; /** @@ -80,4 +84,7 @@ public interface PullRequest extends PullRequestItem { /** Is it a draft PR? */ Optional draft(); + + @Nullable + List