Package org.kohsuke.github
Class GHBranchProtection
- java.lang.Object
-
- org.kohsuke.github.GHBranchProtection
-
public class GHBranchProtection extends Object
The type GHBranchProtection.- See Also:
- GitHub Branch Protection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGHBranchProtection.EnforceAdminsThe type EnforceAdmins.static classGHBranchProtection.RequiredReviewsThe type RequiredReviews.static classGHBranchProtection.RequiredStatusChecksThe type RequiredStatusChecks.static classGHBranchProtection.RestrictionsThe type Restrictions.
-
Constructor Summary
Constructors Constructor Description GHBranchProtection()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddisableSignedCommits()Disable signed commits.voidenabledSignedCommits()Enabled signed commits.GHBranchProtection.EnforceAdminsgetEnforceAdmins()Gets enforce admins.GHBranchProtection.RequiredReviewsgetRequiredReviews()Gets required reviews.booleangetRequiredSignatures()Gets required signatures.GHBranchProtection.RequiredStatusChecksgetRequiredStatusChecks()Gets required status checks.GHBranchProtection.RestrictionsgetRestrictions()Gets restrictions.GitHubgetRoot()Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.StringgetUrl()Gets url.
-
-
-
Method Detail
-
enabledSignedCommits
@Preview(ZZZAX) public void enabledSignedCommits() throws IOException
Enabled signed commits.- Throws:
IOException- the io exception
-
disableSignedCommits
@Preview(ZZZAX) public void disableSignedCommits() throws IOException
Disable signed commits.- Throws:
IOException- the io exception
-
getEnforceAdmins
public GHBranchProtection.EnforceAdmins getEnforceAdmins()
Gets enforce admins.- Returns:
- the enforce admins
-
getRequiredReviews
public GHBranchProtection.RequiredReviews getRequiredReviews()
Gets required reviews.- Returns:
- the required reviews
-
getRequiredSignatures
@Preview(ZZZAX) public boolean getRequiredSignatures() throws IOException
Gets required signatures.- Returns:
- the required signatures
- Throws:
IOException- the io exception
-
getRequiredStatusChecks
public GHBranchProtection.RequiredStatusChecks getRequiredStatusChecks()
Gets required status checks.- Returns:
- the required status checks
-
getRestrictions
public GHBranchProtection.Restrictions getRestrictions()
Gets restrictions.- Returns:
- the restrictions
-
getUrl
public String getUrl()
Gets url.- Returns:
- the url
-
getRoot
@Deprecated public GitHub getRoot()
Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.Get the rootGitHubinstance for this object.- Returns:
- the root
GitHubinstance
-
-