# org.tangled.event.pullRequest

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

## Definitions

### `org.tangled.event.pullRequest`

**Type**: `object`

When pull request is created or resubmitted.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `action` | `string` | No | The pull request lifecycle action that produced this trigger. |
| `pull` | `string` (at-uri) | No | AT-URI of the pull request record this run belongs to. |
| `sourceBranch` | `string` | No |  |
| `sourceRepo` | `string` (did) | No | Repository DID to check out code and workflow definitions from, if different from the target repo. |
| `sourceSha` | `string` | No | Commit id of the pull request head. |
| `targetBranch` | `string` | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "When pull request is created or resubmitted.",
      "properties": {
        "action": {
          "description": "The pull request lifecycle action that produced this trigger.",
          "enum": [
            "opened",
            "reopened",
            "closed",
            "merged",
            "synchronize"
          ],
          "type": "string"
        },
        "pull": {
          "description": "AT-URI of the pull request record this run belongs to.",
          "format": "at-uri",
          "type": "string"
        },
        "sourceBranch": {
          "type": "string"
        },
        "sourceRepo": {
          "description": "Repository DID to check out code and workflow definitions from, if different from the target repo.",
          "format": "did",
          "type": "string"
        },
        "sourceSha": {
          "description": "Commit id of the pull request head.",
          "maxLength": 64,
          "minLength": 40,
          "type": "string"
        },
        "targetBranch": {
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "id": "org.tangled.event.pullRequest",
  "lexicon": 1,
  "needsCbor": true,
  "needsType": true
}
```
