我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们

此版本的 GitHub Enterprise 将停止服务 此版本的 GitHub Enterprise 已停止服务 2020-01-22. 即使针对重大安全问题,也不会发布补丁。 要获得更好的性能、改进的安全性和新功能,请升级到 GitHub Enterprise 的最新版本。 如需升级方面的帮助,请联系 GitHub Enterprise 支持

Managing contributors and teams

You can manage the people and teams included in metrics and reports.

People with admin permissions in GitHub Insights can manage contributors and teams.

GitHub Insights 可用于 GitHub One。 更多信息请参阅“GitHub 的产品”。

本文内容

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.

  1. 在 GitHub Insights 中,单击 Settings(设置)

    Settings 选项卡

  2. Settings(设置)下,单击 Contibutors(贡献)

    贡献者选项卡

  3. 在您想要管理的贡献者右侧,单击 Edit(编辑)

    编辑按钮

  4. Under "First Name", type the contributor's first name.

    First Name field

  5. Under "Last Name", type the contributor's last name.

    Last Name field

  6. 单击 Rename(重命名)

Managing contributor visibility

Hiding a contributor excludes all data associated with that contributor from all metrics.

  1. 在 GitHub Insights 中,单击 Settings(设置)

    Settings 选项卡

  2. Settings(设置)下,单击 Contibutors(贡献)

    贡献者选项卡

  3. 在您想要管理的贡献者右侧,单击 Edit(编辑)

    编辑按钮

  4. Select or deselect Show contributor.

    Checkbox to show or hide contributor

  5. 单击 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

  1. 在 GitHub Insights 中,单击 Settings(设置)

    Settings 选项卡

  2. Settings(设置)下,单击 Contibutors(贡献)

    贡献者选项卡

  3. Under "All Contributors", click Auto-Merge

    Auto-Merge button

  4. Optionally, to exclude a contributor from being merged, to the right of the contributor, click Skip.

    Skip button

  5. For each group, select a primary contributor.

    Radio buttons to select primary contributor

  6. Click Merge All.

Manually merging contributors

  1. 在 GitHub Insights 中,单击 Settings(设置)

    Settings 选项卡

  2. Settings(设置)下,单击 Contibutors(贡献)

    贡献者选项卡

  3. Select the contributors you want to merge.

    Select contributors

  4. Under "All Contributors", click Merge.

    Merge button

  5. Select a primary contributor.

    Radio buttons to select primary contributor

  6. Click Merge accounts.

Unmerging a contributor

  1. 在 GitHub Insights 中,单击 Settings(设置)

    Settings 选项卡

  2. Settings(设置)下,单击 Contibutors(贡献)

    贡献者选项卡

  3. To the right of the contributor, click Unmerge.

    Unmerge button

Managing teams in GitHub Insights

Teams in 您的 GitHub Enterprise Server 实例 are not available in GitHub Insights. You must create separate teams in GitHub Insights.

创建团队

  1. 在 GitHub Insights 中,单击 Settings(设置)

    Settings 选项卡

  2. Settings(设置)下,单击 Teams(团队)

    团队选项卡

  3. To the right of "Teams", click Create Team.

    Create Team button

  4. Under "Team Name", type a unique name for your team.

    Team Name field

  5. Click Create.

Adding contributors to a team

  1. 在 GitHub Insights 中,单击 Settings(设置)

    Settings 选项卡

  2. Settings(设置)下,单击 Teams(团队)

    团队选项卡

  3. 在您想要为其添加贡献者的团队旁边,单击 Edit Team(编辑团队)

    编辑团队按钮

  4. Under "Contributors", use the drop-down menu and select a contributor.

    Contibutors drop-down

  5. 单击 Done(完成)

Removing a contributor from a team

  1. 在 GitHub Insights 中,单击 Settings(设置)

    Settings 选项卡

  2. Settings(设置)下,单击 Teams(团队)

    团队选项卡

  3. 在您想要为其添加贡献者的团队旁边,单击 Edit Team(编辑团队)

    编辑团队按钮

  4. To the right of the contributor you'd like to remove, click .

    Trashcan button

重命名团队

  1. 在 GitHub Insights 中,单击 Settings(设置)

    Settings 选项卡

  2. Settings(设置)下,单击 Teams(团队)

    团队选项卡

  3. 在您想要为其添加贡献者的团队旁边,单击 Edit Team(编辑团队)

    编辑团队按钮

  4. Under "Team Name", type a unique name for your team.

    Team Name field

  5. 单击 Rename(重命名)

    Rename button

  6. 单击 Done(完成)

删除团队

  1. 在 GitHub Insights 中,单击 Settings(设置)

    Settings 选项卡

  2. Settings(设置)下,单击 Teams(团队)

    团队选项卡

  3. 在您想要为其添加贡献者的团队旁边,单击 Edit Team(编辑团队)

    编辑团队按钮

  4. Click Delete Team.

    Delete Team button

  5. Click Confirm.

问问别人

找不到要找的内容?

联系我们