The Create issue action creates a new issue in a GitHub repository. The action requires the repository name and the owner name of the repository to create the issue.

Overview

The Create issue action accepts the additional inputs for issue creation including description, labels, and assignee. The action returns the ID of the issue that it creates. The action requires an active GitHub session to authenticate the request.

Important: Ensure that the Connect action is configured before proceeding with the Create issue.

Settings

The Create issue action contains the following settings:

Note: All the fields support string variables. You can create a string variable to hold the appropriate text string and select it in the applicable setting and option.
Session name
Specifies the GitHub session name that the Connect action creates. Use one of the following options to specify the session name:
  • Session name: Enter the session name as text directly or select the string variable that holds the session name text.
  • Variable: Select the GitHub session variable that the Connect action creates.
Owner name
Specifies the name of the GitHub repository owner. The owner can be an organization or a user account. You can either enter the name directly as text or select the applicable string variable.
Repository name
Specifies the name of the GitHub repository in which the action creates the issue. You can either enter the repository name directly as text or select the applicable string variable.
Title
Specifies the title of the issue. You can either enter the issue title directly as text or select the applicable string variable.
Description (optional)
Specifies the body text of the issue that serves as the issue description. You can either enter the description directly as text or select the applicable string variable.
Labels (optional)
Specifies the labels that the action adds to the created issue. You can either enter the labels directly as text or select the applicable string variable. You can add multiple labels using comma-separated values. If you are using string variables for defining multiple labels, ensure that you define the variables individually and add them in comma-separated format.
Assignees (optional)
Specifies the username of the assignee for the issue. You can either enter the assignee usernames directly as text or select the applicable string variable. You can assign the created issue to multiple users using comma-separated values. If you are using string variables for defining multiple assignees, ensure that you define the variables individually and add them in comma-separated format.
Assign output to the variable
Specifies the output variable that stores the response data. The response data contains the ID of the issue that the action creates. You can specify an existing string variable or create a new string variable using the Create variable option.