Giter Site home page Giter Site logo

conventional-changelog-archived-repos / conventional-changelog-writer Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 4.0 227 KB

deprecated, instead use https://github.com/conventional-changelog/conventional-changelog monorepo

JavaScript 97.98% HTML 2.02%

conventional-changelog-writer's People

Contributors

pdehaan avatar stevemao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

conventional-changelog-writer's Issues

h2 for pre release?

now, only patches have h2 as header size, but in common cases it better to use h2 for pre releases

Different host for repository and issues

Is it possible to have different host for repository(git) and issues tracking? so that link to commit number points to repository host and "closes" points to issue tracking host. I am using bitbucket as repository and JIRA as issue tracking.

Redesign API

Edit: TBH not too many people would config the API and they usually just use the default one or a preset. But if they do, they only change a small part. I believe an array of functions should solve this.

Allow version to be passed in asynchronously

Hello,

We are using conventional-changelog to generate a changelog for our release. Our release flow is something along the lines of:

  • Figure out the release version
  • Generate the changelog
  • (some other stuff)
  • Make a commit with the bumped version number and the generated changelog

We are using gulp to generate our changelog:

gulp.task('release-generate-changelog', () => {
  const newChangesStream = changelog(
    {preset: 'angular', warn: log, append: true},
    {version: <VERSION>},
    {},
    {noteKeywords: ['BREAKING CHANGE', 'DEPRECATION WARNING']},
    {transform: commitTransform}
  );

  const oldChangesStream = gulp.src('CHANGELOG.md')
    .pipe(map((file, cb) => cb(null, file.contents)));

  const latestChangesFileStream = newChangesStream
    .pipe(source('LATEST_CHANGES.md'));

  const changelogFileStream = series(newChangesStream, oldChangesStream)
    .pipe(source('CHANGELOG.md'));

  return merge(changelogFileStream, latestChangesFileStream)
    .pipe(gulp.dest('.'));
});

We want to get <VERSION> by using conventional-recommended-bump. However, conventional-recommended-bump works asynchronously, and conventional-commits-writer expects version to be passed in synchronously.

Is there some way we can give conventional-commits-writer the version asynchronously? Maybe the version option could accept a promise?

Thanks!

cc/ @stubbornella @matt-royal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.