跳至主要内容

审查对 GitHub Copilot 内容排除的更改

您可以监控仓库和组织中内容排除的更改。

谁可以使用此功能?

组织所有者

拥有 Copilot Business 或 Copilot Enterprise 计划的组织。

组织和仓库的设置包含排除内容不被 GitHub Copilot 使用的功能。您可以审阅对这些内容排除设置所做的任何更改。

审阅仓库中的更改

  1. 在 GitHub 上,导航至仓库的主页面。

  2. 在您的仓库名称下,点击 设置。如果看不到 “Settings” 选项卡,请选择 下拉菜单,然后点击 设置

    Screenshot of a repository header showing the tabs. The "Settings" tab is highlighted by a dark orange outline.

  3. 在侧边栏的 “代码与自动化” 部分,点击 Copilot

  4. 滚动到页面底部。

    您将看到最后更改内容排除设置的人的姓名,以及他们何时进行此更改的相关信息。

  5. 点击最近一次更改的时间。

    Screenshot of the last edited information. The time of change link is highlighted with a dark orange outline.

    组织的 “审计日志” 页面将显示,列出仓库中最近记录的 copilot.content_exclusion_changed 操作事件。

  6. 点击每条记录末尾的省略号 (…) 以查看更多详情。

    如果 “excluded_paths” 条目被截断,将鼠标悬停在截断的值上即可显示完整条目。这将展示更改保存后排除设置的内容。

    Screenshot of audit log details for the 'copilot.content_exclusion_changed' action. The ellipsis button is highlighted.

审阅组织中的更改

  1. 在 GitHub 右上角,点击您的个人头像,然后点击 组织

  2. 点击即可选择组织。

  3. 在您的组织名称下,点击 设置。如果看不到 “Settings” 选项卡,请选择 下拉菜单,然后点击 设置

    Screenshot of the tabs in an organization's profile. The "Settings" tab is outlined in dark orange.

  4. 在左侧边栏,点击 Copilot,然后点击 内容排除

  5. 滚动到页面底部。

    您将看到最后更改内容排除设置的人的姓名,以及他们何时进行此更改的相关信息。

  6. 点击最近一次更改的时间。

    Screenshot of the last edited information. The time of change link is highlighted with a dark orange outline.

    组织的 “审计日志” 页面将显示,列出最近记录的 copilot.content_exclusion_changed 操作事件。

    列出了在仓库或组织层面所做的更改。

  7. 点击每条记录末尾的省略号 (…) 以查看更多详情。

    如果 “excluded_paths” 条目被截断,将鼠标悬停在截断的值上即可显示完整条目。这将展示更改保存后排除设置的内容。

    Screenshot of audit log details for the 'copilot.content_exclusion_changed' action. The ellipsis button is highlighted.

延伸阅读

© . This site is unofficial and not affiliated with GitHub, Inc.