You've already forked goreleaser
							
							
				mirror of
				https://github.com/goreleaser/goreleaser.git
				synced 2025-10-30 23:58:09 +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:
		| @@ -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" | ||||
| ) | ||||
|   | ||||
| @@ -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!' | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user