* fix(changelog): hide reverted commits again after the switch to 12-char hashes
Since #12096 the commit list is read with `--abbrev=12`, so the `types`
array is keyed by 12-character hashes, but `commit:is-revert` still
returned the first 7 characters of the reverted hash. The lookup in
`display-release` never matched, and both a reverted commit and its
`Revert "..."` commit were listed in the changelog.
* test(changelog): cover hiding reverted commits
* fix(jsontools): print JSON, not YAML, in `pp_json` with the ruby method
The ruby implementation of `pp_json` converted the parsed input to YAML
(`to_yaml`), while the node and python3 implementations, and the README,
pretty-print JSON. Use `JSON.pretty_generate` with the same 4-space
indent as the other methods.
* test(jsontools): cover the ruby method