)]}'
{
  "commit": "e29413a60a36ee1403b0024b75bcff718ed28b63",
  "tree": "3ea156835e608ccb6cc42c0406975c6555e04054",
  "parents": [
    "49266eddf0d96db729c2077adc355ca6869cc0dc"
  ],
  "author": {
    "name": "Antonio Barone",
    "email": "syntonyze@gmail.com",
    "time": "Mon Nov 24 20:37:41 2025 +0100"
  },
  "committer": {
    "name": "Antonio Barone",
    "email": "syntonyze@gmail.com",
    "time": "Wed Dec 03 11:14:38 2025 +0100"
  },
  "message": "Add support for custom quota-exceeded messages\n\nExtend the quota configuration with a new\n`sizeLimitExceededUnknownRequestSizeMsg` and\n`sizeLimitExceededKnownRequestSizeMsg` allowing administrators to define\ncustom error messages when a repository exceeds its size quota, for the\ncase when the size requested was unknown or known upfront, respectively.\n\nThe message supports the placeholders `${project}`, `${available}`,\n`${maximum}` and `${requested}` (when available) which are expanded at\nruntime using the new QuotaSizeMessageInterpolator.\n\nMaxRepositorySizeQuota is updated to return an AvailableSizeResponse\ninstead of a raw Long so that both the available space and the\ncorresponding maximum limit can be propagated.\n\nThe most restrictive quota (the smallest available size) is selected,\nand its custom message is used when constructing a client-facing\nQuotaResponse objects.\n\nA default message template is provided for quota sections that do not\ndefine their own message:\n\nWhen requested size quota is unknown:\n\n\"Project ${project} exceeds quota: max\u003d${maximum} bytes,\navailable\u003d${available} bytes.\"\n\nWhen requested size quota is known (as it was before this change):\n\n\"Requested space [${requested}] is bigger then available [${available}]\nfor repository ${project}\"\n\nBug: Issue 459520484\nDepends-On: I0e9e58734d6ebf9d669c1e70cf51b16aaa5a3bf0\nChange-Id: Iecb608b85d6c4547d219bf00b7186ca0c3c3eaec\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "304b0924e16875ef6545c3854f67aaf1199faa1d",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/quota/MaxRepositorySizeQuota.java",
      "new_id": "2450760ed7bbe3d4bbc2e265bea49b03d22f9601",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/quota/MaxRepositorySizeQuota.java"
    },
    {
      "type": "modify",
      "old_id": "8de2ff8e8e39c006404e88d376e39731cf9412d0",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/quota/QuotaSection.java",
      "new_id": "8df60995f33036c58f6890d8e726f4821762649d",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/quota/QuotaSection.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "31095aba0624ec307130d9a74316776600c25dd9",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/quota/QuotaSizeMessageInterpolator.java"
    },
    {
      "type": "modify",
      "old_id": "f2ceb15fcca30e97da0180a53e588f37422fcfd9",
      "old_mode": 33188,
      "old_path": "src/main/resources/Documentation/config.md",
      "new_id": "2d3a925418d3245867ca025a97fb4b92433b726e",
      "new_mode": 33188,
      "new_path": "src/main/resources/Documentation/config.md"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4740fa30b536a5468964a0fa07cacf84ef9cb755",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/quota/GlobalQuotaSectionTest.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7623b12db9131261ad79a0e57edfafd7e72a2cfa",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/quota/NamespacedQuotaSectionTest.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c1b7204554f3892017ae044a011bab7b45531569",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/quota/QuotaSectionBase.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d1ea706cac39f989c88e5d113397668ca05eb743",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/quota/QuotaSizeMessageInterpolatorTest.java"
    }
  ]
}
