{
  "slug": "railway-add-repo-supports-selecting-a-branch-141dffea4468",
  "title": "railway add --repo supports selecting a branch",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-04T11:29:04.000Z",
  "announced_at": "2026-06-04T11:29:04.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When creating a service from a GitHub repository, pass `--repo <REPO>` and `--branch <BRANCH>` to `railway add` to target the branch. The add command documentation does not list `--branch`, so the full invocation is not verified there.",
    "gotchas": [
      "Version: v4.67.0",
      "--repo <REPO> (required): GitHub repository to create the service from; documented add syntax uses `owner/repo`.",
      "--branch <BRANCH> (required): Branch to target. Railway documents this option for `railway service source connect`, but not for `railway add`.",
      "Docs conflict: The official add page lists `-r, --repo <REPO>` but does not list `--branch`; the official service page documents `--branch` only for `railway service source connect`. The release note says `railway add --repo` supports it in v4.67.0."
    ]
  },
  "why_it_matters": "Create a Railway service from a GitHub repository targeting a specific branch.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v4.67.0",
    "https://github.com/railwayapp/cli/pull/934",
    "https://docs.railway.com/cli/add",
    "https://docs.railway.com/cli/service"
  ],
  "rank": 0.92042,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-2fd37be349c70dce-1:gate",
    "evidence_hash": "7a7e6de4dc6f41c7d0e26f83675dc6a7d23be32834e513fc651ea36cd02989cb"
  },
  "review": {
    "draft_hash": "b2264d425c5fa5ff61363563e33d836f44535e8511f981cb8c93da9eaa00161e",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.92 >= 0.9; 2 needed) and Jev gave 0.80 (>= 0.6 needed)."
  }
}
