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

Parameters

client
TriggerClient
required

The TriggerClient instance to use for registering the trigger.

options
DynamicTriggerOptions
required

The options for the dynamic trigger.

Returns

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