lerna icon indicating copy to clipboard operation
lerna copied to clipboard

Ability to create a Github discussion thread when a release version published

Open badatt opened this issue 2 years ago • 1 comments

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 avatar May 05 '23 19:05 badatt

@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

ghiscoding avatar Jun 09 '23 20:06 ghiscoding