Skip to content

attieretief/changelog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Changelog Updater Action

This GitHub Action generates or updates a changelog markdown file based on merged pull requests and referenced issues. It automates the process of keeping your changelog up to date, ensuring that your project documentation reflects the latest changes.

Table of Contents

Usage

Job

uses: attieretief/changelog-updater@v1

Inputs

  • github_token: Required. A GitHub token for authentication. This token is used to access the GitHub API and fetch merged pull requests and issues.
  • changelog_file: Optional. The path to the changelog file. Defaults to CHANGELOG.md.
  • front_matter: Optional. Front matter to include in the changelog. Defaults to ---\n---\n\n.
  • owner: Required. Repository owner. Defaults to ${{ github.repository_owner }}.
  • repository: Required. Repository name. Defaults to ${{ github.repository }}.
  • pull_request_number: Optional. Pull request number. If one is provided, the changelog will be updated with just the information from this pull request. If not, the changelog will be regenerated.

Example

Here is an example of how to configure the action in your workflow:

name: Update Changelog

on:
  push:
    branches:
      - main

jobs:
  update-changelog:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Update Changelog
        uses: attieretief/changelog@v1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          changelog_file: CHANGELOG.md
          front_matter: |
            ---
            ---
          owner: ${{ github.repository_owner }}
          repository: ${{ github.repository }}
          pull_request_number: ${{ github.event.pull_request.number }}
      - name: Commit
        uses: stefanzweifel/git-auto-commit-action@v4
        with:
          commit_message: 'pdf from gh issue'
          # Optional. Local and remote branch name where commit is going to be pushed
          branch: docs

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors