Skip to content

Commit b1df028

Browse files
WallmanDaniel Wallman
andauthored
add headBranch field on CheckSuite (#117)
Co-authored-by: Daniel Wallman <[email protected]>
1 parent 9a6a0da commit b1df028

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/main/java/com/spotify/github/v3/checks/CheckSuite.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ public interface CheckSuite {
3939
Integer id();
4040

4141
Optional<App> app();
42+
43+
Optional<String> headBranch();
4244
}

src/test/java/com/spotify/github/v3/activity/events/CheckRunEventTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public void testDeserialization() throws IOException {
4444
assertThat(checkRunEvent.action(), is("created"));
4545
assertThat(checkRunEvent.checkRun().name(), is("Octocoders-linter"));
4646
assertThat(checkRunEvent.repository().name(), is("Hello-World"));
47+
assertThat(checkRunEvent.checkRun().checkSuite().get().headBranch().get(), is("changes"));
4748
}
4849

4950
}

0 commit comments

Comments
 (0)