@edgelogistics/semantic-release-git

1.2.1 • Public • Published

@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.

Package Sidebar

Install

npm i @edgelogistics/semantic-release-git

Weekly Downloads

0

Version

1.2.1

License

MIT

Unpacked Size

14.3 kB

Total Files

10

Last publish

Collaborators

  • edgelogistics-devs
  • cnieto
  • fdelahoz
  • aosorio-leantech
  • andrespino.leantech