Skip to content

@usine/config/trigger

Watches issues and selects matching payloads with the Loop’s if expression.

  • Schema.Class

new IssueTrigger(…args): IssueTrigger

Parameter Type
…args [props: object, options?: MakeOptions]

IssueTrigger

readonly if: string & Brand<"ExpressionSource">

readonly on: "issue"


Watches pull requests and selects matching payloads with the Loop’s if expression.

  • Schema.Class

new PullRequestTrigger(…args): PullRequestTrigger

Parameter Type
…args [props: object, options?: MakeOptions]

PullRequestTrigger

readonly if: string & Brand<"ExpressionSource">

readonly on: "pr"


Fires per selected repository on a schedule, catching up only the latest missed Tick after downtime.

  • Schema.Class

new ScheduleTrigger(…args): ScheduleTrigger

Parameter Type
…args [props: object, options?: MakeOptions]

ScheduleTrigger

readonly cron: string & Brand<"Cron">

readonly if: string & Brand<"ExpressionSource">

readonly on: "schedule"

readonly tz: string & Brand<"TimeZone">

Cron = typeof Cron.Type

A five-field schedule evaluated in the trigger’s time zone.


Stream = Trigger["on"]

The class of state a Loop watches: issues, pull requests, or scheduled Ticks.


TimeZone = typeof TimeZone.Type

The IANA time zone whose local clock defines a schedule’s firing times.


Trigger = typeof Trigger.Type

The standing Item condition or schedule that produces Events for a Loop.

const Cron: Schema.brand<Schema.String, "Cron">

A five-field schedule evaluated in the trigger’s time zone.


const TimeZone: Schema.brand<Schema.String, "TimeZone">

The IANA time zone whose local clock defines a schedule’s firing times.


const Trigger: Schema.Union<readonly [typeof IssueTrigger, typeof PullRequestTrigger, typeof ScheduleTrigger]>

The standing Item condition or schedule that produces Events for a Loop.