Escape HTML elements in commit messages

This commit is contained in:
Tobi Schäfer 2025-03-01 17:53:19 +01:00
parent babf14a8d2
commit cbcdb22670
Signed by: tobi
GPG key ID: 91FAE6FE2EBAC4C8
2 changed files with 12 additions and 12 deletions

View file

@ -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

View file

@ -17,7 +17,7 @@ body = """
* [<tt>{{ commit.id | split(pat="") | slice(end=11) | join() }}</tt>]\
(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 %}