Skip to content

๐Ÿ“ƒ Github Action that creates a changelog and provides the content via pull requests to be merged for a future release

License

Notifications You must be signed in to change notification settings

patrickjahns/chlgr

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

chlgr

test license

Creates a changelog and provides the content via pull requests to be merged for a release

Introduction

This action provides the functionality of github-changelog-generator to easily and automatically manage a human readable changelog. chlgr differentiates itself from other changelog actions, by managing the changelog in a separate branch and as well as maintaining and creating a pull request with the changelog.

The rationale behind here is, that released artifacts should contain a up-to-date changelog with the correct version set.

Usage

- uses: patrickjahns/chlgr@v1
  with:
    # A prefix to be used for the commit msg and pr title
    # Default: [RELEASE]
    commit-msg-prefix: ''

    # The filename of the changelog
    # Default: CHANGELOG.md
    changelog-file: ''

    # The base for the pull-request chlgr creates
    # Default: master
    base-branch: ''

    # The branch used by chlgr for pushing the changelog and basing the pull request
    # off towards `base-branch`
    # Default: release/next
    release-branch: ''

    # If provided, this will be used as version for the changelog and the pull request
    # title
    # Default: unknown
    release-version: ''

    # If set, the action will not push the changelog or create a pull request
    dry-run: ''

    # Auth token used to push the changes back to github and create the pull request
    # with. [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
    # Default: ${{ github.token }}
    token: ''

Examples

Basic example

name: Update Changelog
on:
  push:
    branches:
      - master

jobs:
  changelog:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - name: update changelog
        uses: patrickjahns/chlgr@v1

Passing a version to the action

name: Update Changelog
on:
  push:
    branches:
      - master

jobs:
  changelog:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - name: calculate next version
        id: version
        uses: patrickjahns/version-drafter-action@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      - name: update changelog
        uses: patrickjahns/chlgr@v1
        with:
          release-version: ${{ steps.version.outputs.next-version }}

Extended configuration

This action utilizes github-changelog-generator therefor all configuration options are also applicable for this action by creating a .github_changelog_generator params file.

License

The scripts and documentation in this project are released under the MIT License

About

๐Ÿ“ƒ Github Action that creates a changelog and provides the content via pull requests to be merged for a future release

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published