CommitDiffSourceCodeType

A type of SourceCodeType that specifies the commit diff for a pull request on an associated repository. The SourceCommit and DestinationCommit fields are required to do a pull request code review.

AmazonCode ReviewSecurityDevOpsMachine LearningDeveloper Tools

Properties

Name Type Description
SourceCommit object
DestinationCommit object
MergeBaseCommit object
View JSON Schema on GitHub

JSON Schema

amazon-codeguru-reviewer-commit-diff-source-code-type-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codeguru-reviewer/refs/heads/main/json-schema/amazon-codeguru-reviewer-commit-diff-source-code-type-schema.json",
  "title": "CommitDiffSourceCodeType",
  "description": "A type of <a href=\"https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType\">SourceCodeType</a> that specifies the commit diff for a pull request on an associated repository. The <code>SourceCommit</code> and <code>DestinationCommit</code> fields are required to do a pull request code review.",
  "type": "object",
  "properties": {
    "SourceCommit": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CommitId"
        },
        {
          "description": "The SHA of the source commit used to generate a commit diff. This field is required for a pull request code review."
        }
      ]
    },
    "DestinationCommit": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CommitId"
        },
        {
          "description": "The SHA of the destination commit used to generate a commit diff. This field is required for a pull request code review."
        }
      ]
    },
    "MergeBaseCommit": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CommitId"
        },
        {
          "description": "The SHA of the merge base of a commit."
        }
      ]
    }
  }
}