{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "vercel-labs-eve-software-factory-template--auto-fix-red-ci-on-factory-prs",
 "repo": "vercel-labs/eve-software-factory-template",
 "repo_url": "https://github.com/vercel-labs/eve-software-factory-template",
 "repo_slug": "vercel-labs-eve-software-factory-template",
 "title": "Have the factory fix red CI on its own draft PRs",
 "page_title": "How to have the factory fix red CI on its own draft PRs with Eve Software Factory Template",
 "summary": "Let Foreman diagnose a failing check on a factory PR and push the fix to its own branch.",
 "who": "A maintainer who runs the factory on a busy repository and wants failing checks on factory branches repaired without manual edits.",
 "problem": "A draft PR from the factory fails CI, and someone has to read the logs and push a fix before review can continue.",
 "outcome": "Foreman diagnoses the failure and pushes a fix to its own factory branch, leaving your branches alone.",
 "steps": [
  "Confirm FACTORY_BRANCH_PREFIX is set to the default factory/ or your chosen prefix.",
  "Open a draft PR from the factory on a branch that starts with that prefix.",
  "Let CI run on the draft PR and wait for a red result.",
  "Check the new commit Foreman pushes to its own factory branch.",
  "Review the updated draft PR and merge it once CI is green and you approve the change."
 ],
 "agent_prompt": "On the repository <owner/repo>, find the factory draft PR on branch <factory-branch> with failing CI. Verify that Foreman pushes its fix to that factory/ branch only and that CI on the PR turns green after the push.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "90 minutes",
 "basis": "readme",
 "caveat": "The README says automated CI fixes only touch branches with the factory prefix, so a PR on any other branch will not receive an automatic fix.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "A Vercel account to deploy the template with the deploy button",
  "A GitHub repository you want the factory to work on, in owner/repo format",
  "A GitHub App installed on that repository with access granted, as the connector requires",
  "A Linear workspace, only if you want to delegate tasks from Linear",
  "The Vercel CLI, for the local TUI workflow"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/vercel-labs-eve-software-factory-template/auto-fix-red-ci-on-factory-prs/",
 "md": "https://dedupedai.com/use-cases/vercel-labs-eve-software-factory-template/auto-fix-red-ci-on-factory-prs/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/vercel-labs-eve-software-factory-template--auto-fix-red-ci-on-factory-prs.json",
 "api_version": "v1"
}
