{
  "$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
}
