public class GHBranchProtectionBuilder extends Object
GHBranch#enableProtection()| Modifier and Type | Method and Description |
|---|---|
GHBranchProtectionBuilder |
addRequiredChecks(Collection<String> checks)
Add required checks gh branch protection builder.
|
GHBranchProtectionBuilder |
addRequiredChecks(String... checks)
Add required checks gh branch protection builder.
|
GHBranchProtectionBuilder |
dismissStaleReviews()
Dismiss stale reviews gh branch protection builder.
|
GHBranchProtectionBuilder |
dismissStaleReviews(boolean v)
Dismiss stale reviews gh branch protection builder.
|
GHBranchProtection |
enable()
Enable gh branch protection.
|
GHBranchProtectionBuilder |
includeAdmins()
Include admins gh branch protection builder.
|
GHBranchProtectionBuilder |
includeAdmins(boolean v)
Include admins gh branch protection builder.
|
GHBranchProtectionBuilder |
requireBranchIsUpToDate()
Require branch is up to date gh branch protection builder.
|
GHBranchProtectionBuilder |
requireBranchIsUpToDate(boolean v)
Require branch is up to date gh branch protection builder.
|
GHBranchProtectionBuilder |
requireCodeOwnReviews()
Require code own reviews gh branch protection builder.
|
GHBranchProtectionBuilder |
requireCodeOwnReviews(boolean v)
Require code own reviews gh branch protection builder.
|
GHBranchProtectionBuilder |
requiredReviewers(int v)
Required reviewers gh branch protection builder.
|
GHBranchProtectionBuilder |
requireReviews()
Require reviews gh branch protection builder.
|
GHBranchProtectionBuilder |
restrictPushAccess()
Restrict push access gh branch protection builder.
|
GHBranchProtectionBuilder |
restrictReviewDismissals()
Restrict review dismissals gh branch protection builder.
|
GHBranchProtectionBuilder |
teamPushAccess(Collection<GHTeam> teams)
Team push access gh branch protection builder.
|
GHBranchProtectionBuilder |
teamPushAccess(GHTeam... teams)
Team push access gh branch protection builder.
|
GHBranchProtectionBuilder |
teamReviewDismissals(Collection<GHTeam> teams)
Team review dismissals gh branch protection builder.
|
GHBranchProtectionBuilder |
teamReviewDismissals(GHTeam... teams)
Team review dismissals gh branch protection builder.
|
GHBranchProtectionBuilder |
userPushAccess(Collection<GHUser> users)
User push access gh branch protection builder.
|
GHBranchProtectionBuilder |
userPushAccess(GHUser... users)
User push access gh branch protection builder.
|
GHBranchProtectionBuilder |
userReviewDismissals(Collection<GHUser> users)
User review dismissals gh branch protection builder.
|
GHBranchProtectionBuilder |
userReviewDismissals(GHUser... users)
User review dismissals gh branch protection builder.
|
public GHBranchProtectionBuilder addRequiredChecks(Collection<String> checks)
checks - the checkspublic GHBranchProtectionBuilder addRequiredChecks(String... checks)
checks - the checkspublic GHBranchProtectionBuilder dismissStaleReviews()
public GHBranchProtectionBuilder dismissStaleReviews(boolean v)
v - the vpublic GHBranchProtection enable() throws IOException
IOException - the io exceptionpublic GHBranchProtectionBuilder includeAdmins()
public GHBranchProtectionBuilder includeAdmins(boolean v)
v - the vpublic GHBranchProtectionBuilder requiredReviewers(int v)
v - the vpublic GHBranchProtectionBuilder requireBranchIsUpToDate()
public GHBranchProtectionBuilder requireBranchIsUpToDate(boolean v)
v - the vpublic GHBranchProtectionBuilder requireCodeOwnReviews()
public GHBranchProtectionBuilder requireCodeOwnReviews(boolean v)
v - the vpublic GHBranchProtectionBuilder requireReviews()
public GHBranchProtectionBuilder restrictReviewDismissals()
public GHBranchProtectionBuilder restrictPushAccess()
public GHBranchProtectionBuilder teamPushAccess(Collection<GHTeam> teams)
teams - the teamspublic GHBranchProtectionBuilder teamPushAccess(GHTeam... teams)
teams - the teamspublic GHBranchProtectionBuilder teamReviewDismissals(Collection<GHTeam> teams)
teams - the teamspublic GHBranchProtectionBuilder teamReviewDismissals(GHTeam... teams)
teams - the teamspublic GHBranchProtectionBuilder userPushAccess(Collection<GHUser> users)
users - the userspublic GHBranchProtectionBuilder userPushAccess(GHUser... users)
users - the userspublic GHBranchProtectionBuilder userReviewDismissals(Collection<GHUser> users)
users - the userspublic GHBranchProtectionBuilder userReviewDismissals(GHUser... users)
users - the usersCopyright © 2020. All rights reserved.