Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/main/java/com/spotify/github/v3/checks/CheckRunResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.spotify.github.GithubStyle;

import java.util.List;
import java.util.Optional;

import com.spotify.github.v3.prs.PartialPullRequestItem;
import org.immutables.value.Value;

/** The CheckRun response resource. */
Expand Down Expand Up @@ -73,4 +77,10 @@ public interface CheckRunResponse extends CheckRunBase {
* @return the optional
*/
Optional<App> app();

/**
* Pull Requests where this check is applied.
* @return the list of pull requests
*/
List<PartialPullRequestItem> pullRequests();
}
21 changes: 16 additions & 5 deletions src/main/java/com/spotify/github/v3/checks/CheckSuite.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -22,23 +22,34 @@

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.spotify.github.GithubStyle;

import java.util.List;
import java.util.Optional;

import com.spotify.github.v3.prs.PartialPullRequestItem;
import org.immutables.value.Value;

/** Github CheckSuite */
/** GitHub CheckSuite */
@Value.Immutable
@GithubStyle
@JsonDeserialize(as = ImmutableCheckSuite.class)
public interface CheckSuite {

/**
* The Check Suite Id.
* The Check Suite id.
*
* @return the integer
* @return the long id
*/
Long id();

Optional<App> app();

Optional<String> headBranch();

/**
* Pull Requests where this check suite is applied.
*
* @return the list of pull requests
*/
List<PartialPullRequestItem> pullRequests();
}
Loading