GitHub App icon

GitHub App

Consume GitHub API using GitHub App authentication

Issue → Create Comment

AI-generated

Overview

This node operation creates a new comment on a specified GitHub issue within a repository. It is useful for automating issue tracking and communication workflows by programmatically adding comments to issues. For example, it can be used to post updates, feedback, or automated responses to issues in a GitHub repository.

Use Case Examples

  1. Automatically add a comment to a GitHub issue when a related event occurs in another system.
  2. Post a status update or resolution note to an issue after a workflow completes.

Properties

Name Meaning
Repository Owner The owner of the GitHub repository where the issue exists. This can be selected from a list, provided as a URL, or entered by name.
Repository Name The name of the GitHub repository containing the issue. This can be selected from a list, provided as a URL, or entered by name.
Issue Number The number identifier of the issue on which to create the comment.
Body The text content of the comment to be created on the issue.

Output

JSON

  • id - The unique identifier of the created comment.
  • body - The content body of the created comment.
  • user
    • login - The username of the user who created the comment.
  • created_at - The timestamp when the comment was created.
  • updated_at - The timestamp when the comment was last updated.

Dependencies

  • GitHub API access via GitHub App authentication

Troubleshooting

  • Ensure the repository owner and repository name are correctly specified and accessible with the provided credentials.
  • Verify that the issue number exists in the specified repository.
  • Check that the GitHub App credentials have permission to create comments on issues.
  • Common error: 'The issue to create comment on does not exist' - verify issue number and repository details.
  • Common error: 'Authentication failed' - check GitHub App credentials and permissions.

Links

Discussion