Uses of Class
org.kohsuke.github.GHBranchProtectionBuilder
-
Uses of GHBranchProtectionBuilder in org.kohsuke.github
Modifier and TypeMethodDescriptionGHBranchProtectionBuilder.addRequiredChecks
(GHBranchProtection.Check... checks) Add required checks gh branch protection builder.GHBranchProtectionBuilder.addRequiredStatusChecks
(Collection<GHBranchProtection.Check> checks) Add required checks gh branch protection builder.GHBranchProtectionBuilder.allowDeletions()
Allow deletion of the protected branch.GHBranchProtectionBuilder.allowDeletions
(boolean v) Allows deletion of the protected branch by anyone with write access to the repository.GHBranchProtectionBuilder.allowForcePushes()
Permits force pushes.GHBranchProtectionBuilder.allowForcePushes
(boolean v) Permits force pushes to the protected branch by anyone with write access to the repository.GHBranchProtectionBuilder.allowForkSyncing()
Allow fork syncing.GHBranchProtectionBuilder.allowForkSyncing
(boolean v) Whether users can pull changes from upstream when the branch is locked.GHBranchProtectionBuilder.blockCreations()
Restrict new branch creation.GHBranchProtectionBuilder.blockCreations
(boolean v) If set to true, the restrictions branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push.GHBranchProtectionBuilder.dismissStaleReviews()
Dismiss stale reviews gh branch protection builder.GHBranchProtectionBuilder.dismissStaleReviews
(boolean v) Dismiss stale reviews gh branch protection builder.GHBranch.enableProtection()
Enables branch protection to control what commit statuses are required to push.GHBranchProtectionBuilder.includeAdmins()
Include admins gh branch protection builder.GHBranchProtectionBuilder.includeAdmins
(boolean v) Include admins gh branch protection builder.GHBranchProtectionBuilder.lockBranch()
Set the branch as read-only.GHBranchProtectionBuilder.lockBranch
(boolean v) Whether to set the branch as read-only.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.requiredConversationResolution()
Require all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule.GHBranchProtectionBuilder.requiredConversationResolution
(boolean v) Require all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule.GHBranchProtectionBuilder.requiredLinearHistory()
Enforce a linear commit Git history.GHBranchProtectionBuilder.requiredLinearHistory
(boolean v) Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch.GHBranchProtectionBuilder.requiredReviewers
(int v) Required reviewers gh branch protection builder.GHBranchProtectionBuilder.requireLastPushApproval()
Enable the most recent push must be approved by someone other than the person who pushed it.GHBranchProtectionBuilder.requireLastPushApproval
(boolean v) Whether the most recent push must be approved by someone other than the person who pushed it.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.