semantic-release icon indicating copy to clipboard operation
semantic-release copied to clipboard

Allow modifying nextRelease from plugins

Open tsvetomir opened this issue 2 years ago • 1 comments

New feature motivation

Currently, plugins cannot modify the nextRelease object due to the deep cloning of context.

This prevents customization scenarios like custom version suffixes (https://github.com/semantic-release/semantic-release/issues/2446), zero as a major version (https://github.com/semantic-release/semantic-release/issues/1507), and release notes filtering.

New feature description

Allow verifyRelease and generateNotes and other plugins to modify the context.nextRelease fields.

New feature implementation

Removing the cloneDeep call seems sufficient, but may reduce the plugin isolation.

An alternative plugin pipeline configuration could also work.

tsvetomir avatar Dec 29 '22 10:12 tsvetomir