GitHub Triggers
Pull requests
Run on PR lifecycle changes, new commits, or label changes.
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: falseFilters
| Filter | Matching |
|---|---|
labels | Repository label names resolved during full validation |
labelOperator | has_any (default), has_all, has_none, is_empty |
labelScope | current (default) or changed |
branches | Any available branch; patterns support *, **, ? |
sourceBranches | PR head/base branches; same patterns |
targetBranches | PR head/base branches; same patterns |
pathPrefixes | Repository-relative file/directory prefixes; no wildcards or ./.. segments |
paths | Match changed repository-relative paths using *, **, and ? patterns. |
merged | Pull request JSON Schema |
ignoreBots | Exclude bot senders; defaults to false |
ignoreDrafts | Exclude draft PRs; defaults to false |
actorLogins | Case-insensitive event sender login match |
assignees | Match any selected PR assignee login, case-insensitive. |
authors | Match the PR author login, not the event sender. |
reviewers | Match any currently requested PR reviewer login, case-insensitive. |
reviewerTeams | Match any currently requested reviewer team slug, case-insensitive. |
prNumbers | Match any selected positive PR number. |
keywords | Match any case-insensitive substring in the PR title or body. |
mentionedLogins | Match 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.
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.