Class Protection

java.lang.Object
ink.icoding.github4j.model.Protection

public class Protection extends Object
分支保护规则,定义分支的各种保护策略。
  • Constructor Details

    • Protection

      public Protection()
  • Method Details

    • getRequiredStatusChecks

      public Protection.RequiredStatusChecks getRequiredStatusChecks()
    • setRequiredStatusChecks

      public void setRequiredStatusChecks(Protection.RequiredStatusChecks requiredStatusChecks)
    • getRequiredPullRequestReviews

      public Protection.RequiredPullRequestReviews getRequiredPullRequestReviews()
    • setRequiredPullRequestReviews

      public void setRequiredPullRequestReviews(Protection.RequiredPullRequestReviews requiredPullRequestReviews)
    • isEnforceAdmins

      public boolean isEnforceAdmins()
    • setEnforceAdmins

      public void setEnforceAdmins(boolean enforceAdmins)
    • isRequiredLinearHistory

      public boolean isRequiredLinearHistory()
    • setRequiredLinearHistory

      public void setRequiredLinearHistory(boolean requiredLinearHistory)
    • isAllowForcePushes

      public boolean isAllowForcePushes()
    • setAllowForcePushes

      public void setAllowForcePushes(boolean allowForcePushes)
    • isAllowDeletions

      public boolean isAllowDeletions()
    • setAllowDeletions

      public void setAllowDeletions(boolean allowDeletions)
    • getRequiredConversationResolution

      public Protection.RequiredConversationResolution getRequiredConversationResolution()
    • setRequiredConversationResolution

      public void setRequiredConversationResolution(Protection.RequiredConversationResolution requiredConversationResolution)
    • getRestrictions

      public List<Protection.Restriction> getRestrictions()
    • setRestrictions

      public void setRestrictions(List<Protection.Restriction> restrictions)