changelog

command module
v0.0.0-...-05764ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

changelog

Changelog generator

License GitHub tag (latest SemVer)

Getting Started

Write changelog to the console for the github repository lorislab/release-notes

changelog generate --repository lorislab/release-notes --token **** --version 2.0.0 --console

Create release and close version for the github repository lorislab/release-notes

changelog generate --repository lorislab/release-notes --token **** --version 2.0.0 --create-release --close-version

If the tool is running in the GitHub it will also check these environment variables if they are not specified:

  • GITHUB_REF - version paremeter
  • GITHUB_REPOSITORY - repository parameter

Commands

❯ changelog generate --help
Generate change for the release

Usage:
  changelog generate [flags]

Flags:
      --close-version       close version
      --console             write changelog to the console
      --create-release      create release and changelog
  -f, --file string         changelog definition (default "changelog.yaml")
  -h, --help                help for generate
  -r, --repository string   repository name (mandatory)
  -t, --token string        access token
  -e, --version string      release version (mandatory)

Global Flags:
      --config string      config file (default is $HOME/.changelog.yaml)
  -v, --verbosity string   Log level (debug, info, warn, error, fatal, panic (default "info")

Example of changelog.yaml

sections:
  - title: Major changes
    labels: 
      - "release/super-fearure"
  - title: Complete changelog
    labels: 
      - "bug"
      - "enhancement"
template: |
  Maven dependency:
  <dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-universe-bom</artifactId>
    <version>{{ .Version }}</version>
  </dependency>

  {{ range $section := .Sections }}{{ if $section.Items }}### {{ $section.GetTitle }}{{ range $item := $section.Items }}
  * [#{{ $item.GetID }}]({{ $item.GetURL }}) - {{ $item.GetTitle }}{{ end }}{{ end }}
  {{ end }}
Test release packages
goreleaser release --snapshot --clean

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL