包详细信息

cz-conventional-changelog-coauthors

p-m-p1.1kMIT1.0.1

cz-conventional-changelog with co-authors prompt

git, github, commit, commitizen

自述文件

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>"