@mapbox/cz-mapbox-changelog

1.1.2 • Public • Published

Commitizen Mapbox Changelog

This is a commitizen plugin to make the writing of commit messages consistent across a repo.

Usage

git add ./some/file/to/add
git cz

Install

If you don't have commitizen yet:

npm install -g commitizen

Once you have commitizen:

npm install cz-mapbox-changelog --save

Then add the below json block to your package.json.

"czConfig": {
  "path": "node_modules/cz-mapbox-changelog"
}

Parsing Git Log

Changelog ships with a simple parser tool that will read the output of git log and output a list of commits grouped by their category. For more info on how to limit git log to only output the commits that are new to your next release, use git log <OLD_VERSION>..<NEW_VERSION> where OLD_VERSION and NEW_VERSION are git shas or tags.

git log | parse-git-log >> changelog.txt

ARGS

  • --filter-out=cat1,cat2: will exclude the provided categories from its output
  • --header-size=2: sets the number of # used for category headers. Default 3.

Readme

Keywords

none

Package Sidebar

Install

npm i @mapbox/cz-mapbox-changelog

Weekly Downloads

0

Version

1.1.2

License

BSD-3-Clause

Last publish

Collaborators

  • mbx-npm-ci-production
  • mbx-npm-ci-staging
  • mbx-npm-advanced-actions-production
  • mbx-npm-advanced-actions-staging
  • mbx-npm-09-production
  • mbx-npm-08-production
  • mbx-npm-07-production
  • mbx-npm-06-production
  • mbx-npm-05-production
  • mbx-npm-04-production
  • mbx-npm-03-production
  • mbx-npm-02-production
  • mbx-npm-01-production
  • mbx-npm-02-staging
  • mapbox-npm-01
  • mapbox-npm-02
  • mapbox-npm-07
  • mapbox-npm-03
  • mapbox-npm-04
  • mapbox-npm-09
  • mapbox-npm-05
  • mapbox-npm-06
  • mapbox-npm-08
  • mapbox-npm-advanced-actions
  • mapbox-npm-ci
  • mapbox-npm
  • mapbox-admin
  • mapbox-machine-user