Interface PullRequestBuildPolicy.Builder

  • Method Details

    • requiresCommentApproval

      PullRequestBuildPolicy.Builder requiresCommentApproval(String requiresCommentApproval)

      Specifies when comment-based approval is required before triggering a build on pull requests. This setting determines whether builds run automatically or require explicit approval through comments.

      • DISABLED: Builds trigger automatically without requiring comment approval

      • ALL_PULL_REQUESTS: All pull requests require comment approval before builds execute (unless contributor is one of the approver roles)

      • FORK_PULL_REQUESTS: Only pull requests from forked repositories require comment approval (unless contributor is one of the approver roles)

      Parameters:
      requiresCommentApproval - Specifies when comment-based approval is required before triggering a build on pull requests. This setting determines whether builds run automatically or require explicit approval through comments.

      • DISABLED: Builds trigger automatically without requiring comment approval

      • ALL_PULL_REQUESTS: All pull requests require comment approval before builds execute (unless contributor is one of the approver roles)

      • FORK_PULL_REQUESTS: Only pull requests from forked repositories require comment approval (unless contributor is one of the approver roles)

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • requiresCommentApproval

      PullRequestBuildPolicy.Builder requiresCommentApproval(PullRequestBuildCommentApproval requiresCommentApproval)

      Specifies when comment-based approval is required before triggering a build on pull requests. This setting determines whether builds run automatically or require explicit approval through comments.

      • DISABLED: Builds trigger automatically without requiring comment approval

      • ALL_PULL_REQUESTS: All pull requests require comment approval before builds execute (unless contributor is one of the approver roles)

      • FORK_PULL_REQUESTS: Only pull requests from forked repositories require comment approval (unless contributor is one of the approver roles)

      Parameters:
      requiresCommentApproval - Specifies when comment-based approval is required before triggering a build on pull requests. This setting determines whether builds run automatically or require explicit approval through comments.

      • DISABLED: Builds trigger automatically without requiring comment approval

      • ALL_PULL_REQUESTS: All pull requests require comment approval before builds execute (unless contributor is one of the approver roles)

      • FORK_PULL_REQUESTS: Only pull requests from forked repositories require comment approval (unless contributor is one of the approver roles)

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • approverRolesWithStrings

      PullRequestBuildPolicy.Builder approverRolesWithStrings(Collection<String> approverRoles)

      List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable when requiresCommentApproval is not DISABLED.

      Parameters:
      approverRoles - List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable when requiresCommentApproval is not DISABLED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approverRolesWithStrings

      PullRequestBuildPolicy.Builder approverRolesWithStrings(String... approverRoles)

      List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable when requiresCommentApproval is not DISABLED.

      Parameters:
      approverRoles - List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable when requiresCommentApproval is not DISABLED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approverRoles

      List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable when requiresCommentApproval is not DISABLED.

      Parameters:
      approverRoles - List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable when requiresCommentApproval is not DISABLED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approverRoles

      List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable when requiresCommentApproval is not DISABLED.

      Parameters:
      approverRoles - List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable when requiresCommentApproval is not DISABLED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.