Improvement

March 25, 20261 Minute Read

Disable comments on individual commits

Repository admins can now disable comments on individual commits, a small but meaningful improvement for maintainers dealing with unwanted noise on old commits.

A new “Commits” section in repository settings includes the option Allow comments on individual commits, which is enabled by default to preserve existing behavior across all repositories.

The Commits section in repository settings, showing a checkbox labeled 'Allow comments on individual commits'

When this option is unchecked:

  • The comment form, inline diff comment affordance, and inline thread reply capability are hidden on commit pages.
  • Comment creation through both the REST API and GraphQL API is blocked.
  • Existing commit comments are not affected—they can be viewed, edited, and deleted.

To try it out, navigate to your repository’s Settings, scroll to the “Commits” section, and uncheck Allow comments on individual commits.

Drop a comment in our Community discussion to share your feedback.

Subscribe to our developer newsletter

Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.

By submitting, I agree to let GitHub and its affiliates use my information for personalized communications, targeted advertising, and campaign effectiveness. See the GitHub Privacy Statement for more details.

Disable comments on individual commits - GitHub Changelog