The "changelog-check" action is a composite action that can be used to validate the existence and format of changelog snippets.
Add the following workflow to .github/workflows/changelog.yml
in your repository.
name: "Changelog Check"
on:
pull_request:
types:
- "opened"
- "synchronize"
- "reopened"
- "edited"
jobs:
test:
name: "Check"
runs-on: "ubuntu-latest"
steps:
- uses: "Graylog2/actions/changelog-check@main"
with:
gh-token: "${{ secrets.GITHUB_TOKEN }}"
gh-token
: A GitHub token that allows access to the REST API for the repository. (e.g.,secrets.GITHUB_TOKEN
)