Ability to create a Github discussion thread when a release version published
- [ ] I'd be willing to implement this feature (contributing guide)
Description
When releasing a version, we have the option to --create-release github which creates a new Release in Github. When we create a Release manually in Github we have an option to Create a discussion for this release, but this is not possible currently with lerna command options.
Motivation
As GitHub added this feature relatively new, and manually we were able to create discussion, it is good to automate it during the release process
Suggested Implementation
To start with, add an option to lerna version command like --crerate-github-discussion which accepts a value of one of the Discussion types. This option should be applicable only when --create-release github option is passed
Alternate Implementations
Alternatively, add a property in lerna.json under the version command called createGithubDiscussion that accepts a boolean
@badatt I took your great suggestion and implemented it in Lerna-Lite (a smaller fork of Lerna) as a new flag lerna version --create-release-discussion <name>, you can see this Discussion group for a live demo. Cheers