diff --git a/pom.xml b/pom.xml index 154f516e0b..6809e98228 100644 --- a/pom.xml +++ b/pom.xml @@ -185,6 +185,7 @@ org.kohsuke.github.GHCommitSearchBuilder org.kohsuke.github.GHRepositorySearchBuilder org.kohsuke.github.GHUserSearchBuilder + org.kohsuke.github.GHPullRequestSearchBuilder org.kohsuke.github.GHBranchProtection.RequiredSignatures diff --git a/src/test/java/org/kohsuke/github/EnumTest.java b/src/test/java/org/kohsuke/github/EnumTest.java index 59cf1f4d44..4073777fff 100644 --- a/src/test/java/org/kohsuke/github/EnumTest.java +++ b/src/test/java/org/kohsuke/github/EnumTest.java @@ -87,6 +87,13 @@ public void touchEnums() { assertThat(GHUserSearchBuilder.Sort.values().length, equalTo(3)); assertThat(GHIssueQueryBuilder.Sort.values().length, equalTo(3)); + + assertThat(GHPullRequestSearchBuilder.Sort.values().length, equalTo(4)); + assertThat(GHPullRequestSearchBuilder.ReviewStatus.values().length, equalTo(4)); + assertThat(GHPullRequestSearchBuilder.ReviewStatus.ABSENT.getStatus(), equalTo("none")); + assertThat(GHPullRequestSearchBuilder.ReviewStatus.REQUIRED.getStatus(), equalTo("required")); + assertThat(GHPullRequestSearchBuilder.ReviewStatus.APPROVED.getStatus(), equalTo("approved")); + assertThat(GHPullRequestSearchBuilder.ReviewStatus.REJECTED.getStatus(), equalTo("changes_requested")); } }