/repos/{owner}/{repo}/issues/{issue_number}/commentsCreate a comment on an issue
Creates a comment on an issue or pull request in a repository. Provide the comment contents in body; creating a comment triggers notifications, and creating content too quickly may result in secondary rate limiting. The response can include raw Markdown, plain text, or rendered HTML according to the requested media type.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Comment content to add to the issue or pull request.
A 403 is returned when the authenticated user is not permitted to comment, and a 404 is returned when the repository or issue cannot be found. A 410 indicates the requested resource is no longer available; a 422 indicates validation failure or that the endpoint has been spammed. The body field is required, and creating content too quickly may trigger secondary rate limiting.