Issue 262: added support for branch protection API

This commit is contained in:
Kohsuke Kawaguchi
2016-06-02 23:40:37 -07:00
parent 3d1bed0f8f
commit 27e855ddbd
5 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package org.kohsuke.github;
import java.util.ArrayList;
import java.util.List;
/**
* @author Kohsuke Kawaguchi
* @see GHBranch#disableProtection()
*/
class BranchProtection {
boolean enabled;
RequiredStatusChecks requiredStatusChecks;
static class RequiredStatusChecks {
EnforcementLevel enforcement_level;
List<String> contexts = new ArrayList<String>();
}
}