Stitch / docs
GitHub Triggers

General

Ten supported event types, with event-specific filters and concurrency scopes.


Connect the repository through the Stitch GitHub App. Set provider: github. Select one eventType and one or more supported actions per trigger.

Repository

Set repository: owner/repo on every GitHub trigger. It selects the event source, not the factory's workspace. Names match case-insensitively; URLs and wildcards are not supported.

For example, repository: acme/api lets factories in both acme/api and acme/web respond to the same API event. Both repositories must be in the same organization with active GitHub access. Each run uses its factory's workspace; cross-repository runs start from that repository's default branch. Label and workflow filters use the event source repository.

Update the name after a repository rename or transfer.

Use repos: [acme/api, acme/web] to select several event sources. A non-empty repos list replaces the single repository source; keep repository for the existing required field. Repository names are exact and case-insensitive. Runs still use the factory's workspace. Label names and workflow paths must resolve in every selected source, and matching uses each source's own IDs.

Event types

EventUse
issuesIssue lifecycle and labels
pull_requestPR lifecycle and updates
issue_commentIssue or PR conversation comments
pull_request_reviewReview submissions and state
pull_request_review_commentInline review comments
pull_request_review_threadResolve or reopen review threads
pushRepository pushes
check_runCheck completion or rerequest
workflow_runWorkflow completion or request
releaseRelease creation or publication

Schema

Triggers schema. Each event page links its own input schema. Examples on event pages are entries in triggers, not complete factory files. Create the referenced harness and sandbox first. JSON Schema describes field shapes; stitch validate enforces event/filter compatibility.

Filters

Filter lists generally allow at most 50 entries. actions needs 1–20 unique entries. Supported filters vary by event; do not copy an unsupported field from another page.

FieldMatching
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 *, **, ?
sourceBranches, targetBranchesPR head/base branches; same patterns
pathPrefixesRepository-relative file/directory prefixes; no wildcards or ./.. segments
commentKeywordsCase-insensitive substring match; any selected keyword
mentionedLoginsCase-insensitive match against mentioned GitHub logins
commandsExact first word after leading whitespace, such as /review
actorLoginsCase-insensitive event sender login match
authorAssociationsGitHub association values, such as OWNER, MEMBER, COLLABORATOR
ignoreBotsExclude bot senders; defaults to false
ignoreDraftsExclude draft PRs; defaults to false
reposExact event-source repository allowlist; replaces repository when non-empty
assigneesAny selected issue/PR assignee login, case-insensitive
authorsIssue/PR author login, not the event sender or comment/review author
reviewersAny currently requested PR reviewer login, case-insensitive
reviewerTeamsAny currently requested reviewer team slug, case-insensitive
prNumbersAny selected positive PR number; issue numbers do not match
keywordsAny case-insensitive substring in issue/PR title and body, or event comment/review text
pathsChanged repository-relative paths using *, **, and ? patterns
conclusionsAny selected check/workflow conclusion on completed actions
reviewStatesAny selected review state on pull_request_review events
workflowsWorkflow file paths, resolved to IDs for workflow_run events

assignees, authors, keywords, and mentions are supported for issues, PRs, and their comment/review events. Reviewer and PR-number filters require PR events or PR conversation comments. Issue conversation comments do not pass PR-only filters. For PR conversation comments, requested reviewers are fetched from the current PR. Other PR events use the requested-reviewer lists in their webhook. These are pending review requests, not a history of submitted reviews. Path filters support pushes and PR lifecycle events; PR paths are fetched from GitHub.

Filter aliases

These spellings are accepted in factory YAML and normalize to the existing fields:

AliasCanonical field
baseBranches, base_branchestargetBranches
pr_numbersprNumbers
review_statesreviewStates
reviewer_teamsreviewerTeams
mentionedmentionedLogins
skip_botsignoreBots

Use one spelling per setting. Lists match any selected value unless an operator says otherwise. All configured filters must pass; unavailable required data does not pass. commentKeywords and pathPrefixes retain their existing behavior; use keywords for subject text and paths for wildcard path patterns.

Changed-label scope accepts only labeled/unlabeled actions and needs labels. is_empty forbids a labels list; has_all/has_none require one. Changed-label has_all cannot select multiple labels.

Comment matching requires selectors or matchAllComments: true, never both.

Concurrency

Set top-level concurrency to limit active runs for this trigger. Use a supported scope from the event page and an integer limit from 1 to 100. Runs wait in the queue when capacity is full. Omit the setting for no trigger-specific limit.

concurrency:
  scope: repository
  limit: 2
ScopeIdentity
repositoryEvent source repository, within this trigger
subjectIssue or pull request
commitCommit SHA
eventEvent type, action, and event ID

Subject/commit scopes are invalid when the event does not support those identities. A missing identity skips the run rather than broadening the concurrency scope.

See the GitHub trigger schema for configuration fields.

On this page