Git Product home page Git Product logo

auto-changelog's Introduction

auto-changelog

Command line tool for generating a changelog from git tags and commit history

Latest npm version Build Status Dependency Status devDependency Status

Installation

npm install -g auto-changelog

Usage

Just run in a local git repo. git log is run behind the scenes in order to parse commits.

auto-changelog # Writes log to CHANGELOG.md in current directory

Specify an output file with -o or --output.

auto-changelog --output HISTORY.md # Writes log to HISTORY.md

Specify a theme with -t or --template.

auto-changelog --template compact # Writes log using compact template

What you might do if you’re clever

  • npm install auto-changelog --save-dev
  • Add auto-changelog --package; git add CHANGELOG.md to the version scripts in your package.json:
{
  "name": "package",
  "devDependencies": {
    "auto-changelog": "*"
  },
  "scripts": {
    "version": "auto-changelog --package; git add CHANGELOG.md"
  }
}

Using --package or -p uses the version from package.json as the latest release, so that all commits between the previous release and now become part of that release. Essentially anything that would normally be parsed as Unreleased will now come under the version from package.json

Now every time you run npm version, the changelog will automatically update and be part of the version commit.

FAQ

What’s a changelog?

See keep-a-changelog.

What does this do?

The command parses a git commit history and generates a changelog based on tagged versions, merged pull requests and closed issues. The default output attempts to follow the schema outlined by keep-a-changelog. See a simple example in this very repo.

Why do I need it?

Because keeping a changelog can be tedious and difficult to get right. If you don’t have the patience for a hand-crafted, bespoke changelog then this makes keeping one rather easy. It also can be automated if you’re feeling extra lazy (see What you might do if you’re clever above).

auto-changelog's People

Contributors

bartoszadamczyk avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.