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()Deprecated.voidenabledSignedCommits()Deprecated.GHBranchProtection.EnforceAdminsgetEnforceAdmins()Gets enforce admins.GHBranchProtection.RequiredReviewsgetRequiredReviews()Gets required reviews.booleangetRequiredSignatures()Deprecated.GHBranchProtection.RequiredStatusChecksgetRequiredStatusChecks()Gets required status checks.GHBranchProtection.RestrictionsgetRestrictions()Gets restrictions.StringgetUrl()Gets url.
-
-
-
Method Detail
-
enabledSignedCommits
@Preview(ZZZAX) @Deprecated public void enabledSignedCommits() throws IOException
Deprecated.Enabled signed commits.- Throws:
IOException- the io exception
-
disableSignedCommits
@Preview(ZZZAX) @Deprecated public void disableSignedCommits() throws IOException
Deprecated.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) @Deprecated public boolean getRequiredSignatures() throws IOException
Deprecated.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
-
-