Git Product home page Git Product logo

changelog's Introduction

changelog

A tool for updating project changelogs and package.json files for new releases.

Why?

Having a changelog (or history) file in a project helps you communicate to your users (developers) which changes you find most important to a release. Obviously the commit history is always available, but is often filled with noise. The changelog is a noise free place to highlight thee major changes in a more summarized and human readable form.

Currently workflows do not put enough emphasis on the changelog. Developers will often make a series of commits and then just bump the version in package.json. By centering the versioning workflow around the changelog, I hope to encourage more modules to keep an updated history.

Workflow

install the changelog tool

npm install -g defunctzombie/changelog

create an empty initial changelog

changelog --init

A HISTORY.md file will be created with the following content

# UNRELEASED

  * initial

release a new version

After you make some commits and add entries to the changelog, you can release a new version using the --release flag

changelog --release 1.0.0

This will perform the following:

  • Update the first changelog UNRELEASED line to # 1.0.0 (YYYY-MM-DD).
  • Set the version in package.json
  • git commit v<new version>
  • git tag v<new version>

bump to UNRELEASED

This will add a new UNRELEASED line to the start of the changelog.

changelog --increment

changelog format

# UNRELEASED

  * summary item
  * summary item

# 1.0.0 (YYYY-MM-DD)

  * summary item

# 0.1.0 (YYYY-MM-DD)

  * summary item
  * initial

The reason UNRELEASED is used at the top of the changelog is to indicate a series of changes which have not yet been officially tagged. It may be that a particular change will case a minor or major version bump and so the version cannot be known until a release is ready.

changelog's People

Contributors

defunctzombie avatar jonathanong avatar

Stargazers

 avatar

Watchers

 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.