1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-11-06 09:09:29 +02:00

feat: announce: teams (#2482)

Signed-off-by: Engin Diri <engin.diri@mail.schwarz>
This commit is contained in:
Engin Diri
2021-09-13 00:57:58 +02:00
committed by GitHub
parent 35bb673049
commit 1c44c2149d
9 changed files with 204 additions and 1 deletions

View File

@@ -695,6 +695,7 @@ type Announce struct {
Reddit Reddit `yaml:"reddit,omitempty"`
Slack Slack `yaml:"slack,omitempty"`
Discord Discord `yaml:"discord,omitempty"`
Teams Teams `yaml:"teams,omitempty"`
}
type Twitter struct {
@@ -728,6 +729,14 @@ type Discord struct {
IconURL string `yaml:"icon_url,omitempty"`
}
type Teams struct {
Enabled bool `yaml:"enabled,omitempty"`
TitleTemplate string `yaml:"title_template,omitempty"`
MessageTemplate string `yaml:"message_template,omitempty"`
Color string `yaml:"color,omitempty"`
IconURL string `yaml:"icon_url,omitempty"`
}
// Load config file.
func Load(file string) (config Project, err error) {
f, err := os.Open(file) // #nosec

View File

@@ -5,6 +5,8 @@ package defaults
import (
"fmt"
"github.com/goreleaser/goreleaser/internal/pipe/teams"
"github.com/goreleaser/goreleaser/internal/pipe/archive"
"github.com/goreleaser/goreleaser/internal/pipe/artifactory"
"github.com/goreleaser/goreleaser/internal/pipe/blob"
@@ -60,6 +62,7 @@ var Defaulters = []Defaulter{
brew.Pipe{},
scoop.Pipe{},
discord.Pipe{},
teams.Pipe{},
reddit.Pipe{},
slack.Pipe{},
twitter.Pipe{},