filtered-commit-analyzer
A semantic-release commit analyzer plugin that filters out commits according to your configuration.
Last updated 5 months ago by randymarsh77 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install filtered-commit-analyzer 
SYNC missed versions from official npm registry.

filtered-commit-analyzer

See @semantic-release/commit-analyzer for more documentation.

Install

$ npm install filtered-commit-analyzer -D

Usage

The plugin can be configured in the semantic-release configuration file:

{
  "plugins": [
    ["filtered-commit-analyzer", {
      "preset": "angular",
      "releaseRules": [
        {"type": "docs", "scope":"README", "release": "patch"},
        {"type": "refactor", "release": "patch"},
        {"type": "style", "release": "patch"}
      ],
      "parserOpts": {
        "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
      },
      "filterRules": {
        "scope": "onlyAllowScopesThisRegExPattern",
        "youCanUseAnyValidPropertyParsedFromYourCommitMessage": ".*"
      }
    }],
    "@semantic-release/release-notes-generator"
  ]
}
External package / file

filterRules can also reference a module, either by it's npm name or path:

{
  "plugins": [
    ["@semantic-release/commit-analyzer", {
      "preset": "angular",
      "filterRules": "./config/filter-rules.js"
    }],
    "@semantic-release/release-notes-generator"
  ]
}
// File: config/filter-rules.js
module.exports = {
  scope: "packageA|packageB"
};

Current Tags

  • 0.0.1                                ...           latest (5 months ago)

1 Versions

  • 0.0.1                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |