Azure DevOps · Schema

GitCommitRef

A reference to a Git commit

AgileCI/CDDevOpsProject ManagementVersion Control

Properties

Name Type Description
commitId string Full SHA hash of the commit
comment string Commit message
commentTruncated boolean Whether the comment has been truncated
author object
committer object
parents array Parent commit SHAs
url string
remoteUrl string
changeCounts object Number of files changed (Add, Edit, Delete)
View JSON Schema on GitHub

JSON Schema

microsoft-azure-devops-gitcommitref-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/GitCommitRef",
  "title": "GitCommitRef",
  "type": "object",
  "description": "A reference to a Git commit",
  "properties": {
    "commitId": {
      "type": "string",
      "description": "Full SHA hash of the commit",
      "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2"
    },
    "comment": {
      "type": "string",
      "description": "Commit message",
      "example": "Fix login button alignment"
    },
    "commentTruncated": {
      "type": "boolean",
      "description": "Whether the comment has been truncated"
    },
    "author": {
      "$ref": "#/components/schemas/GitUserDate"
    },
    "committer": {
      "$ref": "#/components/schemas/GitUserDate"
    },
    "parents": {
      "type": "array",
      "description": "Parent commit SHAs",
      "items": {
        "type": "string"
      }
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "remoteUrl": {
      "type": "string",
      "format": "uri"
    },
    "changeCounts": {
      "type": "object",
      "description": "Number of files changed (Add, Edit, Delete)",
      "properties": {
        "Add": {
          "type": "integer"
        },
        "Edit": {
          "type": "integer"
        },
        "Delete": {
          "type": "integer"
        }
      }
    }
  }
}