Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "pack/notification/notification"

Index

Type aliases

DestinationFactory

DestinationFactory: function

Factory to create message destinations for goal notifications

Type declaration

    • (goal: SdmGoalEvent, context: SdmContext): Promise<Destination | Destination[] | undefined>
    • Parameters

      • goal: SdmGoalEvent
      • context: SdmContext

      Returns Promise<Destination | Destination[] | undefined>

NotificationFactory

NotificationFactory: function

Factory to create notification messages

Type declaration

    • (gi: GoalCompletionListenerInvocation): Promise<object>
    • Parameters

      • gi: GoalCompletionListenerInvocation

      Returns Promise<object>

Functions

defaultDestinationFactory

  • defaultDestinationFactory(goal: SdmGoalEvent): Promise<Destination | Destination[] | undefined>
  • Default DestinationFactory that would send every commit author a direct message in Slack / MS Teams.

    Parameters

    • goal: SdmGoalEvent

    Returns Promise<Destination | Destination[] | undefined>

defaultNotificationFactory

  • defaultNotificationFactory(updateGoalCommand: CommandHandlerRegistration): NotificationFactory

notificationSupport

  • Extension pack to send notifications on certain conditions. Recipients and notification messages can be customized by providing options with DestinationFactory and NotificationFactory.

    Parameters

    Returns ExtensionPack

notifyGoalCompletionListener

truncateCommitMessage

  • truncateCommitMessage(message: string): string

Generated using TypeDoc