GithubHelp home page GithubHelp logo

tomodian / release Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 1.0 133 KB

A command-line utility to manage Keep-a-changelog formatted changelogs. Written in Go, works nicely on Monorepo.

Home Page: https://github.com/tomodian/release

License: Mozilla Public License 2.0

Makefile 2.39% Go 97.61%
go keepachangelog changelog release-automation release-management monorepo cli linux macos devops

release's Introduction

Release

Go Reference Test on Linux Release codecov

GitHub All Releases

A small command-line utility to manage CHANGELOG.md written in keepachangelog.com format.

Works nicely on any sized Git repository, even awesome on Monorepo.

Installation

Please download ZIP archive from releases page.

How it works

Run release to show full list of commands and flags.

List all CHANGELOG.md

release target will show you all CHANGELOG.md files recursively.

release target
release target --dir path/to/entrypoint
release t -d path/to/entrypoint

See unreleased changes

release unreleased will grab [Unreleased] sections of all CHANGELOG.md files recursively.

release unreleased
release unreleased --dir path/to/entrypoint
release u -d path/to/entrypoint

See previous versions

release show will output all previous version histories.

release show -v 0.1.0
release show -v 0.1.0 --dir path/to/entrypoint
release s -v 0.1.0 -d path/to/entrypoint

Show the latest released version in current directory

release latest
release latest --newline=false
release l

Bump all [Unreleased] sections to given version

By default, release to -v X.Y.Z will ask you for confirmation.

release to -v 0.2.0

# Targets
## .github/workflows/CHANGELOG.md
## CHANGELOG.md
✔ Enter `yes` to update all CHANGELOGs to version [0.8.0]: yes

If you want to integrate with CI pipeline, use --force or -f.

release to -v 0.2.0 --force

# Targets
## .github/workflows/CHANGELOG.md --> ✅
## CHANGELOG.md --> ✅
Done👍

See next release version

release next will suggest you the next available version.

release next

Latest released version: 0.8.0

Suggestions for next release:
   - Major / Release --> 1.0.0
   - Minor / Feature --> 0.9.0
   - Patch / Hotfix  --> 0.8.1

For CI integrations, add --type flag. The words major, minor and patch comes from Semantic Versioning 2.0.0 idiom.

release next --type major
1.0.0

release next --type minor
0.9.0

release next --type patch
0.8.1

Note this command will not add newline when --type flag is specified. Use --newline flag if you prefer to see the newline.

release next --type major --newline

GitFlow idiom is also supported.

release next --type release
1.0.0

release next --type feature
0.9.0

release next --type hotfix
0.8.1

Github-style semver vx.y.z

The tool also supports Github-style semver:

release show -v v0.1.0
release to -v v0.2.0

Development

Run

make run

Test

make test

Build

make build

Issues?

MacOS "developer cannot be verified" error

Note MacOS Catalina will warn you when executing this binary in command-line. Follow these steps to give your permission.

  1. In the Finder on your Mac, unzip the release app and open the release binary
  2. MacOS will prompt you to enable the binary, so answer yes
  3. Now you can use the binary from command-line.

License

Mozilla Public License v2.0

release's People

Contributors

oz-rw avatar tomodian avatar

Stargazers

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

Watchers

 avatar

Forkers

oz-rw

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.