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.
{
"$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."
}
]
}
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.