Stitch / docs
GitHub Triggers

Issue / PR comments

Run on conversation comments that match explicit selectors.


Schema

Issue comment JSON 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: false

Filters

FilterMatching
labelsRepository label names resolved during full validation
labelOperatorhas_any (default), has_all, has_none, is_empty
labelScopecurrent (default) or changed
commentKeywordsCase-insensitive substring match; any selected keyword
keywordsMatch any case-insensitive substring in this comment's body.
matchAllCommentsComment matching requires selectors or matchAllComments: true, never both.
mentionedLoginsCase-insensitive match against mentioned GitHub logins
commandsExact first word after leading whitespace, such as /review
commentScopescommentScopes defaults to [issue, pull_request].
branchesAny available branch; patterns support *, **, ?
sourceBranchesPR head/base branches; same patterns
targetBranchesPR head/base branches; same patterns
ignoreDraftsExclude draft PRs; defaults to false
ignoreBotsExclude bot senders; defaults to false
actorLoginsCase-insensitive event sender login match
authorAssociationsGitHub association values, such as OWNER, MEMBER, COLLABORATOR
assigneesMatch any selected parent issue/PR assignee login, case-insensitive.
authorsMatch the parent issue/PR author login, not the comment author or sender.
reviewersPR comments only: match a currently requested reviewer login, fetched from the parent PR.
reviewerTeamsPR comments only: match a currently requested reviewer team slug, fetched from the parent PR.
prNumbersPR 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.

See shared matching rules.

Concurrency

Supported scopes: repository, subject, and event.

subject identifies the issue or PR conversation. commit is unsupported, even for PR comments. See concurrency settings.

On this page