Skip to main content

Эта версия GitHub Enterprise Server была прекращена 2025-04-03. Исправления выпускаться не будут даже при критических проблемах безопасности. Для повышения производительности, повышения безопасности и новых функций выполните обновление до последней версии GitHub Enterprise Server. Чтобы получить справку по обновлению, обратитесь в службу поддержки GitHub Enterprise.

Управление метками по умолчанию для репозиториев в организации

Вы можете настроить метки, включенные в каждый новый репозиторий в вашей организации.

Organization owners can manage default labels for repositories in the organization.

Default labels are included in every new repository in your organization, but anyone with write access to the repository can edit or delete the labels in that repository later. Adding, editing, or deleting a default label does not add, edit, or delete the label from existing repositories.

Creating a default label

  1. In the upper-right corner of GitHub, select your profile photo, then click Your organizations.
  2. Next to the organization, click Settings.
  3. In the "Code, planning, and automation" section of the sidebar, select Repository, then click Repository defaults.
  4. Under "Repository labels", click New label.
  5. Under "Label name", type a name for your label.
  6. Under "Description", type a description to help others understand and use your label.
  7. Optionally, to customize the color of your label, edit the hexadecimal number, or, for another random selection, click .
  8. To save the new label, click Create label.

Editing a default label

  1. In the upper-right corner of GitHub, select your profile photo, then click Your organizations.

  2. Next to the organization, click Settings.

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

  4. In the labels list, to the right of the label you want to edit, click Edit.

  5. Under "Label name", type a name for your label.

  6. Under "Description", type a description to help others understand and use your label.

  7. Optionally, to customize the color of your label, edit the hexadecimal number, or, for another random selection, click .

  8. Click Save changes.

Deleting a default label

  1. In the upper-right corner of GitHub, select your profile photo, then click Your organizations.

  2. Next to the organization, click Settings.

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

  4. In the labels list, to the right of the label you want to delete, click Delete.

  5. Read the warning, then click OK.

Further reading