Azure DevOps · Schema

GitRefUpdate

A ref update in a push

AgileCI/CDDevOpsProject ManagementVersion Control

Properties

Name Type Description
name string The ref name (e.g., refs/heads/main)
oldObjectId string Previous SHA the ref pointed to (zeros for new ref)
newObjectId string New SHA the ref now points to (zeros to delete)
repositoryId string
View JSON Schema on GitHub

JSON Schema

microsoft-azure-devops-gitrefupdate-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/GitRefUpdate",
  "title": "GitRefUpdate",
  "type": "object",
  "description": "A ref update in a push",
  "properties": {
    "name": {
      "type": "string",
      "description": "The ref name (e.g., refs/heads/main)"
    },
    "oldObjectId": {
      "type": "string",
      "description": "Previous SHA the ref pointed to (zeros for new ref)"
    },
    "newObjectId": {
      "type": "string",
      "description": "New SHA the ref now points to (zeros to delete)"
    },
    "repositoryId": {
      "type": "string",
      "format": "uuid"
    }
  }
}