Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@khala/commit-analyzer-wildcard

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@khala/commit-analyzer-wildcard

Commit analyzer for semantic-release based on wildcards

  • 2.1.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
decreased by-5.88%
Maintainers
1
Weekly downloads
 
Created
Source

commit-analyzer-wildcard

Wildcard commit analyzer for semantic-release to find substrings in each commit message.

Installation

  • Using NPM
> npm install -D @khala/commit-analyzer-wildcard
  • Using yarn
> yarn add -D @khala/commit-analyzer-wildcard

Then add it to your release options

  • package.json
{
  "release": {
    "analyzeCommits": "@khala/commit-analyzer-wildcard/analyzer"
  }
}
  • .releaserc
{
  "analyzeCommits": "@khala/commit-analyzer-wildcard/analyzer"  
}

Default usage

Simply add some special characters to any of your commit messages and new release will be triggered

  • Major - <x.x.x> or <x.x.?> or <x.?.x> or <x.?.?>
  • Minor - <?.x.x> or <?.x.?>
  • Bug - <?.?.x>
  • No release - <no>

To trigger automatic release add this to package.json and install semantic-release

{
  "scripts": {
    "release": "semantic-release"
  }
}

Settings for travis is

after_success:
- npm run release

Options

To change default patterns you can pass your own in your release option.

{
  "release": {
    "analyzeCommits": [
      {
        "path": "@khala/commit-analyzer-wildcard/analyzer",
        "patterns": {
          "major": "<x.[x|?].[x|?]>",
          "minor": "<?.x.[x|?]>",
          "patch": "<?.?.x>",
          "noRelease": "<no>"
        } 
      }
    ]
  }
}

Each pattern is transfered into Regular Expression and searched in each commit message.

Keywords

FAQs

Package last updated on 11 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc