unjs / changelogen

💅 Beautiful Changelogs using Conventional Commits
MIT License
839 stars 40 forks source link

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

Open magicdawn opened 4 weeks ago

magicdawn commented 4 weeks 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 4 weeks ago

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