# org.tangled.event.push

> Published by [tangled.org](https://lexicon.garden/identity/did:plc:wshs7t2adsemcrrd4snkeqli)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.event.push)
- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.event.push/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.event.push/examples)

## Definitions

### `org.tangled.event.push`

**Type**: `object`

When a repository ref is updated.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (did) | No | The account that pushed. |
| `newSha` | `string` | Yes |  |
| `oldSha` | `string` | Yes |  |
| `pushOptions` | `array` | No | The push options sent with the push, omitted when there were none. |
| `ref` | `string` | Yes |  |
| `repo` | `string` (did) | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "When a repository ref is updated.",
      "properties": {
        "actor": {
          "description": "The account that pushed.",
          "format": "did",
          "type": "string"
        },
        "newSha": {
          "type": "string"
        },
        "oldSha": {
          "type": "string"
        },
        "pushOptions": {
          "description": "The push options sent with the push, omitted when there were none.",
          "items": {
            "type": "string"
          },
          "maxLength": 50,
          "type": "array"
        },
        "ref": {
          "type": "string"
        },
        "repo": {
          "format": "did",
          "type": "string"
        }
      },
      "required": [
        "repo",
        "ref",
        "oldSha",
        "newSha"
      ],
      "type": "object"
    }
  },
  "id": "org.tangled.event.push",
  "lexicon": 1,
  "needsCbor": true,
  "needsType": true
}
```
