Skip to main content

GitHub activity

Triggergithub-activitygithub

Starts when an issue or pull request in the repositories you pick is opened, labelled, closed or merged, a review is requested, or a draft pull request is marked ready for review. GitHub is checked every few minutes.

At a glance​

PropertyValue
Trigger namegithub-activity
ResourceClusterTrigger (lumen.ai/v1alpha1)
Sourceevent
Needs a connectionyes, one that provides github
Producesfields, text
Emitsitem
Installation must providenothing

A flow using this trigger names a Connector in connectorRef. Connection types that provide github: [GitHub](/reference/connections/github).

The trigger goes under spec.triggers of a Flow. Its outputs are referenced as <triggerId>.<field>. A trigger can also carry a when condition ("Start only when") and disabled: true.

Outputs​

A later node references an output as {nodeId.field} in text, or nodeId.field in a condition.

OutputType
eventstring
repostring
numbernumber
kindstring
titlestring
bodystring
statestring
labelsarray
labelstring
authorstring
actorstring
reviewerstring
urlstring
mergedboolean
draftboolean
createdAtdate
updatedAtdate
githubConnectionstring

Settings​

Set under config: on the flow trigger.

SettingTypeDefaultDescription
reposrequiredlist of string-owner/name, such as acme/website. The token needs Issues: Read and Pull requests: Read on each.minItems 1; maxItems 20
eventslist of string-Empty is opened, labelled, closed and merged.maxItems 6
kindslist of string-Empty is both.maxItems 2
labelslist of string-Labels keeps only items carrying one of these labels (for a labelled event: the label added).maxItems 20
pollMinutesinteger5PollMinutes is how often GitHub is asked.minimum 1; maximum 60
importExistinginteger0Starts one run for each of the newest N open issues and pull requests of each repository, once, when the trigger is first switched on.minimum 0; maximum 50

The full JSON Schema of these settings: github-activity.schema.json.