Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/check-changelog-entry.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# Fails if changelog_entry.yaml is empty or contains only whitespace
if [ ! -s changelog_entry.yaml ] || ! grep -q '[^[:space:]]' changelog_entry.yaml; then
echo "changelog_entry.yaml is empty. Please add a changelog entry before merging."
exit 1
fi
14 changes: 14 additions & 0 deletions .github/workflows/pr_changelog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Changelog entry
on:
pull_request:
branches: [main]

jobs:
require-entry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Ensure changelog entry exists
run: .github/check-changelog-entry.sh