Structure
Notifier
Sends build notifications to Slack, Teams, Discord, and custom webhooks.
struct NotifierUsage
let notifier = Notifier()
let payload = SlackPayload(text: "Build succeeded!", channel: "#releases")
try await notifier.sendSlack(payload: payload, to: "https://hooks.slack.com/services/...")Topics
Initializers
init(session: URLSession)Creates a
Notifier.
Instance Methods
func sendSlack(payload: SlackPayload, to: String) async throwsSends a Slack message via an incoming webhook URL.
func sendWebhook(payload: JSONValue, to: String) async throwsSends a JSON payload to a custom webhook URL.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype