conventional-changelog-metahub

January 13, 2018 ยท View on GitHub

conventional-changelog preset built from a list of conventional commit types (similar to conventional-commit-types). Also provides release rules configuration for sr-commit-analyzer.

Travis Codecov Greenkeeper badge

Commit types originally from:

Install

npm install --save-dev conventional-changelog-metahub

Configuration for sr-commit-analyzer

npm install --save-dev sr-commit-analyzer
{
  "release": {
    "analyzeCommits": {
      "path": "sr-commit-analyzer",
      "preset": "metahub",
      "releaseRules": "conventional-changelog-metahub/release-rules"
    }
  }
}

Configuration for sr-release-notes-generator

npm install --save-dev sr-release-notes-generator
{
  "release": {
    "generateNotes": {
      "path": "sr-release-notes-generator",
      "preset": "metahub"
    }
  }
}

Use with conventional-changelog

npm install --save-dev conventional-changelog
import conventionalChangelog from 'conventional-changelog';

const config = require('conventional-changelog-metahub');
conventionalChangelog({config}).pipe(process.stdout);

Commit types

Commit TypeTitleDescriptionEmojiReleaseInclude in changelog
featFeaturesA new featureโœจminortrue
fixBug FixesA bug Fix๐Ÿ›patchtrue
docsDocumentationDocumentation only changes๐Ÿ“špatch if scope is readmetrue
styleStylesChanges that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)๐Ÿ’Ž-true
refactorCode RefactoringA code change that neither fixes a bug nor adds a feature๐Ÿ“ฆ-true
perfPerformance ImprovementsA code change that improves performance๐Ÿš€patchtrue
testTestsAdding missing tests or correcting existing tests๐Ÿšจ-true
buildBuildsChanges that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)๐Ÿ› patchtrue
ciContinuous IntegrationsChanges to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)โš™๏ธ-true
choreChoresOther changes that don't modify src or test filesโ™ป๏ธ-true
revertRevertsReverts a previous commit๐Ÿ—‘-true

Commit aliases

Aliases allow to have additional commit types (in a tool like commitizen for example) that can be formatted to follow AngularJS Commit Message Conventions.

For example the commitizen CLI can present the choice initial and the final commit message will be 'feat: Initial commit ๐ŸŽ‰'

Commit TypeMaps toTitleDescriptionEmoji
initialfeatInitialInitial commit๐ŸŽ‰
dependenciesfixDependenciesUpdate dependenciesโฌ†๏ธ
peerDependenciesfixPeer dependenciesUpdate peer dependenciesโฌ†๏ธ
devDependencieschoreDev dependenciesUpdate development dependenciesโฌ†๏ธ
metadatafixMetadataUpdate metadata (package.json)๐Ÿ“ฆ