You've already forked goreleaser
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:
@@ -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
|
||||
|
||||
@@ -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{},
|
||||
|
||||
Reference in New Issue
Block a user