Skip to content

Release Notes Check #1567

Release Notes Check

Release Notes Check #1567

name: Release Notes Check
on:
merge_group:
pull_request:
types:
# On by default if you specify no types.
- "opened"
- "reopened"
- "synchronize"
# For `skip-label` only.
- "labeled"
- "unlabeled"
jobs:
check-release-notes:
name: Check release notes are updated
runs-on: ubuntu-slim
permissions:
# Read pull request metadata to evaluate labels and changed files.
pull-requests: read
steps:
- name: Check for a release notes update
if: github.event_name == 'pull_request'
uses: brettcannon/check-for-changed-files@d85c64d17b3c1d0ac57c9cc46ea39399b0d6fa71 # v1.2.2
with:
file-pattern: "RELEASE_NOTES.md"
prereq-pattern: "src/**"
skip-label: "cmd:skip-release-notes"
failure-message: "Missing a release notes update. Please add one or apply the ${skip-label} label to the pull request"