1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-07 13:31:37 +02:00

fix(telegram): mdv2escape ProjectName by default (#4784)

This pull request fix case when ProjectName contains any not escaped
symbols
This commit is contained in:
Stepan Rabotkin 2024-04-15 13:57:45 +03:00 committed by GitHub
parent 60a1cccf57
commit 56e0f79473
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import (
)
const (
defaultMessageTemplate = `{{ .ProjectName }} {{ mdv2escape .Tag }} is out! Check it out at {{ mdv2escape .ReleaseURL }}`
defaultMessageTemplate = `{{ mdv2escape .ProjectName }} {{ mdv2escape .Tag }} is out! Check it out at {{ mdv2escape .ReleaseURL }}`
parseModeHTML = "HTML"
parseModeMarkdown = "MarkdownV2"
)

View File

@ -25,7 +25,7 @@ announce:
# Message template to use while publishing.
#
# Default: '{{ .ProjectName }} {{ mdv2escape .Tag }} is out! Check it out at {{ mdv2escape .ReleaseURL }}'
# Default: '{{ mdv2escape .ProjectName }} {{ mdv2escape .Tag }} is out! Check it out at {{ mdv2escape .ReleaseURL }}'
# Templates: allowed
message_template: 'Awesome project {{.Tag}} is out!'