@edgelogistics/semantic-release-git
v1.2.1
Published
Fork of @semantic-release/git
Downloads
4
Readme
@edgelogistics/semantic-release-git
This project is a fork of the package @semantic-release/git, an it add a new functionality to allow to add only certain hunks of a file passing the options
"plugins": [
["@semantic-release/git", {
"assets": [{"path": "package.json", "hunks": "y n y"}],
}]
]
Where each element in the hunks option is an option for git add -p
Requirements
In order to execute the hunks functionality, the process must be executed in a machine with access to bash, because the script needs that shell in order to work
await execa.command(`echo -e "${patchOptions}" | git add --patch ${path}`, {...execaOptions, reject: false, shell: "bash"});
Advertence
This is done to fulfill an urgency, please refer to the official library to have a stable version https://github.com/semantic-release/git
The idea is to complete the tests and make a pr to the official library.
The functionality added is unstable, please use the official library to have a stable version.