Open a GitHub issue
Step
github-create-issuesaveside effectsOpens an issue in a repository, with its labels and assignees. Needs the token permission Issues Read and write.
At a glance
| Property | Value |
|---|---|
| Step name | github-create-issue |
| Resource | ClusterStep (lumen.ai/v1alpha1) |
| Palette group, category | save, github |
| Credits | 0.5 credits each time it succeeds |
| Side effects | yes It changes something outside Lumen, so a retry asks first and a test shows what it would do instead of doing it. |
| Installation must provide | nothing |
Inputs
| Property | Value |
|---|---|
| Needs | nothing |
| Produces | fields |
| Works on | item one document at a time |
Needs and Produces are data types (file, text, fields, email). The editor offers a step only where what it needs is already on the path. See Documents and data.
Outputs
A later node references an output as {nodeId.field} in text, or nodeId.field in a condition.
| Output | Type |
|---|---|
repo | string |
number | number |
url | string |
Settings
Set under config: on the flow node. Text settings may contain {nodeId.field} placeholders.
| Setting | Type | Default | Description |
|---|---|---|---|
connectorRef | string | - | GitHub connectionminLength 1 |
reporequired | string | - | owner/name, such as acme/website. Needs the token permission Issues: Read and write.minLength 1; maxLength 200 |
titlerequired | string | - | TitleminLength 1; maxLength 256 |
body | string | - | Markdown.maxLength 60000 |
labels | list of string | - | LabelsmaxItems 20 |
assignees | list of string | - | Assignees (GitHub users)maxItems 10 |
The full JSON Schema of these settings: github-create-issue.schema.json.
Example
File a bug from a support email
config
body: |-
Reported by email:
> {message}
labels:
- bug
- from-support
repo: acme/website
title: Checkout fails for {customer}
Use it in a flow
A node that runs github-create-issue goes under spec.nodes of a Flow. Give it any id, and list the next node ids in next.
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}
Was this page helpful?