Skip to content

DynamoDB Enhanced - support for custom AttributeConverters and StringConverters to be used in collections #230

DynamoDB Enhanced - support for custom AttributeConverters and StringConverters to be used in collections

DynamoDB Enhanced - support for custom AttributeConverters and StringConverters to be used in collections #230

name: Changelog verification
permissions:
contents: read
pull-requests: read
on:
pull_request:
types: [ opened, synchronize, reopened, labeled, unlabeled ]
branches:
- master
jobs:
changelog-verification:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for changelog entry
if: ${{ !contains(github.event.pull_request.labels.*.name, 'changelog-not-required') }}
run: |
git fetch origin ${{ github.base_ref }} --depth 1 && \
git diff remotes/origin/${{ github.base_ref }} --name-only | grep -P "\.changes/next-release/*[a-zA-Z0-9_-]+\.json"
- name: Error message
if: ${{ failure() }}
run: |
echo "::error ::No new/updated changelog entry found in /.changes/next-release directory. Please either:"
echo "::error ::* Add a changelog entry (see CONTRIBUTING.md for instructions) –or–"
echo "::error ::* Add the 'changelog-not-required' label to this PR (in rare cases not warranting a changelog entry)"
exit 1