chore: Add a hint to not modify patches-list.json by hand. Remove 'v' from version tag that not used during release

This commit is contained in:
LisoUseInAIKyrios committed 2026-06-11 11:00:31 +03:00
1 parent 5fee07592e
commit 031b1eb376
2 files changed
+9 -2

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
{ {
"version": "", "NOTE": "Do NOT manually edit this file. This file is automatically updated when semantic release (release.yml) runs. Manually editing this file can break your releases and break third party tools that use this file.",
"version": "0.0.0",
"patches": [] "patches": []
} }
@@ -88,7 +88,13 @@ private fun generatePatchList(version: String, patches: Set<Patch<*>>) {
.create() .create()
val jsonObject = JsonObject() val jsonObject = JsonObject()
jsonObject.addProperty("version", "v$version") jsonObject.addProperty(
"NOTE",
"Do NOT manually edit this file. This file is automatically updated when " +
"semantic release (release.yml) runs. Manually editing this file can break " +
"your releases and break third party tools that use this file."
)
jsonObject.addProperty("version", version)
jsonObject.add("patches", gson.toJsonTree(patchesMap)) jsonObject.add("patches", gson.toJsonTree(patchesMap))
listJson.writeText(gson.toJson(jsonObject)) listJson.writeText(gson.toJson(jsonObject))