Instance methods
defineDynamicTrigger()
Define a Dynamic Trigger
const dynamicOnIssueOpenedTrigger = client.defineDynamicTrigger({
id: "github-issue-opened",
event: events.onIssueOpened,
source: github.sources.repo,
});
Parameters
options
DynamicTriggerOptions
requiredThe options for the dynamic trigger.
id
string
requiredUsed to uniquely identify a DynamicTrigger
event
event
requiredAn 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
requiredAn external source fron an Integration package
Returns
DynamicTrigger instance
DynamicTrigger
Was this page helpful?
const dynamicOnIssueOpenedTrigger = client.defineDynamicTrigger({
id: "github-issue-opened",
event: events.onIssueOpened,
source: github.sources.repo,
});