Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/rest/commits/comments?apiVersion=2026-03-10#create-a-commit-comment
https://docs.github.com/en/rest/guides/working-with-comments?apiVersion=2022-11-28#commit-comments
What part(s) of the article would you like to see updated?
HTTP response status codes for "Create a commit comment"
| Status code |
Description |
| 201 |
Created |
| 403 |
Forbidden |
| 422 |
Validation failed, or the endpoint has been spammed. |
Should mention that the endpoint can be disabled.
Additional information
Here's an example: https://github.com/check-spelling-sandbox/Viceroy/actions/runs/24851488140/job/72761491315#step:2:1359
{
"message": "Resource not accessible by integration",
"documentation_url": "https://docs.github.com/rest/commits/comments#create-a-commit-comment",
"status": "403"
}
(I disabled commit comments on this one repository for testing and reran the job to get a response.)
- It's possible to disable commit-comments across an organization: https://github.blog/changelog/2026-04-23-disable-commit-comments-across-your-organization/
- It's possible to disable commit-comments per repository: https://github.blog/changelog/2026-03-25-disable-comments-on-individual-commits/
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/rest/commits/comments?apiVersion=2026-03-10#create-a-commit-comment
https://docs.github.com/en/rest/guides/working-with-comments?apiVersion=2022-11-28#commit-comments
What part(s) of the article would you like to see updated?
HTTP response status codes for "Create a commit comment"
Should mention that the endpoint can be disabled.
Additional information
Here's an example: https://github.com/check-spelling-sandbox/Viceroy/actions/runs/24851488140/job/72761491315#step:2:1359
{ "message": "Resource not accessible by integration", "documentation_url": "https://docs.github.com/rest/commits/comments#create-a-commit-comment", "status": "403" }(I disabled commit comments on this one repository for testing and reran the job to get a response.)