Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface for machines driven by configurable goals. Goals and goal "implementations" can be defined by users.

Type parameters

Hierarchy

Index

Properties

Readonly configuration

configuration: Configuration & O

Automation client and machine configuration this machine will run in

Readonly goalFulfillmentMapper

goalFulfillmentMapper: GoalImplementationMapper

Readonly name

name: string

pushMapping

pushMapping: PushMapping<Goals>

Return the PushMapping that will be used on pushes. Useful in testing goal setting.

returns

Methods

addGoalApprovalRequestVoter

addGoalContributions

  • addGoalContributions(goalContributions: GoalSetter): this
  • (hint: prefer withPushRules)

    Add goal setting contributions that will be added into SDM goal setting. Decorates other goal setting behavior.

    For example, always do fingerprints: sdm.addGoalContributions(onAnyPush().setGoals(FingerprintGoal))

    Or, sometimes do a custom local deploy goal: sdm.addGoalContributions( whenPushSatisfies(IsSdm, IsInLocalMode).setGoals( new Goals("delivery", LocalSdmDelivery)));

    Parameters

    • goalContributions: GoalSetter

      contributions to goals

    Returns this

setGoalApprovalRequestVoteDecisionManager

withPushRules

Generated using TypeDoc