conventional-changelog / conventional-changelog

Generate changelogs and release notes from a project's commit messages and metadata.
ISC License
7.79k stars 716 forks source link

Unable to configure types #681

Open zaccb opened 3 years ago

zaccb commented 3 years ago

This repo does not allow for commit types to be configured.

Modifying the readme example below:

gulp.task('changelog', function () {
  return gulp.src('CHANGELOG.md')
    .pipe(conventionalChangelog({
      // conventional-changelog options go here
      preset: 'angular'
    }, {
      types: [
        { "type": "feat", "section": "Foo" }
      ]
    }, {
      // git-raw-commits options go here
    }, {
      // conventional-commits-parser options go here
    }, {
      // conventional-changelog-writer options go here
    }))
    .pipe(gulp.dest('./'));
});

Does not change the the section header for feat commits. The standard "Features" is displayed.

Is this repo properly passing through context configuration? It would appear so but the expected result is not produced:

https://github.com/conventional-changelog/conventional-changelog/blob/be1246c68f5dc4e6f28996129951a75bbf1cf307/packages/gulp-conventional-changelog/index.js#L27

andrewholgate commented 3 years ago

I'm having the same issue. I'm not sure if it's because there's an issue in this package or the documentation is not accurate.

@zaccb did you end up finding a solution?

zaccb commented 3 years ago

@andrewholgate I have not found a solution. I presume now that maybe it's doable but just not well documented. Following the links in the conventional-changelog repos takes me in circles.

If there was a reference implementation for how to customize each then I'd be able to narrow it down to docs or code.

trallnag commented 2 years ago

Did somebody find a solution to this by now?