v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
issue

Add a comment to an issue

post/repos/{owner}/{repo}/issues/{index}/comments

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

indexinteger required

index of the issue

Request body

bodystring required

Body is the comment text content

Response

Comment

bodystring

Body contains the comment text content

created_atstring date-time
html_urlstring

HTMLURL is the web URL for viewing the comment

idinteger

ID is the unique identifier for the comment

issue_urlstring

IssueURL is the API URL for the issue

original_authorstring

OriginalAuthor is the original author name (for imported comments)

original_author_idinteger

OriginalAuthorID is the original author ID (for imported comments)

pull_request_urlstring

PRURL is the API URL for the pull request (if applicable)

updated_atstring date-time