Categorygithub.com/gabe565/changelog-generator
modulepackage
0.2.2
Repository: https://github.com/gabe565/changelog-generator.git
Documentation: pkg.go.dev

# README

Changelog Generator

GitHub release (latest by date) Build Go Report Card Quality Gate Status

A configurable commit-based changelog generator. It finds commits since the previous release, filters them, then groups them.

Generated changelogs look similar to the changelogs generated by GoReleaser, making this action a great fit for projects where another build tool is used.

Usage

GitHub Action

Inputs

NameDescriptionDefault
outputGenerated changelog path.
pathPath to the local git repository"."
configPath to the config file..changelog-generator.yaml
tokenGitHub token used to fetch release assets.${{ github.token }}
install-onlyInstalls changelog-generator without running it"false"

Outputs

NameDescription
changelogThe generated changelog markdown.

Example

name: Release

on:
  push:
    tags:
      - "v*.*.*"

jobs:
  release:
    name: Release
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - name: Generate Changelog
        uses: gabe565/changelog-generator-action@v1
        id: changelog
      - name: Release
        uses: softprops/action-gh-release@v2
        with:
          body: ${{ steps.changelog.outputs.changelog }}

Configuration

Configuration is loaded from .changelog-generator.yaml in the git repo root. See the config example for more details.

If .changelog-generator.yaml is not found, Changelog Generator will attempt to load the changelog key from .goreleaser.yaml.

# Packages

No description provided by the author