Skip to main content

Managing commit comments for your organization

Organization owners can allow or disallow commit comments by default for repositories in their organization.

¿Quién puede utilizar esta característica?

Organization owners

About commit comments

Commit comments are comments people add directly to a commit outside of a pull request. Disallowing commit comments can help organizations reduce noise and maintain cleaner commit histories, especially if commit comments are not part of your development workflow.

It is possible to allow or disallow commit comments at a repository level. Organization owners can configure the default setting for commit comments for all repositories in an organization.

What happens when commit comments are disabled?

When you disable commit comments for your organization:

  • People cannot create new commit comments.
  • Existing commit comments remain visible.
  • Repository administrators can override the setting in their repository's settings.

Managing the default setting for commit comments in your organization's repositories

  1. En la esquina superior derecha de GitHub, haz clic en la foto del perfil y luego en Your organizations.

  2. Seleccione una organización haciendo clic en ella.

  3. Debajo del nombre de la organización, haz clic en Settings. Si no puedes ver la pestaña "Configuración", selecciona el menú desplegable y, a continuación, haz clic en Configuración.

    Captura de pantalla de las pestañas en el perfil de una organización. La pestaña "Configuración" se destaca en naranja oscuro.

  4. In the "Code, planning, and automation" section of the sidebar, select Repository, then click General.

  5. Under "Commits", select or deselect Allow comments on individual commits.

Further reading