1.0.1 • Published 11 months ago

cz-conventional-changelog-coauthors v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

cz-conventional-changelog-coauthors

npm version

A simple wrapper around cz-conventional-changelog to provide an addition Co-authored-by prompt for teams that use pair/mob programming and wish to attribute additional authors to a commit.

Configuration

package.json

Like commitizen, you specify the configuration of cz-conventional-changelog through the package.json's config.commitizen key. In addition to that configuration you can provide a default list of co-authors as raw strings or as objects with name and email fields.

{
  config: {
    commitizen: {
      path: './node_modules/cz-conventional-changelog-coauthors',
      defaultCoAuthors: [
        'Joe Bloggs <joe.bloggs@github.user>',
        {
          name: 'Jane Doe',
          email: 'jane.doe@github.user',
        },
      ],
    },
  },
}

Environment variable

As with the environment variables for cz-conventional-changelog the default co-author list can be provideed in the CZ_CO_AUTHORS environment variable.

export CZ_CO_AUTHORS = "Joe Bloggs <joe.bloggs@github.user>, Jane Doe <jane.doe@github.user>"