From 73bcdcce115d0ca599f45ca484e927a42c71ae41 Mon Sep 17 00:00:00 2001 From: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com> Date: Mon, 24 Jul 2023 14:56:45 +0100 Subject: [PATCH] Towncrier: run draft build as part of fast tests --- .github/workflows/test_fast.yml | 4 ++++ pyproject.toml | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_fast.yml b/.github/workflows/test_fast.yml index c4fc5c3308c..6cc1ebb6c14 100644 --- a/.github/workflows/test_fast.yml +++ b/.github/workflows/test_fast.yml @@ -48,6 +48,10 @@ jobs: - name: Configure git # Needed by the odd test uses: cylc/release-actions/configure-git@v1 + - name: Check changelog + if: startsWith(matrix.os, 'ubuntu') + run: towncrier build --draft + - name: Style if: startsWith(matrix.os, 'ubuntu') run: | diff --git a/pyproject.toml b/pyproject.toml index 6ceb7a1543a..6bbfe0507a1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,13 +11,13 @@ issue_format = "[#{issue}](https://github.com/cylc/cylc-flow/pull/{issue})" # These changelog sections will be shown in the defined order: [[tool.towncrier.type]] directory = "break" # NB this is just the filename not directory e.g. 123.break.md -name = "Breaking Changes" +name = "⚠ Breaking Changes" showcontent = true [[tool.towncrier.type]] directory = "feat" -name = "Enhancements" +name = "🚀 Enhancements" showcontent = true [[tool.towncrier.type]] directory = "fix" -name = "Fixes" +name = "🔧 Fixes" showcontent = true