)]}'
{
  "commit": "39552f4e3ba16cf225643e62409ba98604e97bdd",
  "tree": "6c0d023d4b7d5e1e6ffc3069de628748c269e4e9",
  "parents": [
    "da806cefaf5de557e24401d03339081757340fd5"
  ],
  "author": {
    "name": "Josh Wu",
    "email": "joshwu@google.com",
    "time": "Mon Aug 31 23:19:09 2026 +0800"
  },
  "committer": {
    "name": "gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Thu Oct 22 11:35:30 2026 -0700"
  },
  "message": "hooks: check_black: pass stdin argument and check returncode\n\nWhen checking file content from git via stdin, black requires \u0027-\u0027\nas an argument to read from standard input. In addition, black signals\nformatting issues or errors through its exit code (0 if formatted,\nnon-zero if formatting is needed) rather than stdout.\n\nUpdate check_black to:\n- Pass \u0027-q\u0027 and \u0027-\u0027 to black to quietly check stdin.\n- Check result.returncode instead of result.stdout.\n- Provide a default error message when stdout is empty.\n\nBug: 488338724\nTest: python3 -m pytest rh/hooks_unittest.py\nChange-Id: Iee44d1153c3d793d65e81883e8418126a798ac39\nReviewed-on: https://gerrit-review.googlesource.com/c/git-repohooks/+/647263\nTested-by: Josh Wu \u003cjoshwu@google.com\u003e\nCommit-Queue: Josh Wu \u003cjoshwu@google.com\u003e\nReviewed-by: Mike Frysinger \u003cvapier@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9627ae854cdc9c8209c4ce080fa360327b220ad4",
      "old_mode": 33188,
      "old_path": "rh/hooks.py",
      "new_id": "bad744e22b1f2a6fb9d5e1333e07314b49729877",
      "new_mode": 33188,
      "new_path": "rh/hooks.py"
    }
  ]
}
