GitHub Triggers
Issue / PR comments
Run on conversation comments that match explicit selectors.
Schema
eventType: issue_comment.
Actions: created, edited.
key: comment-command
name: Handle review command
provider: github
repository: your-org/your-repo
eventType: issue_comment
actions: [created]
harness: coding-agent
sandbox: workspace
agentId: build
initialPrompt: Handle the requested review.
commands: [/review]
commentScopes: [pull_request]
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 |
commentKeywords | Case-insensitive substring match; any selected keyword |
keywords | Match any case-insensitive substring in this comment's body. |
matchAllComments | Comment matching requires selectors or matchAllComments: true, never both. |
mentionedLogins | Case-insensitive match against mentioned GitHub logins |
commands | Exact first word after leading whitespace, such as /review |
commentScopes | commentScopes defaults to [issue, pull_request]. |
branches | Any available branch; patterns support *, **, ? |
sourceBranches | PR head/base branches; same patterns |
targetBranches | PR head/base branches; same patterns |
ignoreDrafts | Exclude draft PRs; defaults to false |
ignoreBots | Exclude bot senders; defaults to false |
actorLogins | Case-insensitive event sender login match |
authorAssociations | GitHub association values, such as OWNER, MEMBER, COLLABORATOR |
assignees | Match any selected parent issue/PR assignee login, case-insensitive. |
authors | Match the parent issue/PR author login, not the comment author or sender. |
reviewers | PR comments only: match a currently requested reviewer login, fetched from the parent PR. |
reviewerTeams | PR comments only: match a currently requested reviewer team slug, fetched from the parent PR. |
prNumbers | PR comments only: match the parent PR number; issue numbers do not match. |
PR branch/draft filters require commentScopes: [pull_request]. Select keywords, mentions, or
commands, or set matchAllComments: true; do not combine both modes.
Concurrency
Supported scopes: repository, subject, and event.
subject identifies the issue or PR conversation. commit is unsupported, even for PR comments.
See concurrency settings.