Package org.kohsuke.github
Class GHBranchProtection
java.lang.Object
org.kohsuke.github.GHBranchProtection
The type GHBranchProtection.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The type AllowDeletions.static class
The type AllowForcePushes.static class
The type AllowForkSyncing.static class
The type BlockCreations.static class
The type EnforceAdmins.static class
The type LockBranch.static class
The type RequiredConversationResolution.static class
The type RequiredLinearHistory.static class
The type RequiredReviews.static class
The type RequiredStatusChecks.static class
The type Restrictions. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Disable signed commits.void
Enabled 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.boolean
Gets required signatures.Gets required status checks.Gets restrictions.getRoot()
Deprecated.getUrl()
Gets url.
-
Constructor Details
-
GHBranchProtection
public GHBranchProtection()
-
-
Method Details
-
enabledSignedCommits
Enabled signed commits.- Throws:
IOException
- the io exception
-
disableSignedCommits
Disable 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
-
getRoot
Deprecated.For access to theGitHub
instance, use a local copy instead of pulling it out of objects.Get the rootGitHub
instance for this object.- Returns:
- the root
GitHub
instance
-
GitHub
instance, use a local copy instead of pulling it out of objects.