MCPcopy Create free account
hub / github.com/defold/defold / generate_json

Function generate_json

scripts/releasenotes_github_projectv2.py:594–604  ·  view source on GitHub ↗
(version, issues)

Source from the content-addressed store, hash-verified

592
593
594def generate_json(version, issues):
595 output = {
596 "version": version,
597 "timestamp": time.time(),
598 "issues": issues
599 }
600
601 file = "releasenotes/%s.json" % version
602 with io.open(file, "w") as f:
603 json.dump(output, f, indent=4, sort_keys=True)
604 print("Wrote %s" % file)
605
606
607def generate(version, hide_details = False):

Callers 1

generateFunction · 0.85

Calls 4

timeMethod · 0.80
openMethod · 0.80
dumpMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected