Saltar al contenido principal

GitHub activity

Disparadorgithub-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.

De un vistazo​

PropiedadValor
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.

Salidas​

Un nodo posterior se refiere a una salida como {nodeId.field} en un texto, o nodeId.field en una condición.

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

Ajustes​

Se definen bajo config: en el disparador del flujo.

AjusteTipoValor por defectoDescripción
reposobligatoriolist 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

El JSON Schema completo de estos ajustes: github-activity.schema.json.