github.com/goreleaser/goreleaser@v1.25.1/www/docs/customization/announce/mattermost.md (about)

     1  # Mattermost
     2  
     3  For it to work, you'll need to [create a new Incoming Webhook](https://docs.mattermost.com/developer/webhooks-incoming.html) in your own Mattermost deployment, and set some
     4  environment variables on your pipeline:
     5  
     6  - `MATTERMOST_WEBHOOK`
     7  
     8  Then, you can add something like the following to your `.goreleaser.yaml` config:
     9  
    10  ```yaml
    11  # .goreleaser.yaml
    12  announce:
    13    mattermost:
    14      # Whether its enabled or not.
    15      enabled: true
    16  
    17      # Title to use while publishing.
    18      #
    19      # Default: '{{ .ProjectName }} {{ .Tag }} is out!'
    20      # Templates: allowed
    21      title_template: 'GoReleaser {{ .Tag }} was just released!'
    22  
    23      # Message to use while publishing.
    24      #
    25      # Default: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
    26      # Templates: allowed
    27      message_template: 'Awesome project {{.Tag}} is out!'
    28  
    29      # Color code of the message. You have to use hexadecimal.
    30      # Default: '#2D313E' (the grey-ish from GoReleaser)
    31      color: ''
    32  
    33      # The name of the channel that the user selected as a destination for webhook messages.
    34      channel: '#channel'
    35  
    36      # Set your Webhook's user name.
    37      username: ''
    38  
    39      # Emoji to use as the icon for this message. Overrides icon_url.
    40      icon_emoji: ''
    41  
    42      # URL to an image to use as the icon for this message.
    43      icon_url: ''
    44  ```
    45  
    46  !!! tip
    47      Learn more about the [name template engine](/customization/templates/).