# Pull requests

URL: https://docs.usestitch.ai/docs/triggers/github/pull_request



## Schema [#schema]

[Pull request JSON Schema](/schema/github-pull_request.json)

`eventType: pull_request`. Actions: `opened`, `edited`, `closed`, `reopened`,
`synchronize`, `labeled`, `unlabeled`, `ready_for_review`.

```yaml
key: review-pr
name: Review PR
provider: github
eventType: pull_request
actions: [opened, synchronize]
harness: coding-agent
sandbox: workspace
agentId: review
initialPrompt: Review the pull request for actionable defects.
ignoreDrafts: true
ignoreBots: true
enabled: false
```

## Filters [#filters]

Supported: `labels`, `labelOperator`, `labelScope`, `branches`, `sourceBranches`,
`targetBranches`, `pathPrefixes`, `merged`, `ignoreBots`, `ignoreDrafts`, `actorLogins`.
`merged` requires only `closed` actions. Split other actions into a separate trigger.
`labeled` with `has_any`/`has_all` requires labels.
See [shared matching rules](/docs/triggers/github#filters).

## Guards [#guards]

Scopes: `repository`, `subject`, `commit`, `event`; `delivery` for `deduplicate`.
Use `subject` for a per-PR cap or `commit` for a per-revision cap.
See [guard types](/docs/triggers#guards).
