# GitHub activity

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

Source: https://docs.go-lumen.ai/de/reference/triggers/github-activity

## Auf einen Blick

| Eigenschaft | Wert |
| --- | --- |
| **Trigger name** | `github-activity` |
| **Resource** | ClusterTrigger (`lumen.ai/v1alpha1`) |
| **Source** | event |
| **Needs a connection** | yes, one that provides `github` |
| **Produces** | `fields`, `text` |
| **Emits** | item |
| **Installation must provide** | nothing |

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

## Ausgaben

Ein späterer Knoten verweist auf eine Ausgabe als `{nodeId.field}` in einem Text oder als `nodeId.field` in einer Bedingung.

| Ausgabe | Typ |
| --- | --- |
| `event` | string |
| `repo` | string |
| `number` | number |
| `kind` | string |
| `title` | string |
| `body` | string |
| `state` | string |
| `labels` | array |
| `label` | string |
| `author` | string |
| `actor` | string |
| `reviewer` | string |
| `url` | string |
| `merged` | boolean |
| `draft` | boolean |
| `createdAt` | date |
| `updatedAt` | date |
| `githubConnection` | string |

## Einstellungen

Wird unter `config:` im Auslöser des Flows gesetzt.

| Einstellung | Typ | Standardwert | Beschreibung |
| --- | --- | --- | --- |
| `repos` (erforderlich) | list of string |  | owner/name, such as acme/website. The token needs Issues: Read and Pull requests: Read on each. (minItems 1; maxItems 20) |
| `events` | list of string |  | Empty is opened, labelled, closed and merged. (maxItems 6) |
| `kinds` | list of string |  | Empty is both. (maxItems 2) |
| `labels` | list of string |  | Labels keeps only items carrying one of these labels (for a labelled event: the label added). (maxItems 20) |
| `pollMinutes` | integer | `5` | PollMinutes is how often GitHub is asked. (minimum 1; maximum 60) |
| `importExisting` | integer | `0` | Starts 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) |

Das vollständige JSON Schema dieser Einstellungen: [github-activity.schema.json](https://docs.go-lumen.ai/schemas/triggers/github-activity.schema.json).
