Zum Hauptinhalt springen

Comment on GitHub

Schrittgithub-commentnotifyexterne Wirkung

Comments on an issue or pull request. A step run again does not comment twice. Needs the token permission Issues (or Pull requests) Read and write.

Auf einen Blick​

EigenschaftWert
Schrittnamegithub-comment
RessourceClusterStep (lumen.ai/v1alpha1)
Palettengruppe, Kategorienotify, github
Credits0.5 Credits bei jedem Erfolg
Externe Wirkungja 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 bereitstellennichts

Eingaben​

EigenschaftWert
Brauchtnichts
Liefertfields
Arbeitet aufitem 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.

Ausgaben​

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

AusgabeTyp
repostring
numbernumber
commentIdstring
commentUrlstring

Einstellungen​

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

EinstellungTypStandardwertBeschreibung
connectorRefstring-GitHub connectionminLength 1
repostring-owner/name, such as acme/website. Empty is the repository the flow started from.maxLength 200
numberstring-Empty is the one the flow started from.maxLength 100
bodyerforderlichstring-Markdown. Needs the token permission Issues (or Pull requests): Read and write.minLength 1; maxLength 60000

Das vollständige JSON Schema dieser Einstellungen: github-comment.schema.json.

Beispiel​

config
body: Thanks @{author}, we will look at this today.

Im Flow verwenden​

Ein Knoten, der github-comment ausführt, steht unter spec.nodes eines Flow. Geben Sie ihm eine beliebige id und nennen Sie in next die ids der nächsten Knoten.

flow.yaml
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: github-comment-example
namespace: tenant-acme
spec:
displayName: "Comment on GitHub"
triggers:
- id: start
ref: {name: manual-run}
next: [github-comment]
nodes:
- id: github-comment
stepRef: {name: github-comment}
config:
body: Thanks @{author}, we will look at this today.