pub async fn repos_slash_create_commit_comment(
configuration: &Configuration,
owner: &str,
repo: &str,
commit_sha: &str,
repos_create_commit_comment_request: ReposCreateCommitCommentRequest,
) -> Result<CommitComment, Error<ReposSlashCreateCommitCommentError>>
Expand description
Create a comment for a commit using its :commit_sha
. This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "Rate limits for the API" and "Best practices for using the REST API." This endpoint supports the following custom media types. For more information, see "Media types." - application/vnd.github-commitcomment.raw+json
: Returns the raw markdown body. Response will include body
. This is the default if you do not pass any specific media type. - application/vnd.github-commitcomment.text+json
: Returns a text only representation of the markdown body. Response will include body_text
. - application/vnd.github-commitcomment.html+json
: Returns HTML rendered from the body’s markdown. Response will include body_html
. - application/vnd.github-commitcomment.full+json
: Returns raw, text, and HTML representations. Response will include body
, body_text
, and body_html
.