Class GHBranchProtectionBuilder

    • Method Detail

      • addRequiredChecks

        public GHBranchProtectionBuilder addRequiredChecks​(Collection<String> checks)
        Add required checks gh branch protection builder.
        Parameters:
        checks - the checks
        Returns:
        the gh branch protection builder
      • addRequiredChecks

        public GHBranchProtectionBuilder addRequiredChecks​(String... checks)
        Add required checks gh branch protection builder.
        Parameters:
        checks - the checks
        Returns:
        the gh branch protection builder
      • dismissStaleReviews

        public GHBranchProtectionBuilder dismissStaleReviews()
        Dismiss stale reviews gh branch protection builder.
        Returns:
        the gh branch protection builder
      • dismissStaleReviews

        public GHBranchProtectionBuilder dismissStaleReviews​(boolean v)
        Dismiss stale reviews gh branch protection builder.
        Parameters:
        v - the v
        Returns:
        the gh branch protection builder
      • includeAdmins

        public GHBranchProtectionBuilder includeAdmins()
        Include admins gh branch protection builder.
        Returns:
        the gh branch protection builder
      • includeAdmins

        public GHBranchProtectionBuilder includeAdmins​(boolean v)
        Include admins gh branch protection builder.
        Parameters:
        v - the v
        Returns:
        the gh branch protection builder
      • requiredReviewers

        public GHBranchProtectionBuilder requiredReviewers​(int v)
        Required reviewers gh branch protection builder.
        Parameters:
        v - the v
        Returns:
        the gh branch protection builder
      • requireBranchIsUpToDate

        public GHBranchProtectionBuilder requireBranchIsUpToDate()
        Require branch is up to date gh branch protection builder.
        Returns:
        the gh branch protection builder
      • requireBranchIsUpToDate

        public GHBranchProtectionBuilder requireBranchIsUpToDate​(boolean v)
        Require branch is up to date gh branch protection builder.
        Parameters:
        v - the v
        Returns:
        the gh branch protection builder
      • requireCodeOwnReviews

        public GHBranchProtectionBuilder requireCodeOwnReviews()
        Require code own reviews gh branch protection builder.
        Returns:
        the gh branch protection builder
      • requireCodeOwnReviews

        public GHBranchProtectionBuilder requireCodeOwnReviews​(boolean v)
        Require code own reviews gh branch protection builder.
        Parameters:
        v - the v
        Returns:
        the gh branch protection builder
      • requireReviews

        public GHBranchProtectionBuilder requireReviews()
        Require reviews gh branch protection builder.
        Returns:
        the gh branch protection builder
      • restrictReviewDismissals

        public GHBranchProtectionBuilder restrictReviewDismissals()
        Restrict review dismissals gh branch protection builder.
        Returns:
        the gh branch protection builder
      • restrictPushAccess

        public GHBranchProtectionBuilder restrictPushAccess()
        Restrict push access gh branch protection builder.
        Returns:
        the gh branch protection builder
      • teamPushAccess

        public GHBranchProtectionBuilder teamPushAccess​(Collection<GHTeam> teams)
        Team push access gh branch protection builder.
        Parameters:
        teams - the teams
        Returns:
        the gh branch protection builder
      • teamPushAccess

        public GHBranchProtectionBuilder teamPushAccess​(GHTeam... teams)
        Team push access gh branch protection builder.
        Parameters:
        teams - the teams
        Returns:
        the gh branch protection builder
      • teamReviewDismissals

        public GHBranchProtectionBuilder teamReviewDismissals​(Collection<GHTeam> teams)
        Team review dismissals gh branch protection builder.
        Parameters:
        teams - the teams
        Returns:
        the gh branch protection builder
      • teamReviewDismissals

        public GHBranchProtectionBuilder teamReviewDismissals​(GHTeam... teams)
        Team review dismissals gh branch protection builder.
        Parameters:
        teams - the teams
        Returns:
        the gh branch protection builder
      • userPushAccess

        public GHBranchProtectionBuilder userPushAccess​(Collection<GHUser> users)
        User push access gh branch protection builder.
        Parameters:
        users - the users
        Returns:
        the gh branch protection builder
      • userPushAccess

        public GHBranchProtectionBuilder userPushAccess​(GHUser... users)
        User push access gh branch protection builder.
        Parameters:
        users - the users
        Returns:
        the gh branch protection builder
      • userReviewDismissals

        public GHBranchProtectionBuilder userReviewDismissals​(Collection<GHUser> users)
        User review dismissals gh branch protection builder.
        Parameters:
        users - the users
        Returns:
        the gh branch protection builder
      • userReviewDismissals

        public GHBranchProtectionBuilder userReviewDismissals​(GHUser... users)
        User review dismissals gh branch protection builder.
        Parameters:
        users - the users
        Returns:
        the gh branch protection builder