官术网_书友最值得收藏!

  • GitHub Essentials
  • Achilleas Pipinellis
  • 319字
  • 2021-08-05 10:45:36

Creating new label names and setting different colors

Head over to the issue tracker and navigate to the label page by clicking on Labels. As you can see, GitHub sets up some predefined labels that are ready to use. The name, color, and description are fully customizable for new and existing labels.

Creating a new label is as easy as pressing the New label button, filling in the name, choosing a color, and optionally entering a description. In fact, a random color is already picked, so the only prerequisite is the name. I have created a new yellow label named needs testing, as shown in the following screenshot:

After clicking the Create label button, the label will be created and appear in the list. Back to the issues—let's go inside the first one and give it the label we just created. Click on the gear icon for the dropdown to appear. Start typing to narrow down the search. Now, we only have 9 labels, but imagine having more than 42. You'd have to scroll and scroll until you found the label you were looking for.

As you might have guessed, you can choose more than one label in an issue. After you choose them, just click anywhere outside of the label window to save the action. You will see the changes immediately:

Note how GitHub makes note of any change made to the issue. This way, you will know who took a specific action and when the action was taken. Nothing escapes GitHub's eye! Try to remove the enhancement label to see what happens.

As with the assignees, you can also mass-assign labels to issues. Let's try this by going to the main issues page and selecting some issues, and then choosing the bug label:

The issue tracker will be updated, and now you can have an overview of the issues with the labels assigned to them:

主站蜘蛛池模板: 潞城市| 贵港市| 永平县| 合阳县| 政和县| 新田县| 义乌市| 丰原市| 冀州市| 定襄县| 商南县| 虞城县| 黎城县| 阳高县| 佛教| 浪卡子县| 灵山县| 嵊泗县| 武川县| 长岛县| 唐河县| 瓦房店市| 西丰县| 盐源县| 阿鲁科尔沁旗| 山阳县| 嵊泗县| 皋兰县| 于都县| 永德县| 垣曲县| 温泉县| 宜兰市| 巴塘县| 绥阳县| 浪卡子县| 壤塘县| 成都市| 扶沟县| 通州市| 汉源县|