)]}'
{
  "commit": "940d126d24300eb627a71d4aa332ebda5b9b12c8",
  "tree": "002b2b48f1d51fa20fa63fe3a17516d037018510",
  "parents": [
    "f579934a72a353ca32d9e1c170e16e3627d09e53"
  ],
  "author": {
    "name": "cuishuang",
    "email": "imcusg@gmail.com",
    "time": "Fri Jul 24 00:00:37 2026 +0800"
  },
  "committer": {
    "name": "Gopher Robot",
    "email": "gobot@golang.org",
    "time": "Tue Jul 28 13:52:02 2026 -0700"
  },
  "message": "gopls/internal/analysis/fillswitch: add missing fmt import\n\nThe fill switch code action generates a default case that calls\nfmt.Sprintf when the switch expression can be safely evaluated again.\nHowever, the action does not add an fmt import, so the resulting code\ndoes not compile unless fmt was already imported.\n\nUse refactor.AddImport to add or reuse an accessible fmt import, and use\nthe returned prefix when generating the Sprintf call.\n\nUpdate the marker tests to verify the import edit and add coverage for\nan existing renamed fmt import.\n\nFixes golang/go#80550\n\nChange-Id: Ice114529820671a14401c5c338e1300937219e38\nReviewed-on: https://go-review.googlesource.com/c/tools/+/804940\nReviewed-by: Nooras Saba \u003cnoorassaba@google.com\u003e\nReviewed-by: Hongxiang Jiang \u003chxjiang@golang.org\u003e\nAuto-Submit: Hyang-Ah Hana Kim \u003chyangah@gmail.com\u003e\nLUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com \u003cgolang-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "808a25a7e8da9bd213aaa0e30f905302bc1764c7",
      "old_mode": 33188,
      "old_path": "gopls/internal/analysis/fillswitch/fillswitch.go",
      "new_id": "f72efed5c0d894d9cf45f145f3cccab6a391f54f",
      "new_mode": 33188,
      "new_path": "gopls/internal/analysis/fillswitch/fillswitch.go"
    },
    {
      "type": "modify",
      "old_id": "c8035d7a94021b6afc6d9f300531f60dc39c55e6",
      "old_mode": 33188,
      "old_path": "gopls/internal/test/marker/testdata/codeaction/fill_switch.txt",
      "new_id": "90ac890337d69e11101b90ecd749dbf0052f033e",
      "new_mode": 33188,
      "new_path": "gopls/internal/test/marker/testdata/codeaction/fill_switch.txt"
    },
    {
      "type": "modify",
      "old_id": "8065711c325e90af0aab1f91aee2a0f453bf456c",
      "old_mode": 33188,
      "old_path": "gopls/internal/test/marker/testdata/codeaction/fill_switch_resolve.txt",
      "new_id": "c9e856c5ad1c71af74f6ce3d2db51fed51c8fae7",
      "new_mode": 33188,
      "new_path": "gopls/internal/test/marker/testdata/codeaction/fill_switch_resolve.txt"
    }
  ]
}
