const dynamicOnIssueOpenedTrigger = client.defineDynamicTrigger({
  id: "github-issue-opened",
  event: events.onIssueOpened,
  source: github.sources.repo,
});

Parameters

options
DynamicTriggerOptions
required

The options for the dynamic trigger.

id
string
required

Used to uniquely identify a DynamicTrigger

event
event
required

An event from an Integration package that you want to attach to the DynamicTrigger. The event types will come through to the payload in your Job’s run.

source
source
required

An external source fron an Integration package

Returns

DynamicTrigger instance
DynamicTrigger

Was this page helpful?