GitHub Issues icon

GitHub Issues

Consume issues from the GitHub API

Actions4

Issue → Create

AI-generated

Overview

This node allows users to create issues in GitHub repositories via the GitHub API. It is useful for automating issue tracking and management workflows, such as creating bug reports, feature requests, or task assignments directly from n8n workflows. For example, it can be used to automatically open an issue when an error occurs in an application or to log feedback from a form submission.

Use Case Examples

  1. Create a new issue in a specified GitHub repository with a title and optional body text.
  2. Add labels to the created issue to categorize or prioritize it.

Properties

Name Meaning
Authentication Method used to authenticate with GitHub API, either Access Token or OAuth2.
Repository Owner The owner of the GitHub repository where the issue will be created. Can be selected from a list, provided as a URL, or entered by name.
Repository Name The name of the GitHub repository where the issue will be created. Can be selected from a list, provided as a URL, or entered by name.
Title The title of the issue to be created.
Body The body content or description of the issue.
Labels Labels to add to the issue for categorization or filtering. Multiple labels can be added.
Request Options Advanced HTTP request options such as batching, SSL certificate validation, proxy settings, and timeout configuration.

Output

JSON

  • id - The unique identifier of the created issue.
  • number - The issue number within the repository.
  • title - The title of the created issue.
  • body - The body content of the created issue.
  • labels - An array of labels assigned to the issue.
  • state - The current state of the issue (e.g., open, closed).
  • url - The URL link to the created issue on GitHub.

Dependencies

  • GitHub API

Troubleshooting

  • Authentication errors due to invalid or expired tokens. Ensure the provided access token or OAuth2 credentials are valid and have the necessary permissions to create issues.
  • Invalid repository owner or name input. Verify the owner and repository fields are correctly specified, either by selecting from the list or providing valid GitHub URLs or names.
  • API rate limits exceeded. GitHub imposes rate limits on API usage; consider using authentication and batching options to manage request volume.
  • SSL certificate validation issues if using self-signed certificates or proxies. Use the 'Ignore SSL Issues' option cautiously if encountering SSL errors.

Links

Discussion