# org.tangled.review.patch

> 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.review.patch)
- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.review.patch/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.review.patch/examples)

## Definitions

### `org.tangled.review.patch`

**Type**: `record`

Immutable patch attached to the ticket. Record-key must be CID of this record.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `base` | `ref` → `org.tangled.git.oid` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `head` | `ref` → `org.tangled.git.oid` | Yes |  |
| `source` | `ref` → `#source` | No |  |
| `ticket` | `string` (record-key) | Yes | ticket-id |

### `org.tangled.review.patch#source`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `branch` | `string` | Yes |  |
| `repo` | `string` (did) | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Immutable patch attached to the ticket. Record-key must be CID of this record.",
      "key": "any",
      "record": {
        "properties": {
          "base": {
            "ref": "org.tangled.git.oid",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "head": {
            "ref": "org.tangled.git.oid",
            "type": "ref"
          },
          "source": {
            "ref": "#source",
            "type": "ref"
          },
          "ticket": {
            "description": "ticket-id",
            "format": "record-key",
            "type": "string"
          }
        },
        "required": [
          "ticket",
          "base",
          "head",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "source": {
      "properties": {
        "branch": {
          "maxLength": 244,
          "type": "string"
        },
        "repo": {
          "format": "did",
          "type": "string"
        }
      },
      "required": [
        "repo",
        "branch"
      ],
      "type": "object"
    }
  },
  "id": "org.tangled.review.patch",
  "lexicon": 1
}
```
