Stitch / docs
GitHub Triggers

Pull requests

Run on PR lifecycle changes, new commits, or label changes.


Schema

Pull request JSON Schema

eventType: pull_request.

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

key: review-pr
name: Review PR
provider: github
repository: your-org/your-repo
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

FilterMatching
labelsRepository label names resolved during full validation
labelOperatorhas_any (default), has_all, has_none, is_empty
labelScopecurrent (default) or changed
branchesAny available branch; patterns support *, **, ?
sourceBranchesPR head/base branches; same patterns
targetBranchesPR head/base branches; same patterns
pathPrefixesRepository-relative file/directory prefixes; no wildcards or ./.. segments
pathsMatch changed repository-relative paths using *, **, and ? patterns.
mergedPull request JSON Schema
ignoreBotsExclude bot senders; defaults to false
ignoreDraftsExclude draft PRs; defaults to false
actorLoginsCase-insensitive event sender login match
assigneesMatch any selected PR assignee login, case-insensitive.
authorsMatch the PR author login, not the event sender.
reviewersMatch any currently requested PR reviewer login, case-insensitive.
reviewerTeamsMatch any currently requested reviewer team slug, case-insensitive.
prNumbersMatch any selected positive PR number.
keywordsMatch any case-insensitive substring in the PR title or body.
mentionedLoginsMatch mentioned logins in the PR title or body, case-insensitive.

merged requires only closed actions. Split other actions into a separate trigger. labeled with has_any/has_all requires labels.

See shared matching rules.

Concurrency

Supported scopes: repository, subject, commit, and event.

Use subject for a per-PR cap or commit for a per-revision cap. See concurrency settings.

On this page