Thanks to visit codestin.com
Credit goes to github.com

Skip to content

create-a-commit-comment, commit-comments don't mention that the endpoint needs to be enabled #43937

@jsoref

Description

@jsoref

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.)

  1. It's possible to disable commit-comments across an organization: https://github.blog/changelog/2026-04-23-disable-commit-comments-across-your-organization/
  2. It's possible to disable commit-comments per repository: https://github.blog/changelog/2026-03-25-disable-comments-on-individual-commits/

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamtriageDo not begin working on this issue until triaged by the team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions