Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateReleaseNotes ¶
GenerateReleaseNotes creates a string from release notes that conforms with the Slack formatting. Expected format can be found in testdata.
Types ¶
type Block ¶
type Block struct { Type string `json:"type"` Section content `json:"text,omitempty"` Elements []content `json:"elements,omitempty"` }
Block holds the different blocks uses in the Slack block API Hmm... omitempty doesn't omit zero structs https://github.com/golang/go/issues/11939
type GitRemoter ¶
type Slack ¶
type Slack struct {
WebHookURL string
}
Slack is the struct holding all the methods to work with the Slack integration.
func (*Slack) Publish ¶
Publish pushes the release notes to Slack via provided Webhook. https://api.slack.com/reference/messaging/payload
type WebhookMessage ¶
type WebhookMessage struct {
Blocks []Block `json:"blocks"`
}
WebhookMessage is the specific structure that Slack uses for the Webhook API
Click to show internal directories.
Click to hide internal directories.