GithubHelp home page GithubHelp logo

mrombout / gochange Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 0.0 35 KB

Go tool that helps creating and manipulating changelogs that comply to the format of Keep a Changelog.

License: GNU General Public License v3.0

Go 99.30% Shell 0.70%
go changelog keepachangelog cli markdown wip

gochange's Introduction

GoChange

Go tool that helps writing changelogs.

master Go Report Card codecov

Usage

To initialize an empty changelog for your project use the command described below.

gochange init

To add a new entry to the unreleased section of the changelog use the commands described below. The section is determined by the first world in your sentence.

gochange "Added links to navigational page."
gochange "Changed way navigation is handled."
gochange "Deprecated the use of the navigational page."
gochange "Removed links to navigational page."
gochange "Fixed link to navigation page."
gochange "Security navigational page is not longer a threat."

To bump all changes in the unreleased section up to a specific version use the command described below.

gochange release 0.1.0

gochange's People

Contributors

dependabot[bot] avatar mrombout avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gochange's Issues

Rename tool and repository

This tool is not specific to Go, so it's better to give it a more generic name like simply changelog for example.

Add support for `[YANKED]` releases

Yanked releases are versions that had to be pulled because of a serious bug or security issue. Often these versions don't even appear in change logs. They should. This is how you should display them:

[0.0.5] - 2014-12-13 [YANKED]

The [YANKED] tag is loud for a reason. It's important for people to notice it. Since it's surrounded by brackets it's also easier to parse programmatically.

  • Parser should recognize the [YANKED] tag and set the Yanked field on that Release to true.
  • gochange yank <release> should mark that release as [YANKED], or fail if that release doesn't exist.

No diff link rendered for first release

When doing the a first release, all items are properly moved from the Unreleased section to the release section. But at the bottom of the page, no diff link is rendered for this release:

# Changelog

Lorum ipsum dolor sit amet.

## [Unreleased]

## [v0.0.1] - 2023-04-09

### Added

- Added some new stuff.

### Changed

- Changed an existing feature.

### Deprecated

- Deprecated some old stuff, to be removed in the next release.

### Removed

- Removed some old stuff.

### Fixed

- Fixed some bugs.

### Security

- Security fix for CVE-1234-1234.

[Unreleased]: http://github.com/HEAD...HEAD

Only after the changelog is then modified again (either through a release or adding a new entry) the link is properly rendered and the link is changed to [Unreleased]: http://github.com/v0.0.1...HEAD as it should be.

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.