Managing contributors and teams
You can manage the people and teams included in metrics and reports.
GitHub Insights 可用于 GitHub One。 更多信息请参阅“GitHub 的产品”。
本文内容
- About contributors and teams in GitHub Insights
- Editing a contributor
- Managing contributor visibility
- Merging contributor data
- Auto-merging contributors
- Manually merging contributors
- Unmerging a contributor
- Managing teams in GitHub Insights
- 创建团队
- Adding contributors to a team
- Removing a contributor from a team
- 重命名团队
- 删除团队
About contributors and teams in GitHub Insights
A contributor in GitHub Insights is an entity associated with GitHub Enterprise data. You can edit and hide contributors.
Sometimes, the same person can appear as more than one contributor. For example, if one person has used multiple commit email addresses in Git, there will be a unique contributor for each email address in GitHub Insights. You can merge multiple contributors to combine all the data from one person.
You can also group contributors into teams. You can use teams as a filter on reports. For more information, see "Viewing key metrics and reports."
Editing a contributor
You can edit a contributor's display name in GitHub Insights.
-
在 GitHub Insights 中,单击 Settings(设置)。
-
在 Settings(设置)下,单击 Contibutors(贡献)。
-
在您想要管理的贡献者右侧,单击 Edit(编辑)。
-
Under "First Name", type the contributor's first name.
-
Under "Last Name", type the contributor's last name.
-
单击 Rename(重命名)。
Managing contributor visibility
Hiding a contributor excludes all data associated with that contributor from all metrics.
-
在 GitHub Insights 中,单击 Settings(设置)。
-
在 Settings(设置)下,单击 Contibutors(贡献)。
-
在您想要管理的贡献者右侧,单击 Edit(编辑)。
-
Select or deselect Show contributor.
-
单击 Done(完成)。
Merging contributor data
When you merge two or more contributors, the GitHub Insights data for those contributors becomes associated with one primary contributor. All of the merged contributor data belongs to the primary contributor in metrics.
You can merge contributors manually or automatically, based on contributors GitHub Insights has detected with matching names.
Auto-merging contributors
-
在 GitHub Insights 中,单击 Settings(设置)。
-
在 Settings(设置)下,单击 Contibutors(贡献)。
-
Under "All Contributors", click Auto-Merge
-
Optionally, to exclude a contributor from being merged, to the right of the contributor, click Skip.
-
For each group, select a primary contributor.
-
Click Merge All.
Manually merging contributors
-
在 GitHub Insights 中,单击 Settings(设置)。
-
在 Settings(设置)下,单击 Contibutors(贡献)。
-
Select the contributors you want to merge.
-
Under "All Contributors", click Merge.
-
Select a primary contributor.
-
Click Merge accounts.
Unmerging a contributor
-
在 GitHub Insights 中,单击 Settings(设置)。
-
在 Settings(设置)下,单击 Contibutors(贡献)。
-
To the right of the contributor, click Unmerge.
Managing teams in GitHub Insights
Teams in 您的 GitHub Enterprise Server 实例 are not available in GitHub Insights. You must create separate teams in GitHub Insights.
创建团队
-
在 GitHub Insights 中,单击 Settings(设置)。
-
在 Settings(设置)下,单击 Teams(团队)。
-
To the right of "Teams", click Create Team.
-
Under "Team Name", type a unique name for your team.
-
Click Create.
Adding contributors to a team
-
在 GitHub Insights 中,单击 Settings(设置)。
-
在 Settings(设置)下,单击 Teams(团队)。
-
在您想要为其添加贡献者的团队旁边,单击 Edit Team(编辑团队)。
-
Under "Contributors", use the drop-down menu and select a contributor.
-
单击 Done(完成)。
Removing a contributor from a team
-
在 GitHub Insights 中,单击 Settings(设置)。
-
在 Settings(设置)下,单击 Teams(团队)。
-
在您想要为其添加贡献者的团队旁边,单击 Edit Team(编辑团队)。
-
To the right of the contributor you'd like to remove, click .
重命名团队
-
在 GitHub Insights 中,单击 Settings(设置)。
-
在 Settings(设置)下,单击 Teams(团队)。
-
在您想要为其添加贡献者的团队旁边,单击 Edit Team(编辑团队)。
-
Under "Team Name", type a unique name for your team.
-
单击 Rename(重命名)。
-
单击 Done(完成)。
删除团队
-
在 GitHub Insights 中,单击 Settings(设置)。
-
在 Settings(设置)下,单击 Teams(团队)。
-
在您想要为其添加贡献者的团队旁边,单击 Edit Team(编辑团队)。
-
Click Delete Team.
-
Click Confirm.