Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendMessagesInParallel ¶
func SendMessagesInParallel(ctx context.Context, sender Sender, changes []ChangeToSend) error
Types ¶
type ChangeToSend ¶
type ChangeToSend struct { Channel string // Which Slack channel to send the notification to Users []string // Users to tag in the notification Groups []string // Groups to tag in the notification ModifiedFiles []string // Files that were modified PullRequestNumber int // Only set if this is a pull request Branch string // Only set if this is a commit in a branch CommitSha string // Only set if this is not a pull request, but a commit Creator string // The user that created the pull request or commit Timestamp time.Time // The time the pull request or commit was created LinkToChange string // Link to the pull request or commit LinkToAuthor string // Link to the user that created the pull request or commit Messages []string // The message to send (Extra part of the Slack notification) }
func MergeCommon ¶
func MergeCommon(changes []ChangeToSend) []ChangeToSend
type Creator ¶
type Creator struct { NotificationMerger *notification.Merger // contains filtered or unexported fields }
func NewCreator ¶
func (*Creator) CreateChanges ¶
func (*Creator) CreateChangesForFile ¶
type SlackDestination ¶
type SlackDestination struct {
// contains filtered or unexported fields
}
func NewSlackDestination ¶
func (*SlackDestination) SendMessage ¶
func (s *SlackDestination) SendMessage(ctx context.Context, change ChangeToSend) error
Click to show internal directories.
Click to hide internal directories.