Move date conversion into a DateTransformer, and expand dates behind TRANSFORM_DATES #2317
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check Changelog | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, labeled, unlabeled] | |
| merge_group: | |
| jobs: | |
| check: | |
| name: Changelog entry | |
| if: >- | |
| github.event_name == 'pull_request' && | |
| github.actor != 'dependabot[bot]' && | |
| !startsWith(github.head_ref, 'release/v') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check changelog entry | |
| id: changelog_check | |
| uses: scientific-python/action-towncrier-changelog@v2.0.0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| BOT_USERNAME: changelog-bot | |
| - name: Show instructions on failure | |
| if: failure() && steps.changelog_check.outcome == 'failure' | |
| run: | | |
| cat << EOF | |
| ───────────────────────────────────────────────────────────── | |
| Missing changelog entry! | |
| Add a file: changelog/${{ github.event.pull_request.number }}.<category>.md | |
| Categories: breaking, added, changed, fixed, deprecated | |
| Example: | |
| towncrier create ${{ github.event.pull_request.number }}.added.md --content "Your change description" | |
| Or request the "no changelog needed" label from a maintainer. | |
| See changelog/README.md for details. | |
| ───────────────────────────────────────────────────────────── | |
| EOF | |
| exit 1 |