Skip to content

Factories > Integrations

Connect GitHub to your factory

Open in ChatGPT ↗
Ask ChatGPT about this page
Open in Claude ↗
Ask Claude about this page
Copied!

Connect a factory to GitHub so issues, pull requests, reviews, and CI events start factory work and results post back to GitHub.

When you connect a factory to GitHub, repository activity starts work in your factory. Issues, pull requests, reviews, and CI events can all trigger automations, and the factory posts results back to GitHub as comments, branches, and pull requests.

  • The Warp GitHub App - Follow the GitHub integration setup if you haven’t already. One installation serves both the platform integration and factories.
  • A factory with GitHub repositories - The app must have access to at least one of the factory’s repositories.
  1. In the Warp Factories web app at platform.warp.dev, click + next to Factories to open the setup wizard, then choose I want to use repos from GitHub under Connect your code host.
  2. Under Select your repos, choose the repositories to provide code and context for the factory.
  3. In the factory’s control room, click Automations. Create an automation or edit a default one, choose the receiving agent, and add any Additional instructions.
  4. Under Triggers, click Add trigger.
  5. Choose GitHub, then choose an event.
  6. Select a repository, then use More filters to narrow which activity matches.
  7. Click Save. To confirm the automation works, trigger a matching event in GitHub, such as opening a test issue, and check that a work item starts in the control room.

Managed GitHub factories start with two editable default automations. The first handles agent mentions and assignments (see Mention the factory). The second runs when a pull request closes or merges: on a merge it finds the work items linked from the pull request and moves each one to its tracker’s completed state, and on a close without a merge it does nothing.

TriggerSupported activity
IssuesCreated, labeled, assigned, or agent mentioned
Pull requestsOpened, marked ready, reopened, updated with commits, assigned, labeled, mentioned, closed, or merged
ReviewsReview requested or review submitted
Code and CIPush, completed check suite or workflow run, or a re-requested Warp-owned check

Re-requesting a check triggers the factory only when the Warp GitHub App created that check. GitHub doesn’t deliver re-request events for third-party CI checks.

Every trigger names the repository it watches. The remaining filters appear only on the event types they apply to:

FilterMatchesAppears on
BranchesThe pushed branch, or a CI run’s head branchPush and CI triggers
Base branchesThe branch the pull request targetsPull request triggers
PathsThe files the change touchesPush and pull request triggers
LabelsLabels on the issue or pull requestIssue, pull request, review submitted, and CI triggers
AuthorsWho opened the issue or pull requestIssue, pull request, and CI triggers
AssigneesWho the issue or pull request is assigned toIssue and pull request triggers
Mentioned users or teamsWhich user or team is @mentionedMention and review submitted triggers
Reviewers and Reviewer teamsWho review was requested fromReview requested triggers
Review statesWhether the review approved, requested changes, or commentedReview submitted triggers
WorkflowsThe GitHub Actions workflow, by nameWorkflow run triggers
ConclusionsThe run’s result: success, failure, cancelled, and so onCheck suite and workflow run triggers

CI payloads don’t carry issue or label data, so on check suite and workflow run triggers, Labels and Authors match against the pull request linked to the run.

Use filters to route work precisely. For example, send failed runs of a specific workflow to a CI-repair automation.

A factory doesn’t get its own GitHub handle. Every factory listens through the same Warp agent account, @oz-agent, and the factory’s factory:<alias> label decides which factory a mention reaches:

  1. Apply the factory’s factory:<alias> label to the issue or pull request. Warp creates the label in each connected repository.
  2. Assign @oz-agent to the issue or pull request, or mention @oz-agent in the body or in any new comment.

The default mentions-and-assignments automation starts a work item in the matching factory, and the factory replies in the same thread. The label is what routes the request. A mention without the factory’s label doesn’t match the default automation.

Mentions count only in new content; edits to existing comments, mentions inside code blocks, and mentions from bots are ignored.

The handle and label are default filter values, not fixed rules. Edit the automation’s Mentioned users or teams filter to respond to other handles, such as your own @org/team slug, or remove the label filter to catch every mention in the factory’s repositories.

The factory posts progress comments in the originating issue, pull request, or review thread, with links to the run and to any branches or pull requests it creates. Events without a comment surface, such as a push or a workflow run, report their results on the work item instead.

New activity on an issue, pull request, or review thread the factory is already working on continues that work item instead of starting a new one.

Issues and pull requests created by the factory carry a factory:<alias> label. Warp adds that label to every connected repository and removes it when you disconnect a repository or delete the factory, so you never create it by hand. Both passes are best-effort: if GitHub rejects one, a stale label can linger and needs deleting manually.

Factory-created branches and pull requests follow the repository’s normal rules: branch protection, required reviews, and merge requirements still apply.

Runs authenticate with the GitHub App installation, not with the account of the person whose activity triggered them:

  • The app installation decides what agents can reach. Agents get exactly the repositories and permissions the installation grants. Factory repositories and automation filters control when work starts, not what a running agent can reach. To change access, change the installation.
  • Anyone who can create matching activity can start work. The event author doesn’t need to be a Warp team member. Use author, label, and branch filters to control what starts runs.

For the full credential model, see Permissions and identity on the GitHub integration page.

If the factory’s definition is managed as code in a GitHub repository, Warp reviews configuration changes like CI reviews code. When a pull request targets the production branch and changes files in the registered factory directory, a warp/factory-config check runs: it passes with a summary of the change, or fails with diagnostics on what to fix. Require the check in branch protection to block invalid definitions from merging.

These checks validate the factory’s configuration files only. They don’t create work items, and pull requests that don’t touch the factory directory don’t get the check.

Confirm the app installation covers the event’s repository, the repository belongs to the factory, and the automation includes that event. Then check each filter; a label, author, branch, workflow, conclusion, or state mismatch prevents routing.

Select a repository first. If the automation editor shows Connect GitHub, complete the account connection and retry. You can enter a value manually when suggestions are unavailable.

An agent can’t push a branch or open a pull request

Section titled “An agent can’t push a branch or open a pull request”

Check that the installation still covers the target repository and grants the required write permissions. Automation filters don’t affect GitHub authorization.

A factory-definition check doesn’t appear

Section titled “A factory-definition check doesn’t appear”

The check runs only for factories whose definition is managed as code in a GitHub repository. Confirm the pull request targets the definition’s production branch, changes files under the registered factory directory, and that the GitHub App covers the repository.