Skip to main content
Мы публикуем частые обновления нашей документации, и перевод этой страницы может все еще выполняться. Актуальные сведения см. в документации на английском языке.

Creating a custom badge for your GitHub App

Вы можете заменить эмблему по умолчанию в приложении GitHub, отправив изображение собственного логотипа и настроив фон.

By default, a new GitHub App will have an automatically generated identicon. An identicon badge looks something like this:

An identicon, which consists of white pixels in a random pattern on a circular yellow background.

After you register a GitHub App, you can customize your app's badge by uploading a logo and selecting a background color. A badge is a square logo image inside of a circular badge. You can choose a background color for the badge, which can visually distinguish your app.

Your logo should be a PNG, JPG, or GIF file under 1 MB in size. For the best quality rendering, we recommend an image size of at least 200px x 200px. See "Написание описания для вашего приложения" for more guidance on customizing badges.

You can change a custom badge for a GitHub App that already has an approved Marketplace listing by navigating to https://github.com/marketplace/manage.

To create a custom badge:

  1. В правом верхнем углу любой страницы щелкните фотографию профиля, а затем выберите Параметры.

    Снимок экрана: меню учетной записи GitHub с параметрами для просмотра и изменения профиля, содержимого и параметров пользователями. Пункт меню "Параметры" выделен темно-оранжевым цветом.

  2. На левой боковой панели щелкните Параметры разработчика.

  3. На левой боковой панели щелкните GitHub Apps. Снимок экрана: страница "Параметры разработчика" в GitHub. Параметр с меткой "Приложения GitHub" выделен темно-оранжевым цветом.

  4. Справа от GitHub App, которые нужно изменить, щелкните Изменить.

  5. Under "Display information," drag and drop an image from a local folder or click Upload a logo to select an image from your computer.

  6. Optionally, crop your image. When you're done, click Set new avatar.

  7. Under "Badge background color," type the hexadecimal color code of the background color for your badge.

    Note: The "Badge background color" input field will only appear after you upload an application logo.

Next steps

For more information about listing your GitHub App in GitHub Marketplace, see "Размещение приложения на GitHub Marketplace".