{
  "slug": "datadog-ci-sourcemaps-supports-commit-sha-bfbc8bf2c0d8",
  "title": "datadog-ci sourcemaps supports --commit-sha",
  "tools": [
    "datadog-ci"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-31T16:06:52.000Z",
  "announced_at": "2026-03-31T16:06:52.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When Git is unavailable, run `datadog-ci sourcemaps upload` with both `--repository-url` and `--commit-sha` (or their documented environment variables) to bypass Git and upload sourcemaps. The command uses sourcemap source paths directly; its repository root is the directory from which it runs.",
    "examples": [
      "datadog-ci sourcemaps upload <sourcemap-directory> --service <service> --minified-path-prefix <prefix> --release-version <version> --repository-url <repository-url> --commit-sha <commit-sha>"
    ],
    "gotchas": [
      "Version: v5.11.0",
      "<sourcemap-directory> (required): Directory searched recursively for `.js.map` files; corresponding JavaScript bundles must be alongside their maps.",
      "--service <service> (required): Service name used to match the RUM SDK `service` tag.",
      "--release-version <version> (required): Version used to match the RUM SDK `version` tag.",
      "--minified-path-prefix <prefix> (required): Common URL or absolute path prefix where the JavaScript files are served.",
      "--repository-url <repository-url> (required): Repository URL; required with `--commit-sha` to bypass Git. Can alternatively be set with `DD_GIT_REPOSITORY_URL`.",
      "--commit-sha <commit-sha> (required): Commit SHA overriding the Git commit; required with `--repository-url` to bypass Git. Can alternatively be set with `DD_GIT_COMMIT_SHA`.",
      "Prerequisite: Set `DD_API_KEY` in the environment.",
      "Prerequisite: To bypass Git, provide both `--repository-url` and `--commit-sha` (or both documented environment variables)."
    ]
  },
  "why_it_matters": "Upload RUM sourcemaps when Git is unavailable or should be bypassed.",
  "before": "The command invoked Git in the current working directory to collect repository information, unless `--disable-git` was set. `--disable-git` prevented Git invocation and repository data submission.",
  "sources": [
    "https://github.com/DataDog/datadog-ci/releases/tag/v5.11.0",
    "https://github.com/DataDog/datadog-ci/blob/v5.11.0/packages/base/src/commands/sourcemaps/README.md"
  ],
  "rank": 0.95021,
  "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": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-41d60c65eff816f8-0:gate",
    "evidence_hash": "3f257c9e0c2e6310a27b23440ed8d770665254a019f7df8893881e2b35ee0db4"
  },
  "review": {
    "draft_hash": "ddf8fe92b5e54fc45c944feee48882faa03bf12d31bf7740a56ad9f97043af07",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.70 (>= 0.6 needed)."
  }
}
