 Create
Create
Create a GitHub issue.
If no authentication is provided, anonymous authentication will be used.
type: "io.kestra.plugin.github.issues.Create"Examples
Create an issue in a repository using JWT token.
id: github_issue_create_flow
namespace: company.team
tasks:
  - id: create_issue
    type: io.kestra.plugin.github.issues.Create
    jwtToken: your_github_jwt_token
    repository: kestra-io/kestra
    title: Workflow failed
    body: "{{ execution.id }} has failed on {{ taskrun.startDate }}. See the link below for more details"
    labels:
      - bug
      - workflow
Create an issue in a repository using OAuth token.
id: "create"
type: "io.kestra.plugin.github.issues.Create"
id: github_issue_create_flow
namespace: company.team
tasks:
  - id: create_issue
    type: io.kestra.plugin.github.issues.Create
    login: your_github_login
    oauthToken: your_github_token
    repository: kestra-io/kestra
    title: Workflow failed
    body: "{{ execution.id }} has failed on {{ taskrun.startDate }}. See the link below for more details"
    labels:
      - bug
      - workflow
Create an issue in a repository with assignees.
id: "create"
type: "io.kestra.plugin.github.issues.Create"
id: github_issue_create_flow
namespace: company.team
tasks:
  - id: create_issue
    type: io.kestra.plugin.github.issues.Create
    oauthToken: your_github_token
    repository: kestra-io/kestra
    title: Workflow failed
    body: "{{ execution.id }} has failed on {{ taskrun.startDate }}. See the link below for more details"
    labels:
      - bug
      - workflow
    assignees:
      - MyDeveloperUserName
      - MyDesignerUserName
Properties
assignees array
Ticket assignee.
List of unique names of assignees.
body string
Ticket body.
jwtToken string
GitHub JWT token
Does not requires additional fields to log-in
labels array
Ticket label.
List of labels for ticket.
login string
GitHub login
Requires additional field: oauthToken, to log-in
oauthToken string
GitHub oauthToken
GitHub Personal Access Token. In addition, can be used with login or by its own
repository string
GitHub repository
Repository where issue/ticket should be created. It's a string of Username + / + Repository name
title string
Ticket title.
