public class GHBranchProtectionBuilder extends Object
GHBranch.enableProtection()public GHBranchProtectionBuilder addRequiredChecks(Collection<String> checks)
public GHBranchProtectionBuilder addRequiredChecks(String... checks)
public GHBranchProtectionBuilder dismissStaleReviews()
public GHBranchProtection enable() throws IOException
IOExceptionpublic GHBranchProtectionBuilder includeAdmins()
public GHBranchProtectionBuilder includeAdmins(boolean v)
public GHBranchProtectionBuilder requireBranchIsUpToDate()
public GHBranchProtectionBuilder requireBranchIsUpToDate(boolean v)
public GHBranchProtectionBuilder requireCodeOwnReviews()
public GHBranchProtectionBuilder requireCodeOwnReviews(boolean v)
public GHBranchProtectionBuilder requireReviews()
public GHBranchProtectionBuilder restrictPushAccess()
public GHBranchProtectionBuilder teamPushAccess(Collection<GHTeam> teams)
public GHBranchProtectionBuilder teamPushAccess(GHTeam... teams)
public GHBranchProtectionBuilder teamReviewDismissals(Collection<GHTeam> teams)
public GHBranchProtectionBuilder teamReviewDismissals(GHTeam... teams)
public GHBranchProtectionBuilder userPushAccess(Collection<GHUser> users)
public GHBranchProtectionBuilder userPushAccess(GHUser... users)
public GHBranchProtectionBuilder userReviewDismissals(Collection<GHUser> users)
public GHBranchProtectionBuilder userReviewDismissals(GHUser... users)
Copyright © 2017. All rights reserved.