Class: Aws::CodeGuruReviewer::Types::RepositoryAnalysis

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-codegurureviewer/lib/aws-sdk-codegurureviewer/types.rb

Overview

Note:

When making an API call, you may pass RepositoryAnalysis data as a hash:

{
  repository_head: {
    branch_name: "BranchName", # required
  },
  source_code_type: {
    commit_diff: {
      source_commit: "CommitId",
      destination_commit: "CommitId",
      merge_base_commit: "CommitId",
    },
    repository_head: {
      branch_name: "BranchName", # required
    },
    branch_diff: {
      source_branch_name: "BranchName", # required
      destination_branch_name: "BranchName", # required
    },
    s3_bucket_repository: {
      name: "Name", # required
      details: {
        bucket_name: "S3BucketName",
        code_artifacts: {
          source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
          build_artifacts_object_key: "BuildArtifactsObjectKey",
        },
      },
    },
    request_metadata: {
      request_id: "RequestId",
      requester: "Requester",
      event_info: {
        name: "EventName",
        state: "EventState",
      },
      vendor_name: "GitHub", # accepts GitHub, GitLab, NativeS3
    },
  },
}

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

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#repository_headTypes::RepositoryHeadSourceCodeType

A SourceCodeType that specifies the tip of a branch in an associated repository.



1746
1747
1748
1749
1750
1751
# File 'gems/aws-sdk-codegurureviewer/lib/aws-sdk-codegurureviewer/types.rb', line 1746

class RepositoryAnalysis < Struct.new(
  :repository_head,
  :source_code_type)
  SENSITIVE = []
  include Aws::Structure
end

#source_code_typeTypes::SourceCodeType

Specifies the source code that is analyzed in a code review.



1746
1747
1748
1749
1750
1751
# File 'gems/aws-sdk-codegurureviewer/lib/aws-sdk-codegurureviewer/types.rb', line 1746

class RepositoryAnalysis < Struct.new(
  :repository_head,
  :source_code_type)
  SENSITIVE = []
  include Aws::Structure
end