commitizen icon indicating copy to clipboard operation
commitizen copied to clipboard

cz bump - Overwrites my cz.yaml emoji

Open syepes opened this issue 1 year ago • 1 comments

Description

When I run a cz bump it overwrites my config file .cz.yaml and changes all my emojis to there \U* equivalents

Steps to reproduce

  1. .cz.yaml File with any link of 🚀
  2. cz bump --increment PATCH
  3. look at the file .cz.yaml 🚀 can been converted to \U0001F680

Current behavior

it's changing all the emojis

Desired behavior

Leave the emojis untouched

Screenshots

Before bump CleanShot 2024-06-20 at 3  28 14@2x

After bump CleanShot 2024-06-20 at 3  26 49@2x

Environment

# cz version                            
3.27.0

# python3 -V
Python 3.12.3

# python3 -c "import platform;print(platform.system())"
Darwin

syepes avatar Jun 20 '24 13:06 syepes

I "guess" this might be something related to encoding or the lib yaml. But could you please share the config you're using in text for us to try to reproduce? Thanks!

Lee-W avatar Aug 11 '24 14:08 Lee-W