List GitHub pull requests
github-list-pullsreadLists a repository's pull requests, newest first, up to 100. Needs the token permission Pull requests Read.
Auf einen Blick
| Eigenschaft | Wert |
|---|---|
| Schrittname | github-list-pulls |
| Ressource | ClusterStep (lumen.ai/v1alpha1) |
| Palettengruppe, Kategorie | read, github |
| Credits | 0.2 Credits bei jedem Erfolg |
| Externe Wirkung | nein |
| 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.
Ausgaben
Ein späterer Knoten verweist auf eine Ausgabe als {nodeId.field} in einem Text oder als nodeId.field in einer Bedingung.
| Ausgabe | Typ |
|---|---|
pulls | array |
count | number |
truncated | boolean |
Einstellungen
Wird unter config: im Knoten des Flows gesetzt. Texteinstellungen dürfen Platzhalter wie {nodeId.field} enthalten.
| Einstellung | Typ | Standardwert | Beschreibung |
|---|---|---|---|
connectorRef | string | - | GitHub connectionminLength 1 |
repoerforderlich | string | - | owner/name, such as acme/website.minLength 1; maxLength 200 |
state | string | "open" | Whichone of open, closed, all |
max | integer | 20 | Max caps the pull requests returned: 1 to 100, default 20.minimum 1; maximum 100 |
Das vollständige JSON Schema dieser Einstellungen: github-list-pulls.schema.json.
Beispiel
max: 10
repo: acme/website
state: open
Im Flow verwenden
Ein Knoten, der github-list-pulls 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.
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: github-list-pulls-example
namespace: tenant-acme
spec:
displayName: "List GitHub pull requests"
triggers:
- id: start
ref: {name: manual-run}
next: [github-list-pulls]
nodes:
- id: github-list-pulls
stepRef: {name: github-list-pulls}
config:
max: 10
repo: acme/website
state: open