Git Product home page Git Product logo

gh-changelog's Introduction

Make your changelogs ✨

ci Release

An opinionated GitHub Cli extension for creating changelogs that adhere to the keep a changelog specification.

What is supported?

gh-changelog is the tool for you if:

  • You want to closely follow the keep a changelog specification
  • You are using tags to mark releases
  • You are following a pull-request workflow

Installation and Usage

Before you start make sure that:

  • GitHub Cli is installed and authenticated
  • You are inside a git repository
  • The repository contains commits and has been pushed to GitHub

Install

gh extension install chelnak/gh-changelog

Upgrade

gh extension upgrade chelnak/gh-changelog

Create a new changelog

gh changelog new

Create a new changelog for an untagged version

gh changelog new --next-version v1.2.0

View your changelog in the terminal

gh changelog show

View the current configuration in the terminal

gh changelog config

Or to print out JSON instead of YAML:

gh changelog config -o json

Configuration

Configuration for gh changelog can be found at ~/.config/gh-changelog/config.yaml.

However some sensible defaults are provided to help you get off to a flying start.

# Labels added here will be ommitted from the changelog
excluded_labels:
  - maintenance
# This is the filename of the generated changelog
file_name: CHANGELOG.md
# This is where labels are mapped to the sections in a changelog entry
# The possible sections are restricted to: Added, Changed, Deprecated,
# Removed, Fixed, Security.
sections:
  changed:
    - backwards-incompatible
  added:
    - fixed
    - enhancement
  fixed:
    - bug
    - bugfix
    - documentation
# When set to true, unlabelled entries will not be included in the changelog.
# By default they will be grouped in a section named "Other".
skip_entries_without_label: false
# Adds an unreleased section to the changelog. This will contain any qualifying entries
# that have been added since the last tag.
# Note: The unreleased section is not created when the --next-version flag is used.
show_unreleased: true
# If set to false, the tool will not check remotely for updates
check_for_updates: true

You can also override any setting using environment variables. When configured from the environment, properties are prefixed with CHANGELOG. For example, overriding check_for_updates might look something like this:

export CHANGELOG_CHECK_FOR_UPDATES=false

gh-changelog's People

Contributors

chelnak avatar

Watchers

 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.