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
| Event | Use |
|---|---|
issues | Issue lifecycle and labels |
pull_request | PR lifecycle and updates |
issue_comment | Issue or PR conversation comments |
pull_request_review | Review submissions and state |
pull_request_review_comment | Inline review comments |
pull_request_review_thread | Resolve or reopen review threads |
push | Repository pushes |
check_run | Check completion or rerequest |
workflow_run | Workflow completion or request |
release | Release 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.
| Field | 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, targetBranches | PR head/base branches; same patterns |
pathPrefixes | Repository-relative file/directory prefixes; no wildcards or ./.. segments |
commentKeywords | Case-insensitive substring match; any selected keyword |
mentionedLogins | Case-insensitive match against mentioned GitHub logins |
commands | Exact first word after leading whitespace, such as /review |
actorLogins | Case-insensitive event sender login match |
authorAssociations | GitHub association values, such as OWNER, MEMBER, COLLABORATOR |
ignoreBots | Exclude bot senders; defaults to false |
ignoreDrafts | Exclude draft PRs; defaults to false |
repos | Exact event-source repository allowlist; replaces repository when non-empty |
assignees | Any selected issue/PR assignee login, case-insensitive |
authors | Issue/PR author login, not the event sender or comment/review author |
reviewers | Any currently requested PR reviewer login, case-insensitive |
reviewerTeams | Any currently requested reviewer team slug, case-insensitive |
prNumbers | Any selected positive PR number; issue numbers do not match |
keywords | Any case-insensitive substring in issue/PR title and body, or event comment/review text |
paths | Changed repository-relative paths using *, **, and ? patterns |
conclusions | Any selected check/workflow conclusion on completed actions |
reviewStates | Any selected review state on pull_request_review events |
workflows | Workflow 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:
| Alias | Canonical field |
|---|---|
baseBranches, base_branches | targetBranches |
pr_numbers | prNumbers |
review_states | reviewStates |
reviewer_teams | reviewerTeams |
mentioned | mentionedLogins |
skip_bots | ignoreBots |
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| Scope | Identity |
|---|---|
repository | Event source repository, within this trigger |
subject | Issue or pull request |
commit | Commit SHA |
event | Event 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.