# Open a GitHub issue

> Opens an issue in a repository, with its labels and assignees. Needs the token permission Issues Read and write.

Source: https://docs.go-lumen.ai/de/reference/steps/github-create-issue

## Auf einen Blick

| Eigenschaft | Wert |
| --- | --- |
| **Schrittname** | `github-create-issue` |
| **Ressource** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Palettengruppe, Kategorie** | save, github |
| **Credits** | **0.5** Credits bei jedem Erfolg |
| **Externe Wirkung** | ja: Er ändert etwas außerhalb von Lumen, deshalb fragt ein Wiederholungsversuch vorher nach, und ein Test zeigt, was er tun würde, statt es zu tun. |
| **Die Installation muss bereitstellen** | nichts |

## Eingaben

| Eigenschaft | Wert |
| --- | --- |
| **Braucht** | nichts |
| **Liefert** | `fields` |
| **Arbeitet auf** | item: einem Dokument nach dem anderen |

Braucht und Liefert sind Datentypen (file, text, fields, email). Der Editor bietet einen Schritt nur dort an, wo das, was er braucht, schon auf dem Pfad liegt. Siehe [Dokumente und Daten](https://docs.go-lumen.ai/de/concepts/how-flows-run.md#documents-and-data).

## Ausgaben

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

| Ausgabe | Typ |
| --- | --- |
| `repo` | string |
| `number` | number |
| `url` | string |

## Einstellungen

Wird unter `config:` im Knoten des Flows gesetzt. Texteinstellungen dürfen Platzhalter wie `{nodeId.field}` enthalten.

| Einstellung | Typ | Standardwert | Beschreibung |
| --- | --- | --- | --- |
| `connectorRef` | string |  | GitHub connection (minLength 1) |
| `repo` (erforderlich) | string |  | owner/name, such as acme/website. Needs the token permission Issues: Read and write. (minLength 1; maxLength 200) |
| `title` (erforderlich) | string |  | Title (minLength 1; maxLength 256) |
| `body` | string |  | Markdown. (maxLength 60000) |
| `labels` | list of string |  | Labels (maxItems 20) |
| `assignees` | list of string |  | Assignees (GitHub users) (maxItems 10) |

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

## Beispiel

```yaml title="config"
body: |-
  Reported by email:

  > {message}
labels:
- bug
- from-support
repo: acme/website
title: Checkout fails for {customer}
```

## Im Flow verwenden

Ein Knoten, der `github-create-issue` ausführt, steht unter `spec.nodes` eines [Flow](https://docs.go-lumen.ai/de/concepts/how-flows-run.md#the-flow-as-yaml). Geben Sie ihm eine beliebige id und nennen Sie in next die ids der nächsten Knoten.

```yaml title="flow.yaml"
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
  name: github-create-issue-example
  namespace: tenant-acme
spec:
  displayName: "Open a GitHub issue"
  triggers:
    - id: start
      ref: {name: manual-run}
      next: [github-create-issue]
  nodes:
    - id: github-create-issue
      stepRef: {name: github-create-issue}
      config:
        body: |-
          Reported by email:

          > {message}
        labels:
        - bug
        - from-support
        repo: acme/website
        title: Checkout fails for {customer}
```
