Skip to content

Fix Union MRO inheritance causing RecursionError #66

Fix Union MRO inheritance causing RecursionError

Fix Union MRO inheritance causing RecursionError #66

Workflow file for this run

# This workflow will run on every pull request to the develop branch to assert
# that a new changelog entry has been added unless a "no changelog" label is present.
name: "Changelog"
on:
pull_request_target: { branches: [ "develop" ] }
jobs:
assert-new-changelog-entries:
name: "At least one new changelog entry must be added"
runs-on: ubuntu-latest
if: github.base_ref != '' && !contains(github.event.pull_request.labels.*.name, 'no changelog')
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Check for changelog changes
run: |
if git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -q '^\.changelog/_unreleased\.toml$'; then
echo "Changelog entry found."
else
echo "::error::No changelog entry found. Please add entries to .changelog/_unreleased.toml or add the 'no changelog' label."
exit 1
fi