DynamicTrigger
DynamicTrigger: Constructor
The DynamicTrigger()
constructor creates a new DynamicTrigger instance.
Parameters
clientrequired
TriggerClient
The TriggerClient
instance to use for registering the trigger.
optionsrequired
DynamicTriggerOptions
The options for the dynamic trigger.
idrequired
string
Used to uniquely identify a DynamicTrigger
eventrequired
event
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.
sourcerequired
source
An external source fron an Integration package
Returns
DynamicTrigger instance
DynamicTrigger
const dynamicOnIssueOpenedTrigger = new DynamicTrigger(client, {
id: "github-issue-opened",
event: events.onIssueOpened,
source: github.sources.repo,
});
Was this page helpful?
const dynamicOnIssueOpenedTrigger = new DynamicTrigger(client, {
id: "github-issue-opened",
event: events.onIssueOpened,
source: github.sources.repo,
});