WardrikSlack.Notices (wardrik_slack v0.1.0-rc.1)

Copy Markdown

Lays out a Wardrik.Notice as one Slack message.

NoticeMessage
:parkedthe waiting calls, with Approve and Deny, naming the approvers
:failedwhy it failed
:finishedthe answer, under the agent's name

The agent is named without its owner, as triage. See WardrikSlack.Rooms.shown/2.

Summary

Functions

Returns the message for notice. agent is the name to show; approvers are asked about a parked turn.

Functions

message(notice, approvers, agent)

@spec message(Wardrik.Notice.t(), [String.t()], String.t()) :: %{
  text: String.t(),
  blocks: [map()]
}

Returns the message for notice. agent is the name to show; approvers are asked about a parked turn.