We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8c7b30 commit e4a7af4Copy full SHA for e4a7af4
src/test/java/org/kohsuke/github/GHBranchProtectionTest.java
@@ -189,6 +189,21 @@ public void testSignedCommits() throws Exception {
189
assertThat(protection.getRequiredSignatures(), is(false));
190
}
191
192
+ /**
193
+ * Checks with app ids are being populated
194
+ *
195
+ * @throws Exception
196
+ * the exception
197
+ */
198
+ @Test
199
+ public void testChecksWithAppIds() throws Exception {
200
+ GHBranchProtection protection = branch.enableProtection()
201
+ .addRequiredChecksWithAppIds(new GHBranchProtection.Check("context", -1))
202
+ .enable();
203
+
204
+ assertThat(protection.getRequiredStatusChecks().getChecks().isEmpty(), is(false));
205
+ }
206
207
/**
208
* Test get protection.
209
*
0 commit comments