java.lang.Object
org.kohsuke.github.GHBranchProtection
The type GHBranchProtection.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe type AllowDeletions.static classThe type AllowForcePushes.static classThe type AllowForkSyncing.static classThe type BlockCreations.static classThe type Check.static classThe type EnforceAdmins.static classThe type LockBranch.static classThe type RequiredConversationResolution.static classThe type RequiredLinearHistory.static classThe type RequiredReviews.static classThe type RequiredStatusChecks.static classThe type Restrictions. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDisable signed commits.voidEnabled signed commits.Gets allow deletions.Gets allow force pushes.Gets allow fork syncing.Gets block creations.Gets enforce admins.Gets lock branch.Gets required conversation resolution.Gets required linear history.Gets required reviews.booleanGets required signatures.Gets required status checks.Gets restrictions.getUrl()Gets url.
-
Constructor Details
-
GHBranchProtection
public GHBranchProtection()Create default GHBranchProtection instance
-
-
Method Details
-
disableSignedCommits
Disable signed commits.- Throws:
IOException- the io exception
-
enabledSignedCommits
Enabled signed commits.- Throws:
IOException- the io exception
-
getAllowDeletions
Gets allow deletions.- Returns:
- the enforce admins
-
getAllowForcePushes
Gets allow force pushes.- Returns:
- the enforce admins
-
getAllowForkSyncing
Gets allow fork syncing.- Returns:
- the enforce admins
-
getBlockCreations
Gets block creations.- Returns:
- the enforce admins
-
getEnforceAdmins
Gets enforce admins.- Returns:
- the enforce admins
-
getLockBranch
Gets lock branch.- Returns:
- the enforce admins
-
getRequiredConversationResolution
Gets required conversation resolution.- Returns:
- the enforce admins
-
getRequiredLinearHistory
Gets required linear history.- Returns:
- the enforce admins
-
getRequiredReviews
Gets required reviews.- Returns:
- the required reviews
-
getRequiredSignatures
Gets required signatures.- Returns:
- the required signatures
- Throws:
IOException- the io exception
-
getRequiredStatusChecks
Gets required status checks.- Returns:
- the required status checks
-
getRestrictions
Gets restrictions.- Returns:
- the restrictions
-
getUrl
Gets url.- Returns:
- the url
-