unjs / changelogen

💅 Beautiful Changelogs using Conventional Commits
MIT License
949 stars 49 forks source link

can not disable release sync with `--github false` #196

Open magicdawn opened 5 months ago

magicdawn commented 5 months ago

Environment

node v20.13.0

Reproduction

see below

Describe the bug

usage

  1. pnpm changelogen --clean --github false --release --minor
  2. git push --tags

with sync release, later tag push will report tag already exists (and I need to test before push, so I don't want --push)

image

so I need to disable sync release. I found the code here https://github.com/unjs/changelogen/blob/v0.5.5/src/commands/default.ts#L141

but this still not working because mri(argv) will treat --github=false / --github false as string, argv.github === 'false'

https://runkit.com/magicdawn/665f44d7aa755f00088dfac6 image


and -h / --help / help does not work, use a better cli lib please, clipanion or cac

Additional context

No response

Logs

No response

magicdawn commented 5 months ago

and another issue --minor did not working, v0.0.2 became v0.0.3

thespielplatz commented 6 days ago

noticed the --minor today too. Waiting for this :)