From cbcdb226704f6099765ada6d4ea1bfa4d32c29d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Sat, 1 Mar 2025 17:53:19 +0100 Subject: [PATCH] Escape HTML elements in commit messages --- .github/workflows/release.yml | 22 +++++++++++----------- cliff.toml | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3bf3cd27..61a57358 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,15 +46,15 @@ jobs: hide-archive-link: true verbose: true - # - name: Create release at GitHub - # run: | - # gh release create "$GITHUB_REF_NAME" \ - # --repo "$GITHUB_REPOSITORY" \ - # --title "Antville ${{ github.ref_name }}" \ - # --notes "${{ steps.create_release_notes.outputs.release_notes }}" + - name: Create release at GitHub + run: | + gh release create "$GITHUB_REF_NAME" \ + --repo "$GITHUB_REPOSITORY" \ + --title "Antville ${{ github.ref_name }}" \ + --notes "${{ steps.create_release_notes.outputs.release_notes }}" - # - name: Upload release assets to GitHub - # run: | - # gh release upload "$GITHUB_REF_NAME" build/distributions/ant*.* \ - # --repo "$GITHUB_REPOSITORY" \ - # --clobber + - name: Upload release assets to GitHub + run: | + gh release upload "$GITHUB_REF_NAME" build/distributions/ant*.* \ + --repo "$GITHUB_REPOSITORY" \ + --clobber diff --git a/cliff.toml b/cliff.toml index 4c90b5a0..44cdc80f 100644 --- a/cliff.toml +++ b/cliff.toml @@ -17,7 +17,7 @@ body = """ * [{{ commit.id | split(pat="") | slice(end=11) | join() }}]\ (https://code.host.antville.org/antville/antville/commit/{{ commit.id }}) \ {% if commit.breaking %}**Breaking:** {% endif %}\ - {{ commit.message | split(pat="\\n") | first | upper_first }}\ + {{ commit.message | split(pat="\\n") | first | upper_first | escape }}\ {% endfor %} {% endfor %}