Coder Social home page Coder Social logo

huddlenetwork / changeset Goto Github PK

View Code? Open in Web Editor NEW

This project forked from desmos-labs/changeset

0.0 0.0 0.0 59 KB

Changeset is a CLI tool that allows to easily manage changeset entries and generate CHANGELOG entries

Go 95.62% Makefile 4.38%

changeset's Introduction

Changeset

This tool is inspired from Atlassian's changeset CLI.

Changeset allows to easily handle change sets and create changelog entries that are compatible with both semantic versioning and Keep A Changelog.

Installation

To install changeset, run the following command:

go install github.com/desmos-labs/changeset/cmd/changeset@latest

Usage

Initializing the repo

In order to use changeset, the first thing you have to do is initialize the folder that contains your code:

changeset init [github-repo] [version]

You need to specify two arguments:

  • github-repo must represent the GitHub repository URL.
    This will later be used to create pull request links
  • version must represent the current version of the software.
    This will later be used to determine the next version if needed.

This will generate a file named config.yaml inside a new .changeset folder in your current directory. The next thing you have to do is edit such file to make sure the types and modules arrays contain the type of changes and the supported modules you want to have.

Adding a changeset entry

Once that's done, you can simply add a new changeset entry using

changeset add

This will create an interactive prompt that you can use to fill all the data.

Collecting the changelog

Finally, when you are ready to collect all the changeset entries into a changelog entry you can simply run

changeset collect

This command will get all the current changeset entries and create a CHANGELOG entry. Then, it will replace the Unreleased section of your file with the newly generated entry. The new version number will be computed based on the type and backward compatibility of the changes that have been made following the semantic versioning specifications.

This command supports the following flags

Flag Default value Description
--path $(curdir)/CHANGELOG.md Path to the CHANGELOG file to update
--version Version to be used instead of the computed one.
--dry-run false If true, preview the result without applying it to the CHANGELOG file

changeset's People

Contributors

riccardom avatar manu0466 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.