Skip to content

Wrapper for @semantic-release/commit-analyzer which works with squashed MRs

Notifications You must be signed in to change notification settings

romap0/semantic-release-unsquash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

semantic-release-unsquash

A tiny wrapper for commit-analyzer and release-notes-generator which works with squashed MRs

npm latest version

Install

$ npm install -D semantic-release-unsquash

Usage

The plugin does not have it`s own configuration, but it passes configuration to wrapped plugins

{
  "plugins": [
    ["semantic-release-unsquash", {
      "commitAnalyzerConfig": {
        "preset": "angular",
        "parserOpts": {
          "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
        }
      },
      "notesGeneratorConfig": {
        "preset": "angular",
        "parserOpts": {
          "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
        },
        "writerOpts": {
          "commitsSort": ["subject", "scope"]
        }
      }
    }]
  ]
}

Usage with Github

GitHub automatically adds a list of squashed commit messages to the squash commit message.

Usage with GitLab

To use this plugin with GitLab, you need to go to your project settings and in the Merge Requests section update the Squash commit message template field to the following:

%{title}

%{all_commits}

About

Wrapper for @semantic-release/commit-analyzer which works with squashed MRs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published