# org.tangled.event.push

> When a repository ref is updated.

- Kind: object
- Authority: event.tangled.org
- Lexicon: 1
- Published by [tangled.org](https://lexicon.garden/identity/did:plc:wshs7t2adsemcrrd4snkeqli), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.event.push)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.event.push/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.event.push/analytics)

## Object (`org.tangled.event.push`)

Type: object

### Properties

- `actor` (string · did): The account that pushed.
- `newSha` (string, required)
- `oldSha` (string, required)
- `pushOptions` (array): The push options sent with the push, omitted when there were none.
  - Constraints: maxLength: 50
  - `items` (string)
- `ref` (string, required)
- `repo` (string · did, required)

## 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
}
```
