await dynamicOnIssueOpenedTrigger.register(`${owner}/${repo}`, {
  owner,
  repo,
});

Parameters

id
string
required
The id of the registration. The identifier you use will be available in the context.source.id when the Job runs. It will also be used to unregister.
params
Object
required
The shape of this object will depend on the type of event you set when constructing the DynamicTrigger.
options
object

Returns

id
string
The id of the schedule that was registered.
await dynamicOnIssueOpenedTrigger.register(`${owner}/${repo}`, {
  owner,
  repo,
});