Saltar al contenido principal

Comment on GitHub

Pasogithub-commentnotifyefectos externos

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.

De un vistazo​

PropiedadValor
Nombre del pasogithub-comment
RecursoClusterStep (lumen.ai/v1alpha1)
Grupo de la paleta, categoríanotify, github
Créditos0.5 créditos cada vez que tiene éxito
Efectos externossí Cambia algo fuera de Lumen, así que un reintento pregunta antes y una prueba muestra lo que haría en lugar de hacerlo.
La instalación debe aportarnada

Entradas​

PropiedadValor
Necesitanada
Producefields
Trabaja sobreitem un documento cada vez

Necesita y Produce son tipos de datos (file, text, fields, email). El editor ofrece un paso solo donde lo que necesita ya está en el camino. Consulta Documentos y datos.

Salidas​

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

SalidaTipo
repostring
numbernumber
commentIdstring
commentUrlstring

Ajustes​

Se definen bajo config: en el nodo del flujo. Los ajustes de texto pueden contener marcadores de posición como {nodeId.field}.

AjusteTipoValor por defectoDescripción
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
bodyobligatoriostring-Markdown. Needs the token permission Issues (or Pull requests): Read and write.minLength 1; maxLength 60000

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

Ejemplo​

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

Úsalo en un flujo​

Un nodo que ejecuta github-comment va bajo spec.nodes de un Flow. Dale cualquier id y enumera en next los ids de los nodos siguientes.

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.