# org.tangled.review.patch

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

- Kind: record
- Record key: any
- Authority: review.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.review.patch)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.review.patch/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.review.patch/analytics)

## Record (`org.tangled.review.patch`)

Type: record · key any

### Properties

- `base` (ref, required)
  - Reference: `org.tangled.git.oid`
- `createdAt` (string · datetime, required)
- `head` (ref, required)
  - Reference: `org.tangled.git.oid`
- `source` (ref)
  - Reference: `#source`
- `ticket` (string · record-key, required): ticket-id

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

Type: object

### Properties

- `branch` (string, required)
  - Constraints: maxLength: 244
- `repo` (string · did, required)

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