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 class
GHBranchProtection.EnforceAdmins
The type EnforceAdmins.static class
GHBranchProtection.RequiredReviews
The type RequiredReviews.static class
GHBranchProtection.RequiredStatusChecks
The type RequiredStatusChecks.static class
GHBranchProtection.Restrictions
The type Restrictions.
-
Constructor Summary
Constructors Constructor Description GHBranchProtection()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
disableSignedCommits()
Disable signed commits.void
enabledSignedCommits()
Enabled signed commits.GHBranchProtection.EnforceAdmins
getEnforceAdmins()
Gets enforce admins.GHBranchProtection.RequiredReviews
getRequiredReviews()
Gets required reviews.boolean
getRequiredSignatures()
Gets required signatures.GHBranchProtection.RequiredStatusChecks
getRequiredStatusChecks()
Gets required status checks.GHBranchProtection.Restrictions
getRestrictions()
Gets restrictions.GitHub
getRoot()
Deprecated.For access to theGitHub
instance, use a local copy instead of pulling it out of objects.String
getUrl()
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 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
-
-