Skip to content

[feat] Support non-interactive mode / command way to add changelog #979

Description

@bilibiliou

Affected Packages

@changesets/cli@2.25.0

Problem

Wanna support command way to add changelog

Now If I add a changelog, I need Select the packages you want to include in the changeset using ↑ and ↓ to navigate to packages, and space to select a package. Hit enter when all desired packages are selected.

It doesn't suitable on ci pipeline

I wanna support command way to add a changelog and autoly execute the command by CI pipeline, like this:

changeset add --major -m "this release info and description"
# then I can get branch commit description to add changelog when the branch merged
git log --pretty=format:"%b" HEAD -2 | xargs changeset add --major -m

Proposed solution

I havent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions