Skip to content

/AWS1/CL_BLDPULLREQBUILDPOLICY

A PullRequestBuildPolicy object that defines comment-based approval requirements for triggering builds on pull requests. This policy helps control when automated builds are executed based on contributor permissions and approval workflows.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_requirescommentapproval TYPE /AWS1/BLDPULLREQBLDCOMMENTAP00 /AWS1/BLDPULLREQBLDCOMMENTAP00

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)

Optional arguments:

it_approverroles TYPE /AWS1/CL_BLDPULLREQBLDAPPRRO00=>TT_PULLREQBUILDAPPROVERROLES TT_PULLREQBUILDAPPROVERROLES

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.


Queryable Attributes

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)

Accessible with the following methods

Method Description
GET_REQUIRESCOMMENTAPPROVAL() Getter for REQUIRESCOMMENTAPPROVAL, with configurable defaul
ASK_REQUIRESCOMMENTAPPROVAL() Getter for REQUIRESCOMMENTAPPROVAL w/ exceptions if field ha
HAS_REQUIRESCOMMENTAPPROVAL() Determine if REQUIRESCOMMENTAPPROVAL has a value

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.

Accessible with the following methods

Method Description
GET_APPROVERROLES() Getter for APPROVERROLES, with configurable default
ASK_APPROVERROLES() Getter for APPROVERROLES w/ exceptions if field has no value
HAS_APPROVERROLES() Determine if APPROVERROLES has a value