Skip to content

/AWS1/CL_GURCODEREVIEWTYPE

The type of a code review. There are two code review types:

  • PullRequest - A code review that is automatically triggered by a pull request on an associated repository.

  • RepositoryAnalysis - A code review that analyzes all code under a specified branch in an associated repository. The associated repository is specified using its ARN in CreateCodeReview.

CONSTRUCTOR

IMPORTING

Required arguments:

io_repositoryanalysis TYPE REF TO /AWS1/CL_GURREPOSITORYANALYSIS /AWS1/CL_GURREPOSITORYANALYSIS

A code review that analyzes all code under a specified branch in an associated repository. The associated repository is specified using its ARN in CreateCodeReview.

Optional arguments:

it_analysistypes TYPE /AWS1/CL_GURANALYSISTYPES_W=>TT_ANALYSISTYPES TT_ANALYSISTYPES

They types of analysis performed during a repository analysis or a pull request review. You can specify either Security, CodeQuality, or both.


Queryable Attributes

RepositoryAnalysis

A code review that analyzes all code under a specified branch in an associated repository. The associated repository is specified using its ARN in CreateCodeReview.

Accessible with the following methods

Method Description
GET_REPOSITORYANALYSIS() Getter for REPOSITORYANALYSIS

AnalysisTypes

They types of analysis performed during a repository analysis or a pull request review. You can specify either Security, CodeQuality, or both.

Accessible with the following methods

Method Description
GET_ANALYSISTYPES() Getter for ANALYSISTYPES, with configurable default
ASK_ANALYSISTYPES() Getter for ANALYSISTYPES w/ exceptions if field has no value
HAS_ANALYSISTYPES() Determine if ANALYSISTYPES has a value