Skip to content
check

GitHub Action

Changelog Reminder

v1.3.0 Latest version

Changelog Reminder

check

Changelog Reminder

If there is not a changelog in the PR add a comment to remind the committer

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Changelog Reminder

uses: peterjgrainger/[email protected]

Learn more about this action in peterjgrainger/action-changelog-reminder

Choose a version

GitHub action to add a changelog reminder

After installation this action will check that the files in a pull request contain a changelog. If the changelog is not present, the action will create the comment:

changelog_comment

The test for changelog defaults to the regex /change_log\/.*\/*.yml

  • change_log/next/RU-3456.yml
  • changelog/RU-3456.yml

But you can supply your regex for changelogs (see example below)

Installation

To configure the action simply add the following lines to your .github/workflows/rebase.yml workflow file:

on: pull_request
name: Changelog Reminder
jobs:
  remind:
    name: Changelog Reminder
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Changelog Reminder
      uses: peterjgrainger/[email protected]
      with:
        changelog_regex: '/change_log\/.*\/*.yml'
        customPrMessage: 'You broke regulation TO-67!'
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}