New translation batch for cn (#26027)
* Add crowdin translations * Run script/i18n/homogenize-frontmatter.js * Run script/i18n/lint-translation-files.js --check parsing * Run script/i18n/lint-translation-files.js --check rendering * run script/i18n/reset-files-with-broken-liquid-tags.js --language=cn * run script/i18n/reset-known-broken-translation-files.js Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
This commit is contained in:
@@ -100,4 +100,4 @@ topics:
|
||||
|
||||
## 反馈和支持
|
||||
|
||||
If you have feedback or feature requests for notifications, use a [{% data variables.product.product_name %} feedback discussion](https://github.com/github/feedback/discussions/categories/general-feedback).
|
||||
如果您有针对通知的反馈或功能请求,请使用 [{% data variables.product.product_name %} 反馈讨论](https://github.com/github/feedback/discussions/categories/general-feedback)。
|
||||
|
||||
@@ -19,6 +19,8 @@ shortTitle: Missing contributions
|
||||
|
||||
Your profile contributions graph is a record of contributions you've made to repositories {% ifversion ghae %}owned by{% else %}on{% endif %} {% data variables.product.product_location %}. Contributions are timestamped according to Coordinated Universal Time (UTC) rather than your local time zone. Contributions are only counted if they meet certain criteria. In some cases, we may need to rebuild your graph in order for contributions to appear.
|
||||
|
||||
If you are part of an organization that uses SAML single sign-on (SSO), you won’t be able to see contribution activity from the organization on your profile if you do not have an active SSO session. People viewing your profile from outside your organization will see anonymized contribution activity of your contribution activity for your organization.
|
||||
|
||||
## Contributions that are counted
|
||||
|
||||
### Issues, pull requests and discussions
|
||||
|
||||
@@ -21,7 +21,7 @@ shortTitle: 添加电子邮件地址
|
||||
|
||||
**注意**:
|
||||
- {% data reusables.user-settings.no-verification-disposable-emails %}
|
||||
- If you're a member of an {% data variables.product.prodname_emu_enterprise %}, you cannot make changes to your email address on {% data variables.product.prodname_dotcom_the_website %}. {% data reusables.enterprise-accounts.emu-more-info-account %}
|
||||
- 如果您是 {% data variables.product.prodname_emu_enterprise %} 的成员,则无法在 {% data variables.product.prodname_dotcom_the_website %} 上更改您的电子邮件地址。 {% data reusables.enterprise-accounts.emu-more-info-account %}
|
||||
|
||||
{% endnote %}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ shortTitle: 合并多个用户帐户
|
||||
|
||||
{% ifversion ghec %}
|
||||
|
||||
**Tip:** {% data variables.product.prodname_emus %} allow an enterprise to provision unique user accounts for its members through an identity provider (IdP). For more information, see "[About Enterprise Managed Users](/admin/identity-and-access-management/managing-iam-with-enterprise-managed-users/about-enterprise-managed-users)." For other use cases, we recommend using only one user account to manage both personal and professional repositories.
|
||||
**提示:** {% data variables.product.prodname_emus %} 允许企业通过身份提供商 (IdP) 为其成员配置唯一的用户帐户。 更多信息请参阅“[关于企业管理用户](/admin/identity-and-access-management/managing-iam-with-enterprise-managed-users/about-enterprise-managed-users)”。 对于其他用例,我们建议仅使用一个用户帐户来管理个人和专业存储库。
|
||||
|
||||
{% else %}
|
||||
|
||||
@@ -31,14 +31,14 @@ shortTitle: 合并多个用户帐户
|
||||
|
||||
{% warning %}
|
||||
|
||||
**Warning:** Organization and repository access permissions aren't transferable between accounts. If the account you want to delete has an existing access permission, an organization owner or repository administrator will need to invite the account that you want to keep.
|
||||
**警告:** 组织和存储库访问权限不可在帐户之间转移。 如果要删除的帐户具有现有访问权限,则组织所有者或存储库管理员将需要邀请您要保留的帐户。
|
||||
|
||||
{% endwarning %}
|
||||
|
||||
1. 从您要删除的帐户[转让任何仓库](/articles/how-to-transfer-a-repository)到要保留的帐户。 议题、拉取请求和 wiki 也会转让。 确认要保留的帐户中存在仓库。
|
||||
2. [更新远程 URL](/github/getting-started-with-github/managing-remote-repositories)(在移动的仓库的任何本地克隆中)。
|
||||
3. [删除帐户](/articles/deleting-your-user-account)(不再使用的)。
|
||||
4. To attribute past commits to the new account, add the email address you used to author the commits to the account you're keeping. 更多信息请参阅“[为什么我的贡献没有在我的个人资料中显示?](/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-graphs-on-your-profile/why-are-my-contributions-not-showing-up-on-my-profile#your-local-git-commit-email-isnt-connected-to-your-account)”
|
||||
4. 要将过去的提交归因于新帐户,请将用于创作提交的电子邮件地址添加到要保留的帐户。 更多信息请参阅“[为什么我的贡献没有在我的个人资料中显示?](/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-graphs-on-your-profile/why-are-my-contributions-not-showing-up-on-my-profile#your-local-git-commit-email-isnt-connected-to-your-account)”
|
||||
|
||||
## 延伸阅读
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: 查看组织中人员的角色
|
||||
intro: '您可以查看组织中人员的列表,并按其角色进行筛选。 For more information on organization roles, see "[Roles in an organization](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization)."'
|
||||
intro: '您可以查看组织中人员的列表,并按其角色进行筛选。 有关组织角色的详细信息,请参阅“[组织中的角色](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization)”。'
|
||||
permissions: Organization members can see people's roles in the organization.
|
||||
redirect_from:
|
||||
- /articles/viewing-people-s-roles-in-an-organization
|
||||
@@ -26,39 +26,39 @@ shortTitle: 查看组织中的人员
|
||||
|
||||
{% ifversion fpt %}
|
||||
|
||||
If your organization uses {% data variables.product.prodname_ghe_cloud %}, you can also view the enterprise owners who manage billing settings and policies for all your enterprise's organizations. 更多信息请参阅 [{% data variables.product.prodname_ghe_cloud %} 文档](/enterprise-cloud@latest/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/viewing-peoples-roles-in-an-organization#view-enterprise-owners-and-their-roles-in-an-organization)。
|
||||
如果您的组织使用 {% data variables.product.prodname_ghe_cloud %},您还可以查看管理所有企业组织的计费设置和策略的企业所有者。 更多信息请参阅 [{% data variables.product.prodname_ghe_cloud %} 文档](/enterprise-cloud@latest/account-and-profile/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/viewing-peoples-roles-in-an-organization#view-enterprise-owners-and-their-roles-in-an-organization)。
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if enterprise-owners-visible-for-org-members %}
|
||||
## View enterprise owners and their roles in an organization
|
||||
## 查看企业所有者及其在组织中的角色
|
||||
|
||||
If your organization is managed by an enterprise account, then you can view the enterprise owners who manage billing settings and policies for all of your enterprise's organizations. For more information about enterprise accounts, see "[Types of {% data variables.product.prodname_dotcom %} accounts](/get-started/learning-about-github/types-of-github-accounts)."
|
||||
如果您的组织由企业帐户管理,则可以查看管理企业所有组织的帐单设置和策略的企业所有者。 有关企业帐户的详细信息,请参阅“[{% data variables.product.prodname_dotcom %} 帐户类型](/get-started/learning-about-github/types-of-github-accounts)”。
|
||||
|
||||
You can also view whether an enterprise owner has a specific role in the organization. Enterprise owners can also be an organization member, any other organization role, or be un-affililated with the organization.
|
||||
您还可以查看企业所有者是否在组织中具有特定角色。 企业所有者也可以是组织成员、任何其他组织角色或与组织无关。
|
||||
|
||||
{% note %}
|
||||
|
||||
**Note:** If you're an organization owner, you can also invite an enterprise owner to have a role in the organization. If an enterprise owner accepts the invitation, a seat or license in the organization is used from the available licenses for your enterprise. For more information about how licensing works, see "[Roles in an enterprise](/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise#enterprise-owner)."
|
||||
**注意:**如果您是组织所有者,还可以邀请企业所有者在组织中担任角色。 如果企业所有者接受邀请,则会从企业的可用许可证中使用组织中的席位或许可证。 有关许可的工作原理的详细信息,请参阅“[企业中的角色](/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise#enterprise-owner)”。
|
||||
|
||||
{% endnote %}
|
||||
|
||||
| **Enterprise role** | **Organization role** | **Organization access or impact** |
|
||||
| ------------------- | ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| 企业所有者 | Un-affililated or no official organization role | Cannot access organization content or repositories but manages enterprise settings and policies that impact your organization. |
|
||||
| 企业所有者 | Organization owner | Able to configure organization settings and manage access to the organization's resources through teams, etc. |
|
||||
| 企业所有者 | Organization member | Able to access organization resources and content, such as repositories, without access to the organization's settings. |
|
||||
| **企业角色** | **组织角色** | **组织访问或影响** |
|
||||
| -------- | ------------------ | ------------------------------ |
|
||||
| 企业所有者 | 非附属或无官方组织角色 | 无法访问组织内容或存储库,但可管理影响组织的企业设置和策略。 |
|
||||
| 企业所有者 | Organization owner | 能够配置组织设置并通过团队等管理对组织资源的访问。 |
|
||||
| 企业所有者 | 组织成员 | 能够访问组织资源和内容(如存储库),而无需访问组织的设置。 |
|
||||
|
||||
To review all roles in an organization, see "[Roles in an organization](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization)." {% ifversion ghec %} An organization member can also have a custom role for a specific repository. For more information, see "[Managing custom repository roles for an organization](/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization)."{% endif %}
|
||||
要查看组织中的所有角色,请参阅“[组织中的角色](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization)”。 {% ifversion ghec %} 组织成员还可以具有特定存储库的自定义角色。 更多信息请参阅“[管理组织的自定义仓库角色](/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization)”。{% endif %}
|
||||
|
||||
For more information about the enterprise owner role, see "[Roles in an enterprise](/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise#enterprise-owner)."
|
||||
有关企业所有者角色的更多信息,请参阅“[企业中的角色](/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise#enterprise-owner)”。
|
||||
|
||||
{% data reusables.profile.access_org %}
|
||||
{% data reusables.user-settings.access_org %}
|
||||
{% data reusables.organizations.people %}
|
||||
4. In the left sidebar, under "Enterprise permissions", click **Enterprise owners**. 
|
||||
5. View the list of the enterprise owners for your enterprise. If the enterprise owner is also a member of your organization, you can see their role in the organization.
|
||||
4. 在左侧边栏的“Enterprise permissions(企业权限)”下,单击 **Enterprise owners(企业所有者)**。 
|
||||
5. 查看企业的企业所有者列表。 如果企业所有者也是您组织的成员,则您可以看到他们在组织中的角色。
|
||||
|
||||

|
||||

|
||||
|
||||
{% endif %}
|
||||
|
||||
@@ -78,6 +78,12 @@ shortTitle: 启动时运行运行器应用程序
|
||||
```
|
||||
{% endmac %}
|
||||
|
||||
The command takes an optional `user` argument to install the service as a different user.
|
||||
|
||||
```shell
|
||||
./svc.sh install --user <em>USERNAME</em>
|
||||
```
|
||||
|
||||
## 启动服务
|
||||
|
||||
使用以下命令启动服务:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Monitoring and troubleshooting workflows
|
||||
title: 监控和故障排除工作流程
|
||||
shortTitle: 监控和故障排除
|
||||
intro: 'You can view the status and results of each step in your workflow, debug a failed workflow, search and download logs, and view billable job execution minutes.'
|
||||
intro: 您可以查看工作流程中每个步骤的状态和结果、调试失败的工作流程、搜索和下载日志以及查看计费作业执行分钟数。
|
||||
redirect_from:
|
||||
- /articles/viewing-your-repository-s-workflows
|
||||
- /articles/viewing-your-repositorys-workflows
|
||||
|
||||
@@ -57,7 +57,7 @@ versions:
|
||||
{% data reusables.repositories.navigate-to-workflow %}
|
||||
{% data reusables.repositories.view-run %}
|
||||
{% data reusables.repositories.navigate-to-job %}
|
||||
1. In the upper right corner, click {% octicon "gear" aria-label="The gear icon" %} and select **Download log archive**.
|
||||
1. 在右上角,单击 {% octicon "gear" aria-label="The gear icon" %} ,然后选择 **Download log archive(下载日志存档)**。
|
||||
|
||||

|
||||
|
||||
@@ -70,7 +70,7 @@ versions:
|
||||
{% data reusables.repositories.actions-tab %}
|
||||
{% data reusables.repositories.navigate-to-workflow %}
|
||||
{% data reusables.repositories.view-run %}
|
||||
1. In the upper right corner, click {% octicon "kebab-horizontal" aria-label="The horizontal kebab icon" %}.
|
||||
1. 在右上角,单击 {% octicon "kebab-horizontal" aria-label="The horizontal kebab icon" %}。
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -41,7 +41,9 @@ When you enable {% data variables.product.prodname_github_connect %}, you config
|
||||
To use {% data variables.product.prodname_github_connect %}, you must have an organization or enterprise account on {% data variables.product.prodname_dotcom_the_website %} that uses {% data variables.product.prodname_ghe_cloud %}. You may already have {% data variables.product.prodname_ghe_cloud %} included in your plan. {% data reusables.enterprise.link-to-ghec-trial %}
|
||||
|
||||
{% ifversion ghes %}
|
||||
To configure a connection, your proxy configuration must allow connectivity to `github.com`, `api.github.com`, and `uploads.github.com`. 更多信息请参阅“[配置出站 Web 代理服务器](/enterprise/{{ currentVersion }}/admin/guides/installation/configuring-an-outbound-web-proxy-server)”。
|
||||
If your organization or enterprise account on {% data variables.product.prodname_dotcom_the_website %} uses IP allow lists, you must add the IP address or network for {% data variables.product.product_location %} to your IP allow list on {% data variables.product.prodname_dotcom_the_website %}. For more information, see "[Managing allowed IP addresses for your organization](/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization)" and "[Enforcing policies for security settings in your enterprise](/enterprise-cloud@latest/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-security-settings-in-your-enterprise#managing-allowed-ip-addresses-for-organizations-in-your-enterprise)" in the {% data variables.product.prodname_ghe_cloud %} documentation.
|
||||
|
||||
To configure a connection, your proxy configuration must allow connectivity to `github.com`, `api.github.com`, and `uploads.github.com`. For more information, see "[Configuring an outbound web proxy server](/enterprise/{{ currentVersion }}/admin/guides/installation/configuring-an-outbound-web-proxy-server)."
|
||||
{% endif %}
|
||||
|
||||
## 启用 {% data variables.product.prodname_github_connect %}
|
||||
@@ -69,7 +71,7 @@ If you're connecting {% data variables.product.product_location %} to an organiz
|
||||
|
||||
Enterprise owners can disable {% data variables.product.prodname_github_connect %}.
|
||||
|
||||
与 {% data variables.product.prodname_ghe_cloud %} 断开连接后,{% data variables.product.prodname_github_connect %} {% data variables.product.prodname_github_app %} 会从企业帐户或组织中删除,{% data variables.product.product_location %} 上存储的凭据也会删除。
|
||||
When you disconnect from {% data variables.product.prodname_ghe_cloud %}, the {% data variables.product.prodname_github_connect %} {% data variables.product.prodname_github_app %} is deleted from your enterprise account or organization and credentials stored on {% data variables.product.product_location %} are deleted.
|
||||
|
||||
{% data reusables.enterprise-accounts.access-enterprise %}
|
||||
{% data reusables.enterprise-accounts.github-connect-tab %}
|
||||
|
||||
@@ -33,8 +33,6 @@ redirect_from:
|
||||
|
||||
{% data reusables.saml.about-saml-access-enterprise-account %} For more information, see "[Viewing and managing a user's SAML access to your enterprise account](/admin/user-management/managing-users-in-your-enterprise/viewing-and-managing-a-users-saml-access-to-your-enterprise)."
|
||||
|
||||
{% data reusables.saml.cannot-update-existing-saml-settings %}
|
||||
|
||||
{% data reusables.saml.saml-disabled-linked-identities-removed %}
|
||||
|
||||
{% data reusables.scim.enterprise-account-scim %}
|
||||
|
||||
@@ -25,7 +25,11 @@ With {% data variables.product.prodname_emus %}, your enterprise uses SAML SSO t
|
||||
|
||||
After you configure SAML SSO, we recommend storing your recovery codes so you can recover access to your enterprise in the event that your identity provider is unavailable.
|
||||
|
||||
{% data reusables.saml.cannot-update-existing-saml-settings %}
|
||||
{% note %}
|
||||
|
||||
**Note:** When SAML SSO is enabled, the only setting you can update on {% data variables.product.prodname_dotcom %} for your existing SAML configuration is the SAML certificate. If you need to update the Sign on URL or Issuer, you must first disable SAML SSO and then reconfigure SAML SSO with the new settings.
|
||||
|
||||
{% endnote %}
|
||||
|
||||
## Configuring SAML single sign-on for {% data variables.product.prodname_emus %}
|
||||
|
||||
|
||||
@@ -76,6 +76,8 @@ To configure provisioning, the setup user with the **@<em>SHORT-CODE</em>_admin*
|
||||
|
||||
After you have configured SAML SSO and provisioning, you will be able provision new users on {% data variables.product.prodname_dotcom_the_website %} by assigning users to the {% data variables.product.prodname_emu_idp_application %} application.
|
||||
|
||||
{% data reusables.scim.emu-scim-rate-limit %}
|
||||
|
||||
You can also automatically manage organization membership by assigning groups to the application and adding them to the "Push Groups" tab in Okta. When the group is provisioned successfully, it will be available to connect to teams in the enterprise's organizations. For more information about managing teams, see "[Managing team memberships with identity provider groups](/github/setting-up-and-managing-your-enterprise/managing-your-enterprise-users-with-your-identity-provider/managing-team-memberships-with-identity-provider-groups)."
|
||||
|
||||
When assigning users, you can use the "Roles" attribute in the {% data variables.product.prodname_emu_idp_application %} application to set a user's role in your enterprise on {% data variables.product.product_name %}. For more information on roles, see "[Roles in an enterprise](/github/setting-up-and-managing-your-enterprise/managing-users-in-your-enterprise/roles-in-an-enterprise)."
|
||||
|
||||
@@ -19,7 +19,7 @@ You must configure provisioning for {% data variables.product.prodname_emus %} t
|
||||
|
||||
When you update information associated with a user's identity on your IdP, your IdP will update the user's account on GitHub.com. When you unassign the user from the {% data variables.product.prodname_emu_idp_application %} application or deactivate a user's account on your IdP, your IdP will communicate with {% data variables.product.prodname_dotcom %} to invalidate any SAML sessions and disable the member's account. The disabled account's information is maintained and their username is changed to a hash of their original username with the short code appended. If you reassign a user to the {% data variables.product.prodname_emu_idp_application %} application or reactivate their account on your IdP, the {% data variables.product.prodname_managed_user %} account on {% data variables.product.prodname_dotcom %} will be reactivated and username restored.
|
||||
|
||||
Groups in your IdP can be used to manage team membership within your enterprise's organizations, allowing you to configure repository access and permissions through your IdP. For more information, see "[Managing team memberships with identity provider groups](/github/setting-up-and-managing-your-enterprise/managing-your-enterprise-users-with-your-identity-provider/managing-team-memberships-with-identity-provider-groups)."
|
||||
Groups in your IdP can be used to manage team membership within your enterprise's organizations, allowing you to configure repository access and permissions through your IdP. 更多信息请参阅“[使用身份提供商组管理团队成员](/github/setting-up-and-managing-your-enterprise/managing-your-enterprise-users-with-your-identity-provider/managing-team-memberships-with-identity-provider-groups)”。
|
||||
|
||||
## 基本要求
|
||||
|
||||
@@ -51,6 +51,8 @@ To configure provisioning for your {% data variables.product.prodname_emu_enterp
|
||||
|
||||
After creating your personal access token and storing it securely, you can configure provisioning on your identity provider.
|
||||
|
||||
{% data reusables.scim.emu-scim-rate-limit %}
|
||||
|
||||
To configure Azure Active Directory to provision users for your {% data variables.product.prodname_emu_enterprise %}, see [Tutorial: Configure GitHub Enterprise Managed User for automatic user provisioning](https://docs.microsoft.com/en-us/azure/active-directory/saas-apps/github-enterprise-managed-user-provisioning-tutorial) in the Azure AD documentation.
|
||||
|
||||
To configure Okta to provision users for your {% data variables.product.prodname_emu_enterprise %}, see "[Configuring SCIM provisioning for Enterprise Managed Users with Okta](/github/setting-up-and-managing-your-enterprise/managing-your-enterprise-users-with-your-identity-provider/configuring-scim-provisioning-for-enterprise-managed-users-with-okta)."
|
||||
|
||||
@@ -67,7 +67,7 @@ You can restrict network traffic to your enterprise on {% data variables.product
|
||||
|
||||
{% elsif ghec %}
|
||||
|
||||
Enterprise owners can restrict access to assets owned by organizations in an enterprise by configuring an allow list for specific IP addresses. {% data reusables.identity-and-permissions.ip-allow-lists-example-and-restrictions %}
|
||||
Enterprise owners can restrict access to private assets owned by organizations in an enterprise by configuring an allow list for specific IP addresses. {% data reusables.identity-and-permissions.ip-allow-lists-example-and-restrictions %}
|
||||
|
||||
{% data reusables.identity-and-permissions.ip-allow-lists-cidr-notation %}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ shortTitle: 邀请人员进行管理
|
||||
|
||||
{% data reusables.enterprise-accounts.access-enterprise %}
|
||||
{% data reusables.enterprise-accounts.people-tab %}
|
||||
1. 在左侧边栏中,单击 **Administrators(管理员)**。 
|
||||
{% data reusables.enterprise-accounts.administrators-tab %}
|
||||
1. 在管理员列表上方,单击 {% ifversion ghec %}**邀请管理员**{% elsif ghes %}**添加所有者**{% endif %}。
|
||||
{% ifversion ghec %}
|
||||

|
||||
@@ -65,10 +65,11 @@ shortTitle: 邀请人员进行管理
|
||||
|
||||
{% data reusables.enterprise-accounts.access-enterprise %}
|
||||
{% data reusables.enterprise-accounts.people-tab %}
|
||||
1. 在您要删除的人员用户名旁边,单击 {% octicon "gear" aria-label="The Settings gear" %},然后单击 **Remove owner(删除所有者)**{% ifversion ghec %} 或**Remove billing manager(删除帐单管理员)**。{% endif %}
|
||||
{% data reusables.enterprise-accounts.administrators-tab %}
|
||||
1. Next to the username of the person you'd like to remove, click {% octicon "gear" aria-label="The Settings gear" %}, then click {% ifversion ghes %}**Remove owner**{% elsif ghec %}**Convert to member**{% endif %}.
|
||||
{% ifversion ghec %}
|
||||

|
||||
{% elsif ghes %}
|
||||

|
||||
{% endif %}
|
||||
1. 阅读确认,然后单击 **Remove owner(删除所有者)**{% ifversion ghec %} 或 **Remove billing manager(删除帐单管理员)**{% endif %}。
|
||||
1. Read the confirmation, then click {% ifversion ghes %}**Remove owner**{% elsif ghec %}**Yes, convert USERNAME to member**{% endif %}.
|
||||
|
||||
@@ -41,7 +41,7 @@ shortTitle: 查看企业中的人员
|
||||
|
||||
## Viewing suspended members in an {% data variables.product.prodname_emu_enterprise %}
|
||||
|
||||
If your enterprise uses {% data variables.product.prodname_emus %}, you can also view suspended users. Suspended users are members who have been deprovisioned after being unassigned from the {% data variables.product.prodname_emu_idp_application %} application or deleted from the identity provider. For more information, see "[About Enterprise Managed Users](/admin/identity-and-access-management/managing-iam-with-enterprise-managed-users/about-enterprise-managed-users)."
|
||||
If your enterprise uses {% data variables.product.prodname_emus %}, you can also view suspended users. Suspended users are members who have been deprovisioned after being unassigned from the {% data variables.product.prodname_emu_idp_application %} application or deleted from the identity provider. 更多信息请参阅“[关于企业管理用户](/admin/identity-and-access-management/managing-iam-with-enterprise-managed-users/about-enterprise-managed-users)”。
|
||||
|
||||
{% data reusables.enterprise-accounts.access-enterprise %}
|
||||
{% data reusables.enterprise-accounts.people-tab %}
|
||||
|
||||
@@ -52,6 +52,13 @@ shortTitle: 降级订阅
|
||||
|
||||
如果将您的组织从 {% data variables.product.prodname_ghe_cloud %} 降级到 {% data variables.product.prodname_team %} 或 {% data variables.product.prodname_free_team %},该帐户将失去对高级安全性、合规性和部署控件的访问权限。 {% data reusables.gated-features.more-info %}
|
||||
|
||||
|
||||
{% note %}
|
||||
|
||||
**注意:** 如果您当前正在试用 {% data variables.product.prodname_ghe_cloud %},并且在试用期结束前未购买 {% data variables.product.prodname_enterprise %} ,则您的组织将自动降级为 {% data variables.product.prodname_free_team %} 或 {% data variables.product.prodname_team %}。 更多信息请参阅“[设置 {% data variables.product.prodname_ghe_cloud %} 的试用](/get-started/signing-up-for-github/setting-up-a-trial-of-github-enterprise-cloud#finishing-your-trial)”。
|
||||
|
||||
{% endnote %}
|
||||
|
||||
{% data reusables.organizations.billing-settings %}
|
||||
1. 在“Current plan(当前计划)”下,使用 **Edit(编辑)**下拉菜单,单击您想要的降级选项。 
|
||||
{% data reusables.dotcom_billing.confirm_cancel_org_plan %}
|
||||
|
||||
@@ -16,17 +16,19 @@ shortTitle: 设置
|
||||
|
||||
This guide shows you how your team can get {% data variables.product.prodname_vs %} subscribers licensed and started with {% data variables.product.prodname_enterprise %}.
|
||||
|
||||
If you prefer video, you can watch [Setting up your {% data variables.product.prodname_enterprise %} licenses with {% data variables.product.prodname_vs %} subscriptions](https://www.youtube.com/watch?v=P_zBgp_BE_I) on Microsoft Visual Studio's YouTube channel.
|
||||
|
||||
## Roles for {% data variables.product.prodname_vss_ghe %}
|
||||
|
||||
Before setting up {% data variables.product.prodname_vss_ghe %}, it's important to understand the roles for this combined offering.
|
||||
|
||||
| Role | 服务 | 描述 | 更多信息 |
|
||||
|:----------------------- |:----------------------------------------------------- |:------------------------------------------------------------------------------------------------------------------------------------------- |:------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| **Subscriptions admin** | {% data variables.product.prodname_vs %} subscription | Person who assigns licenses for {% data variables.product.prodname_vs %} subscription | [Overview of admin responsibilities](https://docs.microsoft.com/en-us/visualstudio/subscriptions/admin-responsibilities) in Microsoft Docs |
|
||||
| **Subscriber** | {% data variables.product.prodname_vs %} subscription | Person who uses a license for {% data variables.product.prodname_vs %} subscription | [Visual Studio Subscriptions documentation](https://docs.microsoft.com/en-us/visualstudio/subscriptions/) in Microsoft Docs |
|
||||
| **企业所有者** | {% data variables.product.prodname_dotcom %} | Person who has a user account that's an administrator of an enterprise on {% data variables.product.product_location %} | "[企业中的角色](/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise#enterprise-owner)" |
|
||||
| **Organization owner** | {% data variables.product.prodname_dotcom %} | Person who has a user account that's an owner of an organization in your team's enterprise on {% data variables.product.product_location %} | "[Roles in an organization](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization#organization-owners)" |
|
||||
| **Enterprise member** | {% data variables.product.prodname_dotcom %} | Person who has a user account that's a member of an enterprise on {% data variables.product.product_location %} | "[企业中的角色](/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise#enterprise-members)" |
|
||||
| Role | 服务 | 描述 | 更多信息 |
|
||||
|:----------------------- |:----------------------------------------------------- |:------------------------------------------------------------------------------------------------------------------------------------------- |:------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| **Subscriptions admin** | {% data variables.product.prodname_vs %} subscription | Person who assigns licenses for {% data variables.product.prodname_vs %} subscription | [Overview of admin responsibilities](https://docs.microsoft.com/en-us/visualstudio/subscriptions/admin-responsibilities) in Microsoft Docs |
|
||||
| **Subscriber** | {% data variables.product.prodname_vs %} subscription | Person who uses a license for {% data variables.product.prodname_vs %} subscription | [Visual Studio Subscriptions documentation](https://docs.microsoft.com/en-us/visualstudio/subscriptions/) in Microsoft Docs |
|
||||
| **企业所有者** | {% data variables.product.prodname_dotcom %} | Person who has a user account that's an administrator of an enterprise on {% data variables.product.product_location %} | "[企业中的角色](/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise#enterprise-owner)" |
|
||||
| **Organization owner** | {% data variables.product.prodname_dotcom %} | Person who has a user account that's an owner of an organization in your team's enterprise on {% data variables.product.product_location %} | "[组织中的角色](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization#organization-owners)" |
|
||||
| **Enterprise member** | {% data variables.product.prodname_dotcom %} | Person who has a user account that's a member of an enterprise on {% data variables.product.product_location %} | "[企业中的角色](/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise#enterprise-members)" |
|
||||
|
||||
## 基本要求
|
||||
|
||||
@@ -40,7 +42,7 @@ To set up {% data variables.product.prodname_vss_ghe %}, members of your team mu
|
||||
|
||||
One person may be able to complete the tasks because the person has all of the roles, but you may need to coordinate the tasks with multiple people. For more information, see "[Roles for {% data variables.product.prodname_vss_ghe %}](#roles-for-visual-studio-subscriptions-with-github-enterprise)."
|
||||
|
||||
1. An enterprise owner must create at least one organization in your enterprise on {% data variables.product.product_location %}. For more information, see "[Adding organizations to your enterprise](/admin/user-management/managing-organizations-in-your-enterprise/adding-organizations-to-your-enterprise)."
|
||||
1. An enterprise owner must create at least one organization in your enterprise on {% data variables.product.product_location %}. 更多信息请参阅“[将组织添加到企业](/admin/user-management/managing-organizations-in-your-enterprise/adding-organizations-to-your-enterprise)”。
|
||||
|
||||
1. The subscription admin must assign a license for {% data variables.product.prodname_vs %} to a subscriber in {% data variables.product.prodname_vss_admin_portal_with_url %}. For more information, see [Overview of the {% data variables.product.prodname_vs %} Subscriptions Administrator Portal](https://docs.microsoft.com/en-us/visualstudio/subscriptions/using-admin-portal) and [Assign {% data variables.product.prodname_vs %} Licenses in the {% data variables.product.prodname_vs %} Subscriptions Administration Portal](https://docs.microsoft.com/en-us/visualstudio/subscriptions/assign-license) in Microsoft Docs.
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ Any valid SARIF 2.1.0 output file can be uploaded, however, {% data variables.pr
|
||||
| `properties.tags[]` | **Optional.** An array of strings. {% data variables.product.prodname_code_scanning_capc %} uses `tags` to allow you to filter results on {% data variables.product.prodname_dotcom %}. For example, it is possible to filter to all results that have the tag `security`.
|
||||
| `properties.precision` | **Recommended.** A string that indicates how often the results indicated by this rule are true. For example, if a rule has a known high false-positive rate, the precision should be `low`. {% data variables.product.prodname_code_scanning_capc %} orders results by precision on {% data variables.product.prodname_dotcom %} so that the results with the highest `level`, and highest `precision` are shown first. Can be one of: `very-high`, `high`, `medium`, or `low`. {% ifversion fpt or ghes > 3.1 or ghae or ghec %}
|
||||
| `properties.problem.severity` | **Recommended.** A string that indicates the level of severity of any alerts generated by a non-security query. This, with the `properties.precision` property, determines whether the results are displayed by default on {% data variables.product.prodname_dotcom %} so that the results with the highest `problem.severity`, and highest `precision` are shown first. Can be one of: `error`, `warning`, or `recommendation`.
|
||||
| `properties.security-severity` | **Recommended.** A score that indicates the level of severity, between 0.0 and 10.0, for security queries (`@tags` includes `security`). This, with the `properties.precision` property, determines whether the results are displayed by default on {% data variables.product.prodname_dotcom %} so that the results with the highest `security-severity`, and highest `precision` are shown first. {% data variables.product.prodname_code_scanning_capc %} translates numerical scores as follows: over 9.0 is `critical`, 7.0 to 8.9 is `high`, 4.0 to 6.9 is `medium` and 3.9 or less is `low`. {% endif %}
|
||||
| `properties.security-severity` | **Recommended.** A string representing a score that indicates the level of severity, between 0.0 and 10.0, for security queries (`@tags` includes `security`). This, with the `properties.precision` property, determines whether the results are displayed by default on {% data variables.product.prodname_dotcom %} so that the results with the highest `security-severity`, and highest `precision` are shown first. {% data variables.product.prodname_code_scanning_capc %} translates numerical scores as follows: over 9.0 is `critical`, 7.0 to 8.9 is `high`, 4.0 to 6.9 is `medium` and 3.9 or less is `low`. {% endif %}
|
||||
|
||||
### `result` object
|
||||
|
||||
@@ -114,7 +114,7 @@ Any valid SARIF 2.1.0 output file can be uploaded, however, {% data variables.pr
|
||||
| Name | Description |
|
||||
|----|----|
|
||||
| `ruleId`| **Optional.** The unique identifier of the rule (`reportingDescriptor.id`). For more information, see the [`reportingDescriptor` object](#reportingdescriptor-object). {% data variables.product.prodname_code_scanning_capc %} uses the rule identifier to filter results by rule on {% data variables.product.prodname_dotcom %}.
|
||||
| `ruleIndex`| **Optional.** The index of the associated rule (`reportingDescriptor` object) in the tool component `rules` array. For more information, see the [`run` object](#run-object).
|
||||
| `ruleIndex`| **Optional.** The index of the associated rule (`reportingDescriptor` object) in the tool component `rules` array. For more information, see the [`run` object](#run-object). The allowed range for this property 0 to 2^63 - 1.
|
||||
| `rule`| **Optional.** A reference used to locate the rule (reporting descriptor) for this result. For more information, see the [`reportingDescriptor` object](#reportingdescriptor-object).
|
||||
| `level`| **Optional.** The severity of the result. This level overrides the default severity defined by the rule. {% data variables.product.prodname_code_scanning_capc %} uses the level to filter results by severity on {% data variables.product.prodname_dotcom %}.
|
||||
| `message.text`| **Required.** A message that describes the result. {% data variables.product.prodname_code_scanning_capc %} displays the message text as the title of the result. Only the first sentence of the message will be displayed when visible space is limited.
|
||||
@@ -129,7 +129,7 @@ A location within a programming artifact, such as a file in the repository or a
|
||||
|
||||
| Name | Description |
|
||||
|----|----|
|
||||
| `location.id` | **Optional.** A unique identifier that distinguishes this location from all other locations within a single result object.
|
||||
| `location.id` | **Optional.** A unique identifier that distinguishes this location from all other locations within a single result object. The allowed range for this property 0 to 2^63 - 1.
|
||||
| `location.physicalLocation` | **Required.** Identifies the artifact and region. For more information, see the [`physicalLocation`](#physicallocation-object).
|
||||
| `location.message.text` | **Optional.** A message relevant to the location.
|
||||
|
||||
|
||||
@@ -67,7 +67,6 @@ includeGuides:
|
||||
- /code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/listing-dependencies-configured-for-version-updates
|
||||
- /code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/managing-encrypted-secrets-for-dependabot
|
||||
- /code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/managing-pull-requests-for-dependency-updates
|
||||
- /code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/upgrading-from-dependabotcom-to-github-native-dependabot
|
||||
- /code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-alerts-for-vulnerable-dependencies
|
||||
- /code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-dependabot-security-updates
|
||||
- /code-security/supply-chain-security/managing-vulnerabilities-in-your-projects-dependencies/about-managing-vulnerable-dependencies
|
||||
|
||||
@@ -7,6 +7,7 @@ redirect_from:
|
||||
- /github/administering-a-repository/about-github-dependabot-version-updates
|
||||
- /github/administering-a-repository/about-dependabot-version-updates
|
||||
- /code-security/supply-chain-security/about-dependabot-version-updates
|
||||
- /code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/upgrading-from-dependabotcom-to-github-native-dependabot
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghec: '*'
|
||||
|
||||
@@ -15,7 +15,6 @@ topics:
|
||||
- Pull requests
|
||||
children:
|
||||
- /about-dependabot-version-updates
|
||||
- /upgrading-from-dependabotcom-to-github-native-dependabot
|
||||
- /enabling-and-disabling-dependabot-version-updates
|
||||
- /listing-dependencies-configured-for-version-updates
|
||||
- /managing-pull-requests-for-dependency-updates
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
---
|
||||
title: 从 Dependabot.com 上传到 GitHub 原生的 Dependabot
|
||||
intro: 您可以通过合并拉取请求升级到 GitHub 原生的 Dependabot,允许继续更新您的依赖项。
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
topics:
|
||||
- Repositories
|
||||
- Dependabot
|
||||
- Version updates
|
||||
- Dependencies
|
||||
redirect_from:
|
||||
- /code-security/supply-chain-security/upgrading-from-dependabotcom-to-github-native-dependabot
|
||||
shortTitle: Dependabot.com 升级
|
||||
---
|
||||
|
||||
{% warning %}
|
||||
|
||||
Dependabot Preview 已在 2021 年 8 月 3 日关闭。 为了继续获取 Dependabot 更新,请迁移到 GitHub 原生的 Dependabot。
|
||||
|
||||
来自 Dependabot Preview 的开放拉取请求将保持开放状态,包括升级到 GitHub 原生 Dependabot 的拉取请求,但自动程序本身将不再适用于您的 {% data variables.product.prodname_dotcom %} 帐户和组织。
|
||||
|
||||
{% endwarning %}
|
||||
|
||||
## 关于从 Dependabot Preview 升级到 {% data variables.product.prodname_dotcom %} 原生的 {% data variables.product.prodname_dependabot %}
|
||||
|
||||
Dependabot Preview 已直接植入 {% data variables.product.prodname_dotcom %},因此您可以将 {% data variables.product.prodname_dependabot %} 与 {% data variables.product.prodname_dotcom %} 中的所有其他功能一起使用,而无需安装和使用单独的应用程序。 通过迁移到 {% data variables.product.prodname_dotcom %} 原生的 {% data variables.product.prodname_dependabot %},我们也可以注重将大量令人兴奋的新功能植入 {% data variables.product.prodname_dependabot %},包括更多的[生态系统更新](https://github.com/github/roadmap/issues/150)、[改进的通知](https://github.com/github/roadmap/issues/133)以及 {% data variables.product.prodname_dependabot %} 对 [{% data variables.product.prodname_ghe_server %}](https://github.com/github/roadmap/issues/86) 和 [{% data variables.product.prodname_ghe_managed %}](https://github.com/github/roadmap/issues/135) 的支持。
|
||||
|
||||
## Dependabot Preview 与 {% data variables.product.prodname_dotcom %} 原生 {% data variables.product.prodname_dependabot %} 之间的差异
|
||||
|
||||
虽然大多数 Dependabot Preview 功能存在于 {% data variables.product.prodname_dotcom %} 原生 {% data variables.product.prodname_dependabot %} 中,但仍有几个功能不可用:
|
||||
- **实时更新:** 我们希望将来恢复这些功能。 现在,您可以每天运行 {% data variables.product.prodname_dotcom %} {% data variables.product.prodname_dependabot %},以便在发布后的一天内捕获新包。
|
||||
- **PHP 环境变量注册表:** 对于依赖 `ACF_PRO_KEY` 环境变量的项目,您也许能够提供 Advanced Custom Fields 插件的许可副本。 相关示例请参阅 [dependabot/acf-php-example](https://github.com/dependabot/acf-php-example#readme)。 对于其他环境变量,您可以使用 {% data variables.product.prodname_actions %} 从这些注册表中获取依赖项。
|
||||
- **自动合并:**我们始终建议您在合并依赖项之前先验证它们;因此,在可预见的将来将不支持自动合并。 对于那些已审核依赖项或仅使用内部依赖项的用户,我们建议添加第三方自动合并应用程序,或设置用于合并的 GitHub Actions。 我们提供了 [`dependabot/fetch-metadata`](https://github.com/marketplace/actions/fetch-metadata-from-dependabot-prs) 操作来帮助开发者[启用 GitHub 的自动合并](https://github.com/dependabot/fetch-metadata/#enabling-auto-merge)。
|
||||
|
||||
在 {% data variables.product.prodname_dotcom %}-原生 {% data variables.product.prodname_dependabot %} 中,您可以使用配置文件配置所有版本更新。 此文件类似于 Dependabot Preview 配置文件,其中包含一些将自动包含在升级拉取请求中的更改和改进。 有关升级拉取请求的更多信息,请参阅“[升级到 GitHub 原生 Dependabot](/code-security/supply-chain-security/upgrading-from-dependabotcom-to-github-native-dependabot#upgrading-to-github-native-dependabot)”。
|
||||
|
||||
要查看以前在 Dependabot.com 仪表板上的 {% data variables.product.prodname_dotcom %}-原生 {% data variables.product.prodname_dependabot %} 的更新日志:
|
||||
|
||||
1. 导航到仓库的 **Insights(洞察)**页面。
|
||||
2. 单击左侧的 **Dependency graph(依赖项图)**。
|
||||
3. 单击 **{% data variables.product.prodname_dependabot %}**。
|
||||
|
||||
有关 {% data variables.product.prodname_dotcom %}-原生 {% data variables.product.prodname_dependabot %} 版本更新的更多信息,请参阅“[关于 Dependabot 版本更新](/code-security/supply-chain-security/about-dependabot-version-updates)”。
|
||||
|
||||
## 升级到 {% data variables.product.prodname_dotcom %}-原生 {% data variables.product.prodname_dependabot %}
|
||||
|
||||
从 Depabot Preview 升级到 {% data variables.product.prodname_dotcom %}-原生 {% data variables.product.prodname_dependabot %} 需要您合并仓库中的*升级到 GitHub-原生 Dependabot* 拉取请求。 此拉取请求包括 {% data variables.product.prodname_dotcom %}-原生 {% data variables.product.prodname_dependabot %} 所需的更新配置文件。
|
||||
|
||||
如果使用私有仓库,则必须在组织的安全和分析设置中授予 Dependabot 访问这些仓库的权限。 更多信息请参阅“[允许 Dependabot 访问私有依赖项](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization#allowing-dependabot-to-access-private-dependencies)”。 以前,Dependabot 可以访问组织内的所有仓库,但是我们实施了此更改,因为对 Dependabot 使用最小权限原则更为安全。
|
||||
|
||||
如果使用私人注册表,则必须将现有的 Dependabot Preview 密钥添加到仓库或组织的“ Dependabot 密钥”中。 更多信息请参阅“[管理 Dependabot 的加密密码](/code-security/supply-chain-security/managing-encrypted-secrets-for-dependabot)”。
|
||||
|
||||
如果您在迁移方面有任何问题或需要帮助,您可以在 [`dependabot/dependabot-core`](https://github.com/dependabot/dependabot-core/issues/new?assignees=%40dependabot%2Fpreview-migration-reviewers&labels=E%3A+preview-migration&template=migration-issue.md&title=) 仓库中查看或打开议题。
|
||||
@@ -54,7 +54,7 @@ topics:
|
||||
1. 查看漏洞的详细信息以及包含自动安全更新的拉取请求(如果有)。
|
||||
1. (可选)如果还没有针对该警报的 {% data variables.product.prodname_dependabot_security_updates %} 更新,要创建拉取请求以解决该漏洞,请单击 **Create {% data variables.product.prodname_dependabot %} security update(创建 Dependabot 安全更新)**。 
|
||||
1. 当您准备好更新依赖项并解决漏洞时,合并拉取请求。 {% data variables.product.prodname_dependabot %} 提出的每个拉取请求都包含可用于控制 {% data variables.product.prodname_dependabot %} 的命令的相关信息。 更多信息请参阅“[管理依赖项更新的拉取请求](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/managing-pull-requests-for-dependency-updates#managing-dependabot-pull-requests-with-comment-commands)”。
|
||||
1. (可选)如果警报正在修复、不正确或位于未使用的代码中,请选择“Dismiss(忽略)”,然后单击忽略警报的原因。 
|
||||
1. Optionally, if the alert is being fixed, if it's incorrect, or located in unused code, select the "Dismiss" dropdown, and click a reason for dismissing the alert.{% if reopen-dependabot-alerts %} Unfixed dismissed alerts can be reopened later.{% endif %} 
|
||||
|
||||
{% elsif ghes = 3.3 %}
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
@@ -83,6 +83,19 @@ topics:
|
||||
1. **Dependencies(依赖项)**选项卡顶部的横幅将会显示,直到解决所有漏洞依赖项或者您忽略该横幅。 单击横幅右上角的 **Dismiss(忽略)**并选择忽略警报的原因。 
|
||||
{% endif %}
|
||||
|
||||
{% if reopen-dependabot-alerts %}
|
||||
|
||||
## Viewing and updating closed alerts
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
{% data reusables.repositories.sidebar-security %}
|
||||
{% data reusables.repositories.sidebar-dependabot-alerts %}
|
||||
1. To just view closed alerts, click **Closed**. 
|
||||
1. Click the alert that you would like to view or update. 
|
||||
2. Optionally, if the alert was dismissed and you wish to reopen it, click **Reopen**. 
|
||||
|
||||
{% endif %}
|
||||
|
||||
## 延伸阅读
|
||||
|
||||
- "[关于有漏洞依赖项的警报](/code-security/supply-chain-security/about-alerts-for-vulnerable-dependencies)" {% ifversion fpt or ghec or ghes > 3.2 %}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Enabling Codespaces for your organization
|
||||
shortTitle: Enable Codespaces
|
||||
title: 为组织启用 Codespaces
|
||||
shortTitle: 启用 Codespaces
|
||||
intro: '您可以控制组织中的哪些用户可以使用 {% data variables.product.prodname_codespaces %}。'
|
||||
product: '{% data reusables.gated-features.codespaces %}'
|
||||
permissions: 'To manage user permissions for {% data variables.product.prodname_codespaces %} for an organization, you must be an organization owner.'
|
||||
@@ -17,20 +17,20 @@ topics:
|
||||
---
|
||||
|
||||
|
||||
## About enabling {% data variables.product.prodname_codespaces %} for your organization
|
||||
## 关于为组织启用 {% data variables.product.prodname_codespaces %}
|
||||
|
||||
组织所有者可以控制组织中的哪些用户可以创建和使用代码空间。
|
||||
|
||||
To use codespaces in your organization, you must do the following:
|
||||
要在组织中使用 Codespaces,必须执行以下操作:
|
||||
|
||||
- Ensure that users have [at least write access](/organizations/managing-access-to-your-organizations-repositories/repository-permission-levels-for-an-organization) to the repositories where they want to use a codespace.
|
||||
- [Enable {% data variables.product.prodname_codespaces %} for users in your organization](#enable-codespaces-for-users-in-your-organization). You can choose allow {% data variables.product.prodname_codespaces %} for selected users or only for specific users.
|
||||
- 确保用户他们要在其中使用代码空间的存储库[至少具有写入权限](/organizations/managing-access-to-your-organizations-repositories/repository-permission-levels-for-an-organization)。
|
||||
- [为组织中的用户启用 {% data variables.product.prodname_codespaces %}](#enable-codespaces-for-users-in-your-organization)。 您可以选择允许所选用户使用 {% data variables.product.prodname_codespaces %} ,也可以选择仅允许特定用户使用。
|
||||
- [设置支出限制](/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces)
|
||||
- 确保您的组织未启用 IP 地址允许列表。 更多信息请参阅“[管理组织允许的 IP 地址](/organizations/keeping-your-organization-secure/managing-allowed-ip-addresses-for-your-organization)”。
|
||||
|
||||
默认情况下,代码空间只能访问从中创建它的存储库。 如果您希望组织中的代码空间能够访问代码空间创建者可以访问的其他组织仓库,请参阅“[管理 {% data variables.product.prodname_codespaces %} 的访问和安全](/codespaces/managing-codespaces-for-your-organization/managing-access-and-security-for-your-organizations-codespaces)”。
|
||||
|
||||
## Enable {% data variables.product.prodname_codespaces %} for users in your organization
|
||||
## 为组织中的用户启用 {% data variables.product.prodname_codespaces %}
|
||||
|
||||
{% data reusables.profile.access_org %}
|
||||
{% data reusables.profile.org_settings %}
|
||||
@@ -38,25 +38,25 @@ To use codespaces in your organization, you must do the following:
|
||||
1. 在“User permissions(用户权限)”下,选择以下选项之一:
|
||||
|
||||
* **Selected users(所选用户)**选择特定组织成员使用 {% data variables.product.prodname_codespaces %}。
|
||||
* **Allow for all members** to allow all your organization members to use {% data variables.product.prodname_codespaces %}.
|
||||
* **Allow for all members and outside collaborators** to allow all your organization members as well as outside collaborators to use {% data variables.product.prodname_codespaces %}.
|
||||
* **允许所有成员**以允许所有组织成员使用 {% data variables.product.prodname_codespaces %}。
|
||||
* **允许所有成员和外部协作者**以允许所有组织成员以及外部协作者使用 {% data variables.product.prodname_codespaces %}。
|
||||
|
||||

|
||||
|
||||
{% note %}
|
||||
|
||||
**Note:** When you select **Allow for all members and outside collaborators**, all outside collaborators who have been added to specific repositories can create and use {% data variables.product.prodname_codespaces %}. Your organization will be billed for all usage incurred by outside collaborators. For more information on managing outside collaborators, see "[About outside collaborators](/organizations/managing-access-to-your-organizations-repositories/adding-outside-collaborators-to-repositories-in-your-organization#about-outside-collaborators)."
|
||||
**注意:** 当您选择 **Allow for all members and outside collaborators(允许所有成员和外部协作者)**时,所有已添加到特定存储库的外部协作者都可以创建和使用 {% data variables.product.prodname_codespaces %}。 您的组织将对外部协作者发生的所有使用付费。 有关管理外部协作者的详细信息,请参阅“[关于外部协作者](/organizations/managing-access-to-your-organizations-repositories/adding-outside-collaborators-to-repositories-in-your-organization#about-outside-collaborators)”。
|
||||
|
||||
{% endnote %}
|
||||
|
||||
1. 单击 **Save(保存)**。
|
||||
|
||||
## Disabling {% data variables.product.prodname_codespaces %} for your organization
|
||||
## 为组织禁用 {% data variables.product.prodname_codespaces %}
|
||||
|
||||
{% data reusables.profile.access_org %}
|
||||
{% data reusables.profile.org_settings %}
|
||||
{% data reusables.organizations.click-codespaces %}
|
||||
1. Under "User permissions", select **Disabled**.
|
||||
1. 在“User permissions(用户权限)”下,选择 **Disabled(已禁用)**。
|
||||
|
||||
## 设置支出限制
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Managing repository access for your organization's codespaces
|
||||
title: 管理组织代码空间的存储库访问
|
||||
shortTitle: 存储库访问
|
||||
intro: '您可以管理 {% data variables.product.prodname_codespaces %} 可以访问的组织仓库。'
|
||||
product: '{% data reusables.gated-features.codespaces %}'
|
||||
@@ -18,7 +18,7 @@ redirect_from:
|
||||
- /codespaces/working-with-your-codespace/managing-access-and-security-for-codespaces
|
||||
---
|
||||
|
||||
默认情况下,代码空间只能访问创建它的仓库。 When you enable access and security for a repository owned by your organization, any codespaces that are created for that repository will also have read permissions to all other repositories the organization owns and the codespace creator has permissions to access. If you want to restrict the repositories a codespace can access, you can limit it to either the repository where the codespace was created, or to specific repositories. 您应该只对您信任的仓库启用访问和安全。
|
||||
默认情况下,代码空间只能访问创建它的仓库。 当您为组织拥有的存储库启用访问和安全性时,为该存储库创建的任何代码空间也将对组织拥有的所有其他存储库具有读取权限,并且代码空间创建者具有访问权限。 如果要限制代码空间可以访问的存储库,可以将其限制为创建代码空间的存储库或特定存储库。 您应该只对您信任的仓库启用访问和安全。
|
||||
|
||||
要管理组织中的哪些用户可以使用 {% data variables.product.prodname_codespaces %},请参阅“[管理组织的用户权限](/codespaces/managing-codespaces-for-your-organization/managing-user-permissions-for-your-organization)”。
|
||||
|
||||
@@ -30,4 +30,4 @@ redirect_from:
|
||||
|
||||
## 延伸阅读
|
||||
|
||||
- "[Managing repository access for your codespaces](/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces)"
|
||||
- "[管理代码空间的存储库访问](/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces)"
|
||||
|
||||
@@ -320,6 +320,16 @@ GitHub 尝试自动更改拉取请求的基本分支已成功。
|
||||
|:-------------------------- |:--------:|:---------:|
|
||||
| <ul><li>拉取请求</li></ul> | **X** | **X** |
|
||||
|
||||
## head_ref_force_pushed
|
||||
|
||||
The pull request's HEAD branch was force pushed.
|
||||
|
||||
### 可用性
|
||||
|
||||
| 议题类型 | 议题事件 API | 时间表事件 API |
|
||||
|:-------------------------- |:--------:|:---------:|
|
||||
| <ul><li>拉取请求</li></ul> | **X** | **X** |
|
||||
|
||||
### 事件对象属性
|
||||
|
||||
{% data reusables.issue-events.issue-event-common-properties %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Repl.it with GitHub Classroom
|
||||
shortTitle: Repl.it with GitHub Classroom
|
||||
intro: 'As of July 13 2021, Repl.it integration is no longer available in {% data variables.product.prodname_classroom %}.'
|
||||
title: 使用 GitHub Classroom 的 Repl.it
|
||||
shortTitle: 使用 GitHub Classroom 的 Repl.it
|
||||
intro: '自 2021 年 7 月 13 日起,Repl.it 集成在 {% data variables.product.prodname_classroom %} 中不再可用。'
|
||||
versions:
|
||||
fpt: '*'
|
||||
redirect_from:
|
||||
@@ -10,19 +10,19 @@ redirect_from:
|
||||
- /education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/about-using-replit-with-github-classroom
|
||||
---
|
||||
|
||||
## What’s changing with Repl.it integration
|
||||
## Repl.it 集成有什么变化
|
||||
|
||||
As of July 13 2021, Repl.it integration is no longer available. Here’s what’s changed:
|
||||
自 2021 年 7 月 13 日起,Repl.it 集成不再可用。 变化如下:
|
||||
|
||||
- New private and public repls can no longer be created from within GitHub Classroom.
|
||||
- Replit Hacker benefits, such as Always On and Boosts, are no longer available for new GitHub Classroom users.
|
||||
- 无法再从 GitHub Classroom 中创建新的私有和公共版本。
|
||||
- Replit Hacker 的权益(如 Always On 和 Boosts)不再适用于新的 GitHub Classroom 用户。
|
||||
|
||||
## What does this mean for existing assignments?
|
||||
Your existing GitHub Classroom repls will remain private forever and you can submit work to GitHub Classroom via these repls until September 30 2021. After September 2021, the Replit icon on the assignment README will no longer work. We suggest you remove the instructions from any README using the integration and let students know that the icon will no longer work.
|
||||
## 这对现有作业意味着什么?
|
||||
您现有的 GitHub Classroom 回复将永远保持私密状态,在 2021 年 9 月 30 日之前您可以通过这些回复向 GitHub Classroom 提交作业。 2021 年 9 月之后,作业自述文件上的 Replit 图标将不再有效。 我们建议您使用集成从任何自述文件中删除说明,并让学生知道该图标将不再有效。
|
||||
|
||||
While you can no longer create private repls from within Classroom, you can continue to create private repls in Replit until September 30th.
|
||||
虽然您无法再在 Classroom 中创建私有回复,但在 9 月 30 日之前您可以继续在 Replit 中创建私密回复。
|
||||
|
||||
We know cloud IDE integrations are important to your classroom and are working hard to bring you more options.
|
||||
我们知道云 IDE 集成对您的课堂很重要,正在努力为您带来更多选择。
|
||||
|
||||
## 延伸阅读
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Using GitHub CLI extensions
|
||||
intro: 'Learn how to use custom extensions written by other {% data variables.product.prodname_cli %} users.'
|
||||
title: 使用 GitHub CLI 扩展
|
||||
intro: '了解如何使用其他 {% data variables.product.prodname_cli %} 用户编写的自定义扩展。'
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -14,21 +14,21 @@ topics:
|
||||
|
||||
{% note %}
|
||||
|
||||
**Note:** Extensions outside of {% data variables.product.product_name %} and {% data variables.product.prodname_cli %} are not certified by {% data variables.product.product_name %} and are governed by separate terms of service, privacy policy, and support documentation. To mitigate risk when using third-party extensions, audit the source code of the extension before installing or updating the extension.
|
||||
**注意: {% data variables.product.product_name %} 和 {% data variables.product.prodname_cli %} 以外的** 扩展未经 {% data variables.product.product_name %} 认证,并受单独的服务条款、隐私政策和支持文档的约束。 要在使用第三方扩展时降低风险,请在安装或更新扩展之前审核扩展的源代码。
|
||||
|
||||
{% endnote %}
|
||||
|
||||
{% data reusables.cli.cli-extensions %} For more information about how to create {% data variables.product.prodname_cli %} extensions, see "[Creating {% data variables.product.prodname_cli %} extensions](/github-cli/github-cli/creating-github-cli-extensions)."
|
||||
{% data reusables.cli.cli-extensions %} 有关如何创建 {% data variables.product.prodname_cli %} 扩展的详细信息,请参阅“[创建 {% data variables.product.prodname_cli %} 扩展](/github-cli/github-cli/creating-github-cli-extensions)”。
|
||||
|
||||
Extensions are locally installed and are scoped to the user. Therefore, if you access {% data variables.product.prodname_cli %} from a different machine or another user accesses {% data variables.product.prodname_cli %} from the same machine, the extension will not be available.
|
||||
扩展在本地安装,范围限定为用户。 因此,如果您从另一台计算机访问 {% data variables.product.prodname_cli %} ,或者其他用户从同一台计算机访问 {% data variables.product.prodname_cli %} ,则该扩展将不可用。
|
||||
|
||||
## Finding extensions
|
||||
## 查找扩展
|
||||
|
||||
You can find extensions by browsing [repositories with the `gh-extension` topic](https://github.com/topics/gh-extension).
|
||||
您可以通过浏览[具有 `gh-extension` 主题的存储库](https://github.com/topics/gh-extension)来查找扩展。
|
||||
|
||||
## Installing extensions
|
||||
## 安装扩展
|
||||
|
||||
To install an extension, use the `extensions install` subcommand. Replace the `repo` parameter with the repository of the extension. You can use the full URL, such as `https://github.com/octocat/gh-whoami`, or just the owner and repository, such as `octocat/gh-whoami`.
|
||||
要安装扩展,请使用 `extensions install` 子命令。 将 `repo` 参数替换为扩展的存储库。 You can use the full URL, such as `https://github.com/octocat/gh-whoami`, or just the owner and repository, such as `octocat/gh-whoami`.
|
||||
|
||||
If the owner and repository are used, `gh` will install the extension using the hostname to which `gh` is currently authenticated. The full URL format is useful when installing extensions from a different host. For example, users on {% data variables.product.prodname_ghe_server %} should use the full repository URL to install extensions from {% data variables.product.prodname_dotcom_the_website %} or any other host.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: 管理组织允许的 IP 地址
|
||||
intro: 您可以通过配置允许连接的 IP 地址列表来限制对组织资产的访问。
|
||||
intro: You can restrict access to your organization's private assets by configuring a list of IP addresses that are allowed to connect.
|
||||
product: '{% data reusables.gated-features.allowed-ip-addresses %}'
|
||||
redirect_from:
|
||||
- /github/setting-up-and-managing-organizations-and-teams/managing-allowed-ip-addresses-for-your-organization
|
||||
@@ -19,7 +19,7 @@ shortTitle: 管理允许的 IP 地址
|
||||
|
||||
## 关于允许的 IP 地址
|
||||
|
||||
您可以通过为特定 IP 地址配置允许列表来限制对组织资产的访问。 {% data reusables.identity-and-permissions.ip-allow-lists-example-and-restrictions %}
|
||||
You can restrict access to private organization assets by configuring an allow list for specific IP addresses. {% data reusables.identity-and-permissions.ip-allow-lists-example-and-restrictions %}
|
||||
|
||||
{% data reusables.identity-and-permissions.ip-allow-lists-cidr-notation %}
|
||||
|
||||
@@ -27,7 +27,7 @@ shortTitle: 管理允许的 IP 地址
|
||||
|
||||
如果您设置了允许列表,您还可以选择将为组织中安装的 {% data variables.product.prodname_github_apps %} 配置的任何 IP 地址自动添加到允许列表中。 {% data variables.product.prodname_github_app %} 的创建者可以为其应用程序配置允许列表,指定应用程序运行的 IP 地址。 通过将允许列表继承到您的列表中,您可以避免申请中的连接请求被拒绝。 更多信息请参阅“[允许 {% data variables.product.prodname_github_apps %} 访问](#allowing-access-by-github-apps)”。
|
||||
|
||||
您还可以为企业帐户中的组织配置允许的 IP 地址。 更多信息请参阅“[在企业中实施安全设置策略](/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-security-settings-in-your-enterprise)”。
|
||||
您还可以为企业帐户中的组织配置允许的 IP 地址。 更多信息请参阅“[在企业中实施安全设置策略](/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-security-settings-in-your-enterprise#managing-allowed-ip-addresses-for-organizations-in-your-enterprise)”。
|
||||
|
||||
## 添加允许的 IP 地址
|
||||
|
||||
|
||||
@@ -60,94 +60,98 @@ In addition to managing organization-level settings, organization owners have ad
|
||||
|
||||
{% endnote %}
|
||||
{% endif %}
|
||||
| 仓库操作 | 读取 | 分类 | 写入 | 维护 | 管理员 |
|
||||
|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |:-----:|:-----:|:-----:|:-----:|:---------------------------------------------:|
|
||||
| Manage [individual](/organizations/managing-access-to-your-organizations-repositories/managing-an-individuals-access-to-an-organization-repository), [team](/organizations/managing-access-to-your-organizations-repositories/managing-team-access-to-an-organization-repository), and [outside collaborator](/organizations/managing-access-to-your-organizations-repositories/adding-outside-collaborators-to-repositories-in-your-organization) access to the repository | | | | | **X** |
|
||||
| 从人员或团队的已分配仓库拉取 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 复刻人员或团队的已分配仓库 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 编辑和删除自己的评论 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 打开议题 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 关闭自己打开的议题 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 重新打开自己关闭的议题 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 受理议题 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 从团队已分配仓库的复刻发送拉取请求 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 提交拉取请求审查 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 查看已发布的版本 | **X** | **X** | **X** | **X** | **X** |{% ifversion fpt or ghec %}
|
||||
| 查看 [GitHub Actions 工作流程运行](/actions/automating-your-workflow-with-github-actions/managing-a-workflow-run) | **X** | **X** | **X** | **X** | **X**
|
||||
| 仓库操作 | 读取 | 分类 | 写入 | 维护 | 管理员 |
|
||||
|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |:-----:|:-----:|:-----:|:-----:|:-------------------------------------------------------------------:|
|
||||
| Manage [individual](/organizations/managing-access-to-your-organizations-repositories/managing-an-individuals-access-to-an-organization-repository), [team](/organizations/managing-access-to-your-organizations-repositories/managing-team-access-to-an-organization-repository), and [outside collaborator](/organizations/managing-access-to-your-organizations-repositories/adding-outside-collaborators-to-repositories-in-your-organization) access to the repository | | | | | **X** |
|
||||
| 从人员或团队的已分配仓库拉取 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 复刻人员或团队的已分配仓库 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 编辑和删除自己的评论 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 打开议题 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 关闭自己打开的议题 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 重新打开自己关闭的议题 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 受理议题 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 从团队已分配仓库的复刻发送拉取请求 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 提交拉取请求审查 | **X** | **X** | **X** | **X** | **X** |
|
||||
| 查看已发布的版本 | **X** | **X** | **X** | **X** | **X** |{% ifversion fpt or ghec %}
|
||||
| 查看 [GitHub Actions 工作流程运行](/actions/automating-your-workflow-with-github-actions/managing-a-workflow-run) | **X** | **X** | **X** | **X** | **X**
|
||||
{% endif %}
|
||||
| 编辑公共仓库中的 Wiki | **X** | **X** | **X** | **X** | **X** |
|
||||
| 编辑私有仓库中的 Wiki | | | **X** | **X** | **X** |{% ifversion fpt or ghec %}
|
||||
| [举报滥用或垃圾内容](/communities/maintaining-your-safety-on-github/reporting-abuse-or-spam) | **X** | **X** | **X** | **X** | **X**
|
||||
| 编辑公共仓库中的 Wiki | **X** | **X** | **X** | **X** | **X** |
|
||||
| 编辑私有仓库中的 Wiki | | | **X** | **X** | **X** |{% ifversion fpt or ghec %}
|
||||
| [举报滥用或垃圾内容](/communities/maintaining-your-safety-on-github/reporting-abuse-or-spam) | **X** | **X** | **X** | **X** | **X**
|
||||
{% endif %}
|
||||
| 应用/忽略标签 | | **X** | **X** | **X** | **X** |
|
||||
| 创建、编辑、删除标签 | | | **X** | **X** | **X** |
|
||||
| 关闭、重新打开和分配所有议题与拉取请求 | | **X** | **X** | **X** | **X** |
|
||||
| [在拉取请求上启用和禁用自动合并](/github/administering-a-repository/managing-auto-merge-for-pull-requests-in-your-repository) | | | **X** | **X** | **X** |
|
||||
| 应用里程碑 | | **X** | **X** | **X** | **X** |
|
||||
| 标记[重复的议题和拉取请求](/articles/about-duplicate-issues-and-pull-requests) | | **X** | **X** | **X** | **X** |
|
||||
| 申请[拉取请求审查](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review) | | **X** | **X** | **X** | **X** |
|
||||
| 合并[拉取请求](/github/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/about-pull-request-merges) | | | **X** | **X** | **X** |
|
||||
| 推送到(写入)人员或团队的已分配仓库 | | | **X** | **X** | **X** |
|
||||
| 编辑和删除任何人对提交、拉取请求和议题的评论 | | | **X** | **X** | **X** |
|
||||
| [隐藏任何人的评论](/communities/moderating-comments-and-conversations/managing-disruptive-comments) | | | **X** | **X** | **X** |
|
||||
| [锁定对话](/communities/moderating-comments-and-conversations/locking-conversations) | | | **X** | **X** | **X** |
|
||||
| 转让议题(更多信息请参阅“[将议题转让给其他仓库](/articles/transferring-an-issue-to-another-repository)”) | | | **X** | **X** | **X** |
|
||||
| [作为仓库的指定代码所有者](/articles/about-code-owners) | | | **X** | **X** | **X** |
|
||||
| [将拉取请求草稿标记为可供审查](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request) | | | **X** | **X** | **X** |
|
||||
| [将拉取请求转换为草稿](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request) | | | **X** | **X** | **X** |
|
||||
| 提交影响拉取请求可合并性的审查 | | | **X** | **X** | **X** |
|
||||
| 对拉取请求[应用建议的更改](/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/incorporating-feedback-in-your-pull-request) | | | **X** | **X** | **X** |
|
||||
| 创建[状态检查](/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks) | | | **X** | **X** | **X** |{% ifversion fpt or ghec %}
|
||||
| 创建、编辑、运行、重新运行和取消 [GitHub Actions 工作流程](/actions/automating-your-workflow-with-github-actions/) | | | **X** | **X** | **X**
|
||||
| 应用/忽略标签 | | **X** | **X** | **X** | **X** |
|
||||
| 创建、编辑、删除标签 | | | **X** | **X** | **X** |
|
||||
| 关闭、重新打开和分配所有议题与拉取请求 | | **X** | **X** | **X** | **X** |
|
||||
| [在拉取请求上启用和禁用自动合并](/github/administering-a-repository/managing-auto-merge-for-pull-requests-in-your-repository) | | | **X** | **X** | **X** |
|
||||
| 应用里程碑 | | **X** | **X** | **X** | **X** |
|
||||
| 标记[重复的议题和拉取请求](/articles/about-duplicate-issues-and-pull-requests) | | **X** | **X** | **X** | **X** |
|
||||
| 申请[拉取请求审查](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review) | | **X** | **X** | **X** | **X** |
|
||||
| 合并[拉取请求](/github/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/about-pull-request-merges) | | | **X** | **X** | **X** |
|
||||
| 推送到(写入)人员或团队的已分配仓库 | | | **X** | **X** | **X** |
|
||||
| 编辑和删除任何人对提交、拉取请求和议题的评论 | | | **X** | **X** | **X** |
|
||||
| [隐藏任何人的评论](/communities/moderating-comments-and-conversations/managing-disruptive-comments) | | | **X** | **X** | **X** |
|
||||
| [锁定对话](/communities/moderating-comments-and-conversations/locking-conversations) | | | **X** | **X** | **X** |
|
||||
| 转让议题(更多信息请参阅“[将议题转让给其他仓库](/articles/transferring-an-issue-to-another-repository)”) | | | **X** | **X** | **X** |
|
||||
| [作为仓库的指定代码所有者](/articles/about-code-owners) | | | **X** | **X** | **X** |
|
||||
| [将拉取请求草稿标记为可供审查](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request) | | | **X** | **X** | **X** |
|
||||
| [将拉取请求转换为草稿](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request) | | | **X** | **X** | **X** |
|
||||
| 提交影响拉取请求可合并性的审查 | | | **X** | **X** | **X** |
|
||||
| 对拉取请求[应用建议的更改](/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/incorporating-feedback-in-your-pull-request) | | | **X** | **X** | **X** |
|
||||
| 创建[状态检查](/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks) | | | **X** | **X** | **X** |{% ifversion fpt or ghec %}
|
||||
| 创建、编辑、运行、重新运行和取消 [GitHub Actions 工作流程](/actions/automating-your-workflow-with-github-actions/) | | | **X** | **X** | **X**
|
||||
{% endif %}
|
||||
| 创建和编辑发行版 | | | **X** | **X** | **X** |
|
||||
| 查看发行版草稿 | | | **X** | **X** | **X** |
|
||||
| 编辑仓库的说明 | | | | **X** | **X** |{% ifversion fpt or ghae or ghec %}
|
||||
| [查看和安装包](/packages/publishing-and-managing-packages) | **X** | **X** | **X** | **X** | **X** |
|
||||
| [发布包](/packages/publishing-and-managing-packages/publishing-a-package) | | | **X** | **X** | **X** |
|
||||
| [删除和恢复包](/packages/learn-github-packages/deleting-and-restoring-a-package) | | | | | **X** |{% endif %}
|
||||
| 管理[主题](/articles/classifying-your-repository-with-topics) | | | | **X** | **X** |
|
||||
| 启用 wiki 和限制 wiki 编辑器 | | | | **X** | **X** |
|
||||
| 启用项目板 | | | | **X** | **X** |
|
||||
| 配置[拉取请求合并](/articles/configuring-pull-request-merges) | | | | **X** | **X** |
|
||||
| 配置[ {% data variables.product.prodname_pages %} 的发布源](/articles/configuring-a-publishing-source-for-github-pages) | | | | **X** | **X** |
|
||||
| [推送到受保护分支](/articles/about-protected-branches) | | | | **X** | **X** |
|
||||
| [创建和编辑仓库社交卡](/articles/customizing-your-repositorys-social-media-preview) | | | | **X** | **X** |{% ifversion fpt or ghec %}
|
||||
| 限制[仓库中的交互](/communities/moderating-comments-and-conversations/limiting-interactions-in-your-repository) | | | | **X** | **X**
|
||||
| 创建和编辑发行版 | | | **X** | **X** | **X** |
|
||||
| 查看发行版草稿 | | | **X** | **X** | **X** |
|
||||
| 编辑仓库的说明 | | | | **X** | **X** |{% ifversion fpt or ghae or ghec %}
|
||||
| [查看和安装包](/packages/publishing-and-managing-packages) | **X** | **X** | **X** | **X** | **X** |
|
||||
| [发布包](/packages/publishing-and-managing-packages/publishing-a-package) | | | **X** | **X** | **X** |
|
||||
| [删除和恢复包](/packages/learn-github-packages/deleting-and-restoring-a-package) | | | | | **X** |{% endif %}
|
||||
| 管理[主题](/articles/classifying-your-repository-with-topics) | | | | **X** | **X** |
|
||||
| 启用 wiki 和限制 wiki 编辑器 | | | | **X** | **X** |
|
||||
| 启用项目板 | | | | **X** | **X** |
|
||||
| 配置[拉取请求合并](/articles/configuring-pull-request-merges) | | | | **X** | **X** |
|
||||
| 配置[ {% data variables.product.prodname_pages %} 的发布源](/articles/configuring-a-publishing-source-for-github-pages) | | | | **X** | **X** |
|
||||
| [Manage branch protection rules](/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule) | | | | | **X** |
|
||||
| [推送到受保护分支](/articles/about-protected-branches) | | | | **X** | **X** |
|
||||
| 合并受保护分支上的拉取请求(即使没有批准审查) | | | | | **X** |{% ifversion fpt or ghes > 3.4 or ghae-issue-6337 or ghec %}
|
||||
| Create tags that match a [tag protection rule](/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/configuring-tag-protection-rules) | | | | **X** | **X** |
|
||||
| Delete tags that match a [tag protection rule](/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/configuring-tag-protection-rules) | | | | | **X**
|
||||
{% endif %}
|
||||
| 删除议题(请参阅“[删除议题](/articles/deleting-an-issue)”) | | | | | **X** |
|
||||
| 合并受保护分支上的拉取请求(即使没有批准审查) | | | | | **X** |
|
||||
| [定义仓库的代码所有者](/articles/about-code-owners) | | | | | **X** |
|
||||
| 将仓库添加到团队(详细信息请参阅“[管理团队对组织仓库的访问](/organizations/managing-access-to-your-organizations-repositories/managing-team-access-to-an-organization-repository#giving-a-team-access-to-a-repository)”) | | | | | **X** |
|
||||
| [管理外部协作者对仓库的权限](/articles/adding-outside-collaborators-to-repositories-in-your-organization) | | | | | **X** |
|
||||
| [更改仓库的可见性](/articles/restricting-repository-visibility-changes-in-your-organization) | | | | | **X** |
|
||||
| 将仓库设为模板(请参阅“[创建模板仓库](/articles/creating-a-template-repository)”) | | | | | **X** |
|
||||
| 更改仓库设置 | | | | | **X** |
|
||||
| 管理团队和协作者对仓库的权限 | | | | | **X** |
|
||||
| 编辑仓库的默认分支 | | | | | **X** |
|
||||
| 重命名仓库的默认分支(请参阅“[重命名分支](/github/administering-a-repository/renaming-a-branch)”) | | | | | **X** |
|
||||
| 重命名仓库默认分支以外的分支(请参阅“[重命名分支](/github/administering-a-repository/renaming-a-branch)”) | | | **X** | **X** | **X** |
|
||||
| 管理 web 挂钩和部署密钥 | | | | | **X** |{% ifversion fpt or ghec %}
|
||||
| [管理私有仓库的数据使用设置](/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository) | | | | | **X**
|
||||
| [创建和编辑仓库社交卡](/articles/customizing-your-repositorys-social-media-preview) | | | | **X** | **X** |{% ifversion fpt or ghec %}
|
||||
| 限制[仓库中的交互](/communities/moderating-comments-and-conversations/limiting-interactions-in-your-repository) | | | | **X** | **X**
|
||||
{% endif %}
|
||||
| [管理仓库的复刻策略](/github/administering-a-repository/managing-the-forking-policy-for-your-repository) | | | | | **X** |
|
||||
| [将仓库转让给组织](/articles/restricting-repository-creation-in-your-organization) | | | | | **X** |
|
||||
| [删除仓库或将仓库转让到组织外部](/articles/setting-permissions-for-deleting-or-transferring-repositories) | | | | | **X** |
|
||||
| [存档仓库](/articles/about-archiving-repositories) | | | | | **X** |{% ifversion fpt or ghec %}
|
||||
| 显示赞助按钮(请参阅“[在仓库中显示赞助按钮](/articles/displaying-a-sponsor-button-in-your-repository)”)。 | | | | | **X**
|
||||
| 删除议题(请参阅“[删除议题](/articles/deleting-an-issue)”) | | | | | **X** |
|
||||
| [定义仓库的代码所有者](/articles/about-code-owners) | | | | | **X** |
|
||||
| 将仓库添加到团队(详细信息请参阅“[管理团队对组织仓库的访问](/organizations/managing-access-to-your-organizations-repositories/managing-team-access-to-an-organization-repository#giving-a-team-access-to-a-repository)”) | | | | | **X** |
|
||||
| [管理外部协作者对仓库的权限](/articles/adding-outside-collaborators-to-repositories-in-your-organization) | | | | | **X** |
|
||||
| [更改仓库的可见性](/articles/restricting-repository-visibility-changes-in-your-organization) | | | | | **X** |
|
||||
| 将仓库设为模板(请参阅“[创建模板仓库](/articles/creating-a-template-repository)”) | | | | | **X** |
|
||||
| 更改仓库设置 | | | | | **X** |
|
||||
| 管理团队和协作者对仓库的权限 | | | | | **X** |
|
||||
| 编辑仓库的默认分支 | | | | | **X** |
|
||||
| 重命名仓库的默认分支(请参阅“[重命名分支](/github/administering-a-repository/renaming-a-branch)”) | | | | | **X** |
|
||||
| 重命名仓库默认分支以外的分支(请参阅“[重命名分支](/github/administering-a-repository/renaming-a-branch)”) | | | **X** | **X** | **X** |
|
||||
| 管理 web 挂钩和部署密钥 | | | | | **X** |{% ifversion fpt or ghec %}
|
||||
| [管理私有仓库的数据使用设置](/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository) | | | | | **X**
|
||||
{% endif %}
|
||||
| Create autolink references to external resources, like Jira or Zendesk (see "[Configuring autolinks to reference external resources](/articles/configuring-autolinks-to-reference-external-resources)") | | | | | **X** |{% ifversion fpt or ghec %}
|
||||
| 在仓库中[启用 {% data variables.product.prodname_discussions %}](/github/administering-a-repository/enabling-or-disabling-github-discussions-for-a-repository) | | | | **X** | **X** |
|
||||
| 为 {% data variables.product.prodname_discussions %} [创建和编辑类别](/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository) | | | | **X** | **X** |
|
||||
| [将讨论移动到其他类别](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository) | | | **X** | **X** | **X** |
|
||||
| [将讨论转移到](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository)新仓库 | | | **X** | **X** | **X** |
|
||||
| [管理置顶的讨论](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository) | | | **X** | **X** | **X** |
|
||||
| [批量将议题转换为讨论](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository) | | | **X** | **X** | **X** |
|
||||
| [锁定和解锁讨论](/discussions/managing-discussions-for-your-community/moderating-discussions) | | **X** | **X** | **X** | **X** |
|
||||
| [单独将议题转换为讨论](/discussions/managing-discussions-for-your-community/moderating-discussions) | | **X** | **X** | **X** | **X** |
|
||||
| [创建新的讨论并对现有讨论发表评论](/discussions/collaborating-with-your-community-using-discussions/participating-in-a-discussion) | **X** | **X** | **X** | **X** | **X** |
|
||||
| [删除讨论](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository#deleting-a-discussion) | | **X** | | **X** | **X** |{% endif %}{% ifversion fpt or ghec %}
|
||||
| 创建 [codespaces](/codespaces/about-codespaces) | | | **X** | **X** | **X**
|
||||
| [管理仓库的复刻策略](/github/administering-a-repository/managing-the-forking-policy-for-your-repository) | | | | | **X** |
|
||||
| [将仓库转让给组织](/articles/restricting-repository-creation-in-your-organization) | | | | | **X** |
|
||||
| [删除仓库或将仓库转让到组织外部](/articles/setting-permissions-for-deleting-or-transferring-repositories) | | | | | **X** |
|
||||
| [存档仓库](/articles/about-archiving-repositories) | | | | | **X** |{% ifversion fpt or ghec %}
|
||||
| 显示赞助按钮(请参阅“[在仓库中显示赞助按钮](/articles/displaying-a-sponsor-button-in-your-repository)”)。 | | | | | **X**
|
||||
{% endif %}
|
||||
| Create autolink references to external resources, like Jira or Zendesk (see "[Configuring autolinks to reference external resources](/articles/configuring-autolinks-to-reference-external-resources)") | | | | | **X** |{% ifversion fpt or ghec %}
|
||||
| 在仓库中[启用 {% data variables.product.prodname_discussions %}](/github/administering-a-repository/enabling-or-disabling-github-discussions-for-a-repository) | | | | **X** | **X** |
|
||||
| 为 {% data variables.product.prodname_discussions %} [创建和编辑类别](/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository) | | | | **X** | **X** |
|
||||
| [将讨论移动到其他类别](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository) | | | **X** | **X** | **X** |
|
||||
| [将讨论转移到](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository)新仓库 | | | **X** | **X** | **X** |
|
||||
| [管理置顶的讨论](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository) | | | **X** | **X** | **X** |
|
||||
| [批量将议题转换为讨论](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository) | | | **X** | **X** | **X** |
|
||||
| [锁定和解锁讨论](/discussions/managing-discussions-for-your-community/moderating-discussions) | | **X** | **X** | **X** | **X** |
|
||||
| [单独将议题转换为讨论](/discussions/managing-discussions-for-your-community/moderating-discussions) | | **X** | **X** | **X** | **X** |
|
||||
| [创建新的讨论并对现有讨论发表评论](/discussions/collaborating-with-your-community-using-discussions/participating-in-a-discussion) | **X** | **X** | **X** | **X** | **X** |
|
||||
| [删除讨论](/discussions/managing-discussions-for-your-community/managing-discussions-in-your-repository#deleting-a-discussion) | | **X** | | **X** | **X** |{% endif %}{% ifversion fpt or ghec %}
|
||||
| 创建 [codespaces](/codespaces/about-codespaces) | | | **X** | **X** | **X**
|
||||
{% endif %}
|
||||
|
||||
### Access requirements for security features
|
||||
|
||||
@@ -84,6 +84,8 @@ You can only choose an additional permission if it's not already included in the
|
||||
- **Set interaction limits**: Temporarily restrict certain users from commenting, opening issues, or creating pull requests in your public repository to enforce a period of limited activity. For more information, see "[Limiting interactions in your repository](/communities/moderating-comments-and-conversations/limiting-interactions-in-your-repository)."
|
||||
- **Set the social preview**: Add an identifying image to your repository that appears on social media platforms when your repository is linked. 更多信息请参阅“[自定义仓库的社交媒体审查](/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/customizing-your-repositorys-social-media-preview)”。
|
||||
- **Push commits to protected branches**: Push to a branch that is marked as a protected branch.
|
||||
- **Create protected tags**: Create tags that match a tag protection rule. For more information, see "[Configuring tag protection rules](/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/configuring-tag-protection-rules)."
|
||||
- **Delete protected tags**: Delete tags that match a tag protection rule. For more information, see "[Configuring tag protection rules](/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/configuring-tag-protection-rules)."
|
||||
|
||||
### 安全
|
||||
|
||||
|
||||
@@ -22,8 +22,6 @@ shortTitle: 启用和测试 SAML SSO
|
||||
|
||||
{% data reusables.saml.saml-disabled-linked-identities-removed %}
|
||||
|
||||
{% data reusables.saml.cannot-update-existing-saml-settings %}
|
||||
|
||||
## 启用和测试组织的 SAML 单点登录
|
||||
|
||||
在组织中实施 SAML SSO 之前,请确保您已准备好组织。 更多信息请参阅“[准备在组织中实施 SAML 单点登录](/articles/preparing-to-enforce-saml-single-sign-on-in-your-organization)”。
|
||||
|
||||
@@ -36,10 +36,6 @@ When you enable auto assignment, any time your team has been requested to review
|
||||
|
||||
When code owners are automatically requested for review, the team is still removed and replaced with individuals unless a branch protection rule is configured to require review from code owners. If such a branch protection rule is in place, the team request cannot be removed and so the individual request will appear in addition.
|
||||
|
||||
{% ifversion fpt %}
|
||||
为了进一步提高团队的协作能力,您可以升级到 {% data variables.product.prodname_ghe_cloud %},其中包括受保护的分支机构和私有仓库的代码所有者等功能。 {% data reusables.enterprise.link-to-ghec-trial %}
|
||||
{% endif %}
|
||||
|
||||
### 路由算法
|
||||
|
||||
代码审查分配根据两种可能的算法之一自动选择和分配审查者。
|
||||
|
||||
@@ -12,11 +12,11 @@ featuredLinks:
|
||||
- /packages/learn-github-packages/installing-a-package
|
||||
popular:
|
||||
- /packages/working-with-a-github-packages-registry/working-with-the-npm-registry
|
||||
- '{% ifversion fpt %}/packages/working-with-a-github-packages-registry/working-with-the-container-registry{% else %}/packages/working-with-a-github-packages-registry/working-with-the-docker-registry{% endif %}'
|
||||
- '{% ifversion fpt or ghec%}/packages/working-with-a-github-packages-registry/working-with-the-container-registry{% else %}/packages/working-with-a-github-packages-registry/working-with-the-docker-registry{% endif %}'
|
||||
- /packages/learn-github-packages
|
||||
- /packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry
|
||||
guideCards:
|
||||
- '{% ifversion fpt %}/packages/working-with-a-github-packages-registry/working-with-the-container-registry{% else %}/packages/working-with-a-github-packages-registry/working-with-the-docker-registry{% endif %}'
|
||||
- '{% ifversion fpt or ghec %}/packages/working-with-a-github-packages-registry/working-with-the-container-registry{% else %}/packages/working-with-a-github-packages-registry/working-with-the-docker-registry{% endif %}'
|
||||
- /packages/working-with-a-github-packages-registry/working-with-the-rubygems-registry
|
||||
changelog:
|
||||
label: packages
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Working with the Docker registry
|
||||
intro: '{% ifversion fpt or ghec %}The Docker registry has now been replaced by the {% data variables.product.prodname_container_registry %}.{% else %}You can push and pull your Docker images using the {% data variables.product.prodname_registry %} Docker registry, which uses the package namespace `https://docker.pkg.github.com`.{% endif %}'
|
||||
intro: '{% ifversion fpt or ghec %}The Docker registry has now been replaced by the {% data variables.product.prodname_container_registry %}.{% else %}You can push and pull your Docker images using the {% data variables.product.prodname_registry %} Docker registry.{% endif %}'
|
||||
product: '{% data reusables.gated-features.packages %}'
|
||||
redirect_from:
|
||||
- /articles/configuring-docker-for-use-with-github-package-registry
|
||||
|
||||
@@ -92,21 +92,21 @@ If you choose the `/docs` folder of any branch as your publishing source, {% dat
|
||||
## Limits on use of {% data variables.product.prodname_pages %}
|
||||
|
||||
{% ifversion fpt or ghec %}
|
||||
{% data variables.product.prodname_pages %} sites created after June 15, 2016 and using `github.io` domains are served over HTTPS. If you created your site before June 15, 2016, you can enable HTTPS support for traffic to your site. For more information, see "[Securing your {% data variables.product.prodname_pages %} with HTTPS](/articles/securing-your-github-pages-site-with-https)."
|
||||
{% data variables.product.prodname_pages %} sites created after June 15, 2016, and using `github.io` domains are served over HTTPS. If you created your site before June 15, 2016, you can enable HTTPS support for traffic to your site. For more information, see "[Securing your {% data variables.product.prodname_pages %} with HTTPS](/articles/securing-your-github-pages-site-with-https)."
|
||||
|
||||
### Prohibited uses
|
||||
{% endif %}
|
||||
{% data variables.product.prodname_pages %} is not intended for or allowed to be used as a free web hosting service to run your online business, e-commerce site, or any other website that is primarily directed at either facilitating commercial transactions or providing commercial software as a service (SaaS). {% data reusables.pages.no_sensitive_data_pages %}
|
||||
{% data variables.product.prodname_pages %} is not intended for or allowed to be used as a free web-hosting service to run your online business, e-commerce site, or any other website that is primarily directed at either facilitating commercial transactions or providing commercial software as a service (SaaS). {% data reusables.pages.no_sensitive_data_pages %}
|
||||
|
||||
In addition, your use of {% data variables.product.prodname_pages %} is subject to the [GitHub Terms of Service](/free-pro-team@latest/github/site-policy/github-terms-of-service/), including the restrictions on get rich quick schemes, sexually obscene content, and violent or threatening content or activity.
|
||||
In addition, your use of {% data variables.product.prodname_pages %} is subject to the [GitHub Terms of Service](/free-pro-team@latest/github/site-policy/github-terms-of-service/), including the restrictions on get-rich-quick schemes, sexually obscene content, and violent or threatening content or activity.
|
||||
|
||||
### Usage limits
|
||||
{% data variables.product.prodname_pages %} sites are subject to the following usage limits:
|
||||
|
||||
- {% data variables.product.prodname_pages %} source repositories have a recommended limit of 1GB.{% ifversion fpt or ghec %} For more information, see "[What is my disk quota?"](/articles/what-is-my-disk-quota/#file-and-repository-size-limitations){% endif %}
|
||||
- {% data variables.product.prodname_pages %} source repositories have a recommended limit of 1 GB.{% ifversion fpt or ghec %} For more information, see "[What is my disk quota?](/articles/what-is-my-disk-quota/#file-and-repository-size-limitations)"{% endif %}
|
||||
- Published {% data variables.product.prodname_pages %} sites may be no larger than 1 GB.
|
||||
{% ifversion fpt or ghec %}
|
||||
- {% data variables.product.prodname_pages %} sites have a *soft* bandwidth limit of 100GB per month.
|
||||
- {% data variables.product.prodname_pages %} sites have a *soft* bandwidth limit of 100 GB per month.
|
||||
- {% data variables.product.prodname_pages %} sites have a *soft* limit of 10 builds per hour.
|
||||
|
||||
If your site exceeds these usage quotas, we may not be able to serve your site, or you may receive a polite email from {% data variables.contact.contact_support %} suggesting strategies for reducing your site's impact on our servers, including putting a third-party content distribution network (CDN) in front of your site, making use of other {% data variables.product.prodname_dotcom %} features such as releases, or moving to a different hosting service that might better fit your needs.
|
||||
|
||||
@@ -39,22 +39,22 @@ remote: error: Required status check "ci-build" is failing
|
||||
|
||||
{% ifversion fpt or ghae or ghes or ghec %}
|
||||
|
||||
## Conflicts between head commit and test merge commit
|
||||
## 头部提交与测试合并提交之间的冲突
|
||||
|
||||
有时,测试合并提交与头部提交的状态检查结果存在冲突。 如果测试合并提交具有状态,则测试合并提交必须通过。 否则,必须传递头部提交的状态后才可合并该分支。 有关测试合并提交的更多信息,请参阅“[拉取](/rest/reference/pulls#get-a-pull-request)”。
|
||||
|
||||

|
||||
{% endif %}
|
||||
|
||||
## Handling skipped but required checks
|
||||
## 处理已跳过但需要检查
|
||||
|
||||
Sometimes a required status check is skipped on pull requests due to path filtering. For example, a Node.JS test will be skipped on a pull request that just fixes a typo in your README file and makes no changes to the JavaScript and TypeScript files in the `scripts` directory.
|
||||
有时,由于路径筛选,在拉取请求上会跳过所需的状态检查。 例如,Node.JS 测试在仅修复自述文件中拼写错误的拉取请求上将跳过,并且不会更改 `scripts` 目录中的 JavaScript 和 TypeScript 文件。
|
||||
|
||||
If this check is required and it gets skipped, then the check's status is shown as pending, because it's required. In this situation you won't be able to merge the pull request.
|
||||
如果此检查是必需的,并且被跳过,则检查的状态将显示为挂起,因为它是必需的。 在此情况下,您将无法合并拉取请求。
|
||||
|
||||
### 示例
|
||||
|
||||
In this example you have a workflow that's required to pass.
|
||||
在此示例中,您有一个需要通过的工作流程。
|
||||
|
||||
```yaml
|
||||
name: ci
|
||||
@@ -81,11 +81,11 @@ jobs:
|
||||
- run: npm test
|
||||
```
|
||||
|
||||
If someone submits a pull request that changes a markdown file in the root of the repository, then the workflow above won't run at all because of the path filtering. As a result you won't be able to merge the pull request. You would see the following status on the pull request:
|
||||
如果有人提交更改存储库根目录中 Markdown 文件的拉取请求,则上述工作流程将因路径筛选而完全不会运行。 因此,您将无法合并拉取请求。 您将在拉取请求上看到以下状态:
|
||||
|
||||

|
||||

|
||||
|
||||
You can fix this by creating a generic workflow, with the same name, that will return true in any case similar to the workflow below :
|
||||
您可以通过创建具有相同名称的通用工作流程来解决此问题,该工作流程在任何情况下都将返回 true,类似于下面的工作流程:
|
||||
|
||||
```yaml
|
||||
name: ci
|
||||
@@ -100,21 +100,21 @@ jobs:
|
||||
steps:
|
||||
- run: 'echo "No build required" '
|
||||
```
|
||||
Now the checks will always pass whenever someone sends a pull request that doesn't change the files listed under `paths` in the first workflow.
|
||||
现在,每当有人发送拉取请求时,检查将始终通过,该请求不会更改第一个工作流程中`路径下`列出的文件。
|
||||
|
||||

|
||||

|
||||
|
||||
{% note %}
|
||||
|
||||
**注意:**
|
||||
* Make sure that the `name` key and required job name in both the workflow files are the same. For more information, see "[Workflow syntax for {% data variables.product.prodname_actions %}](/actions/reference/workflow-syntax-for-github-actions)".
|
||||
* The example above uses {% data variables.product.prodname_actions %} but this workaround is also applicable to other CI/CD providers that integrate with {% data variables.product.company_short %}.
|
||||
* 确保两个工作流程文件中`名称`键和所需的作业名称相同。 更多信息请参阅“[{% data variables.product.prodname_actions %} 的工作流程语法](/actions/reference/workflow-syntax-for-github-actions)”。
|
||||
* 上面的示例使用 {% data variables.product.prodname_actions %} 但此解决方法也适用于与 {% data variables.product.company_short %} 集成的其他 CI/CD 提供程序。
|
||||
|
||||
{% endnote %}
|
||||
|
||||
{% ifversion fpt or ghes > 3.3 or ghae-issue-5379 or ghec %}It's also possible for a protected branch to require a status check from a specific {% data variables.product.prodname_github_app %}. If you see a message similar to the following, then you should verify that the check listed in the merge box was set by the expected app.
|
||||
{% ifversion fpt or ghes > 3.3 or ghae-issue-5379 or ghec %}受保护分支也可能要求特定 {% data variables.product.prodname_github_app %} 进行状态检查。 如果看到类似于以下内容的消息,则应验证合并框中列出的检查项是否由预期的应用设置。
|
||||
|
||||
```
|
||||
Required status check "build" was not set by the expected {% data variables.product.prodname_github_app %}.
|
||||
必需状态检查 "build" 未由预期的 {% data variables.product.prodname_github_app %} 设置。
|
||||
```
|
||||
{% endif %}
|
||||
|
||||
@@ -45,5 +45,5 @@ shortTitle: 更改默认分支
|
||||
1. 在“Default branch(默认分支)”下,在默认分支名称的右侧单击 {% octicon "arrow-switch" aria-label="The switch icon with two arrows" %}。 
|
||||
1. 使用下拉菜单,然后单击分支名称。 
|
||||
1. 单击 **Update(更新)**。 
|
||||
1. 阅读警告,然后单击 **I understand, update the default branch(我了解,请更新默认分支)**。 
|
||||
1. 阅读警告,然后单击 **I understand, update the default branch(我了解,请更新默认分支)**。 
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ topics:
|
||||
|
||||
您可以通过选择仓库的可见性来限制谁可以访问仓库。 更多信息请参阅“[关于仓库可见性](#about-repository-visibility)”。
|
||||
|
||||
对于用户拥有的仓库,您可以向其他人授予协作者访问权限,以便他们可以协作处理您的项目。 如果仓库归组织所有,您可以向组织成员授予访问权限,以便协作处理您的仓库。 For more information, see "[Permission levels for a user account repository](/articles/permission-levels-for-a-user-account-repository/)" and "[Repository roles for an organization](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization)."
|
||||
对于用户拥有的仓库,您可以向其他人授予协作者访问权限,以便他们可以协作处理您的项目。 如果仓库归组织所有,您可以向组织成员授予访问权限,以便协作处理您的仓库。 更多信息请参阅“[用户帐户仓库的权限级别](/articles/permission-levels-for-a-user-account-repository/)”和“[组织的仓库角色](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization)”。
|
||||
|
||||
{% ifversion fpt or ghec %}
|
||||
通过用户帐户和组织的 {% data variables.product.prodname_free_team %},可与无限的协作者合作处理设置了完全功能的无限公共仓库,或者是设置了有限功能的无限私有仓库, 要获取对私有仓库的高级处理,您可以升级到 {% data variables.product.prodname_pro %}、{% data variables.product.prodname_team %} 或 {% data variables.product.prodname_ghe_cloud %}。 {% data reusables.gated-features.more-info %}
|
||||
@@ -48,11 +48,11 @@ topics:
|
||||
|
||||
{% ifversion fpt or ghec or ghes %}
|
||||
|
||||
When you create a repository, you can choose to make the repository public or private.{% ifversion ghec or ghes %} If you're creating the repository in an organization{% ifversion ghec %} that is owned by an enterprise account{% endif %}, you can also choose to make the repository internal.{% endif %}{% endif %}{% ifversion fpt %} Repositories in organizations that use {% data variables.product.prodname_ghe_cloud %} and are owned by an enterprise account can also be created with internal visibility. For more information, see [the {% data variables.product.prodname_ghe_cloud %} documentation](/enterprise-cloud@latest/repositories/creating-and-managing-repositories/about-repositories).
|
||||
创建存储库时,可以选择将存储库设为公开或私有。{% ifversion ghec or ghes %} 如果要在{% ifversion ghec %}企业帐户拥有的{% endif %} 组织中创建存储库,则还可以选择将存储库设为内部存储库。{% endif %}{% endif %}{% ifversion fpt %}还可以通过内部可见性创建使用 {% data variables.product.prodname_ghe_cloud %} 并由企业帐户拥有的组织中的存储库。 更多信息请参阅 [{% data variables.product.prodname_ghe_cloud %} 文档](/enterprise-cloud@latest/repositories/creating-and-managing-repositories/about-repositories)。
|
||||
|
||||
{% elsif ghae %}
|
||||
|
||||
When you create a repository owned by your user account, the repository is always private. When you create a repository owned by an organization, you can choose to make the repository private or internal.
|
||||
当您创建由您的用户帐户拥有的仓库时,仓库始终是私有的。 创建组织拥有的存储库时,可以选择将存储库设为私有或内部存储库。
|
||||
|
||||
{% endif %}
|
||||
|
||||
@@ -78,19 +78,19 @@ When you create a repository owned by your user account, the repository is alway
|
||||
|
||||
{% data reusables.repositories.about-internal-repos %} 有关内部资源的更多信息,请参阅 {% data variables.product.prodname_dotcom %} 的白皮书“[内部资源简介](https://resources.github.com/whitepapers/introduction-to-innersource/)”。
|
||||
|
||||
All enterprise members have read permissions to the internal repository, but internal repositories are not visible to people {% ifversion fpt or ghec %}outside of the enterprise{% else %}who are not members of any organization{% endif %}, including outside collaborators on organization repositories. For more information, see "[Roles in an enterprise](/github/setting-up-and-managing-your-enterprise/roles-in-an-enterprise#enterprise-members)" and "[Repository roles for an organization](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization)."
|
||||
所有企业成员对内部仓库具有读取权限,但内部仓库对{% ifversion fpt or ghec %}企业外部{% else %}非组织成员{% endif %}的人员不可见,包括组织仓库的外部协作者。 更多信息请参阅“[企业中的角色](/github/setting-up-and-managing-your-enterprise/roles-in-an-enterprise#enterprise-members)”和“[组织的存储库角色](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization)”。
|
||||
|
||||
{% ifversion ghes %}
|
||||
{% note %}
|
||||
|
||||
**Note:** A user must be part of an organization to be an enterprise member and have access to internal repositories. If a user on {% data variables.product.product_location %} is not a member of any organization, that user will not have access to internal repositories.
|
||||
**注意:** 用户必须是组织的一部分才能成为企业成员并有权访问内部存储库。 如果 {% data variables.product.product_location %} 上的用户不是任何组织的成员,则该用户将无权访问内部存储库。
|
||||
|
||||
{% endnote %}
|
||||
{% endif %}
|
||||
|
||||
{% data reusables.repositories.internal-repo-default %}
|
||||
|
||||
Any member of the enterprise can fork any internal repository owned by an organization in the enterprise. The forked repository will belong to the member's user account, and the visibility of the fork will be private. 如果用户从企业拥有的所有组织中删除,该用户的内部仓库复刻也会自动删除。
|
||||
企业的任何成员都可以复刻企业中组织拥有的任何内部存储库。 复刻的存储库将属于成员的用户帐户,复刻的可见性将是私有的。 如果用户从企业拥有的所有组织中删除,该用户的内部仓库复刻也会自动删除。
|
||||
{% endif %}
|
||||
|
||||
## 限制查看仓库中的内容和差异
|
||||
@@ -101,7 +101,7 @@ Any member of the enterprise can fork any internal repository owned by an organi
|
||||
|
||||
### 文本限制
|
||||
|
||||
Text files over **512 KB** are always displayed as plain text. 代码不强调语法,散文文件不会转换成 HTML(如 Markdown、AsciiDoc *等*)。
|
||||
超过 **512 KB** 的文本文件始终显示为纯文本。 代码不强调语法,散文文件不会转换成 HTML(如 Markdown、AsciiDoc *等*)。
|
||||
|
||||
超过 **5 MB** 的文本文件仅通过其源 URL 访问,将通过 `{% data variables.product.raw_github_com %}` 提供;例如 `https://{% data variables.product.raw_github_com %}/octocat/Spoon-Knife/master/index.html`。 单击 **Raw(源)**按钮获取文件的源 URL。
|
||||
|
||||
@@ -109,8 +109,8 @@ Text files over **512 KB** are always displayed as plain text. 代码不强调
|
||||
|
||||
因为差异可能很大,所以我们会对评论、拉取请求和比较视图的差异施加限制:
|
||||
|
||||
- In a pull request, no total diff may exceed *20,000 lines that you can load* or *1 MB* of raw diff data.
|
||||
- No single file's diff may exceed *20,000 lines that you can load* or *500 KB* of raw diff data. *四百行*和 *20 KB* 会自动加载为一个文件。
|
||||
- 在拉取请求中,总差异不得超过*您可以加载的 20,000 行* 或 *1 MB* 的原始差异数据。
|
||||
- 任何单个文件的差异都不能超过*您可以加载的 20,000 行,*或 *500 KB* 的原始差异数据。 *四百行*和 *20 KB* 会自动加载为一个文件。
|
||||
- 单一差异中的最大文件数限于 *300*。
|
||||
- 单一差异中可呈现的文件(如图像、PDF 和 GeoJSON 文件)最大数量限于 *25*。
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ topics:
|
||||
3. 在“Owner(所有者)”下拉菜单中,选择要在其上创建仓库的帐户。 
|
||||
{% data reusables.repositories.repo-name %}
|
||||
{% data reusables.repositories.choose-repo-visibility %}
|
||||
6. 如果您不使用模板,可以使用许多可选项预填充仓库。 如果要将现有仓库导入 {% data variables.product.product_name %},请不要选择上述任何选项,否则可能会导致合并冲突。 您可以通过用户界面添加或创建新文件,或者选择稍后使用命令行添加新文件。 For more information, see "[Importing a Git repository using the command line](/articles/importing-a-git-repository-using-the-command-line/)," "[Adding a file to a repository](/repositories/working-with-files/managing-files/adding-a-file-to-a-repository#adding-a-file-to-a-repository-using-the-command-line)," and "[Addressing merge conflicts](/articles/addressing-merge-conflicts/)."
|
||||
6. 如果您不使用模板,可以使用许多可选项预填充仓库。 如果要将现有仓库导入 {% data variables.product.product_name %},请不要选择上述任何选项,否则可能会导致合并冲突。 您可以通过用户界面添加或创建新文件,或者选择稍后使用命令行添加新文件。 更多信息请参阅“[使用命令行导入 Git 存储库](/articles/importing-a-git-repository-using-the-command-line/)”、“[将文件添加到存储库](/repositories/working-with-files/managing-files/adding-a-file-to-a-repository#adding-a-file-to-a-repository-using-the-command-line)”和“[解决合并冲突](/articles/addressing-merge-conflicts/)”。
|
||||
- 您可以创建自述文件以介绍您的项目。 更多信息请参阅“[关于自述文件](/articles/about-readmes/)”。
|
||||
- 您可以创建 *.gitignore* 文件以设置忽略规则。 更多信息请参阅“[忽略文件](/github/getting-started-with-github/ignoring-files)”。{% ifversion fpt or ghec %}
|
||||
- 您可以选择为项目添加软件许可。 更多信息请参阅“[许可仓库](/articles/licensing-a-repository)”。{% endif %}
|
||||
|
||||
@@ -36,13 +36,13 @@ topics:
|
||||
```
|
||||
3. 镜像推送至新仓库。
|
||||
```shell
|
||||
$ cd <em>old-repository</em>
|
||||
$ cd <em>old-repository.git</em>
|
||||
$ git push --mirror https://{% data variables.command_line.codeblock %}/<em>exampleuser</em>/<em>new-repository</em>.git
|
||||
```
|
||||
4. 删除您之前创建的临时本地仓库。
|
||||
```shell
|
||||
$ cd ..
|
||||
$ rm -rf <em>old-repository</em>
|
||||
$ rm -rf <em>old-repository.git</em>
|
||||
```
|
||||
|
||||
## 镜像包含 {% data variables.large_files.product_name_long %} 对象的仓库。
|
||||
@@ -54,7 +54,7 @@ topics:
|
||||
```
|
||||
3. 导航到刚克隆的仓库。
|
||||
```shell
|
||||
$ cd <em>old-repository</em>
|
||||
$ cd <em>old-repository.git</em>
|
||||
```
|
||||
4. 拉取仓库的 {% data variables.large_files.product_name_long %} 对象。
|
||||
```shell
|
||||
@@ -71,7 +71,7 @@ topics:
|
||||
7. 删除您之前创建的临时本地仓库。
|
||||
```shell
|
||||
$ cd ..
|
||||
$ rm -rf <em>old-repository</em>
|
||||
$ rm -rf <em>old-repository.git</em>
|
||||
```
|
||||
|
||||
## 镜像其他位置的仓库
|
||||
|
||||
@@ -28,11 +28,11 @@ topics:
|
||||
当您将仓库转让给新所有者时,他们可以立即管理仓库的内容、议题、拉取请求、版本、项目板和设置。
|
||||
|
||||
存储库传输的先决条件:
|
||||
- When you transfer a repository that you own to another user account, the new owner will receive a confirmation email.{% ifversion fpt or ghec %} The confirmation email includes instructions for accepting the transfer. 如果新所有者在一天之内没有接受转让,则邀请将过期。{% endif %}
|
||||
- 当您将您拥有的存储库转移到另一个用户帐户时,新所有者将收到一封确认电子邮件。{% ifversion fpt or ghec %} 确认电子邮件包含接受转移的说明。 如果新所有者在一天之内没有接受转让,则邀请将过期。{% endif %}
|
||||
- 要将您拥有的仓库转让给一个组织,您必须拥有在目标组织中创建仓库的权限。
|
||||
- 目标帐户不得具有相同名称的仓库,或位于同一网络中的复刻。
|
||||
- 仓库原来的所有者将添加为已转让仓库的协作者。 Other collaborators to the transferred repository remain intact.{% ifversion ghec or ghes or ghae %}
|
||||
- Internal repositories can't be transferred.{% endif %}
|
||||
- 仓库原来的所有者将添加为已转让仓库的协作者。 转移的仓库的其他协作者保持不变。{% ifversion ghec or ghes or ghae %}
|
||||
- 无法转移内部仓库。{% endif %}
|
||||
- 私有复刻无法进行转让。
|
||||
|
||||
{% ifversion fpt or ghec %}如果您将私有仓库转让给 {% data variables.product.prodname_free_user %} 用户或组织帐户,该仓库将无法访问比如受保护分支和 {% data variables.product.prodname_pages %} 之类的功能。 {% data reusables.gated-features.more-info %}{% endif %}
|
||||
@@ -43,7 +43,7 @@ topics:
|
||||
|
||||
- 如果转让的仓库是复刻,则它仍与上游仓库关联。
|
||||
- 如果转让的仓库有任何复刻,则这些复刻在转让完成后仍与该仓库关联。
|
||||
- 如果转让的仓库使用 {% data variables.large_files.product_name_long %},则所有 {% data variables.large_files.product_name_short %} 对象均自动移动。 This transfer occurs in the background, so if you have a large number of {% data variables.large_files.product_name_short %} objects or if the {% data variables.large_files.product_name_short %} objects themselves are large, it may take some time for the transfer to occur.{% ifversion fpt or ghec %} Before you transfer a repository that uses {% data variables.large_files.product_name_short %}, make sure the receiving account has enough data packs to store the {% data variables.large_files.product_name_short %} objects you'll be moving over. 有关为用户帐户增加存储的更多详细,请参阅“[升级 {% data variables.large_files.product_name_long %}](/articles/upgrading-git-large-file-storage)”。{% endif %}
|
||||
- 如果转让的仓库使用 {% data variables.large_files.product_name_long %},则所有 {% data variables.large_files.product_name_short %} 对象均自动移动。 此转移在后台进行,因此如果您有大量的 {% data variables.large_files.product_name_short %} 对象或者如果 {% data variables.large_files.product_name_short %} 对象本身很大,则进行转移可能需要一些时间。{% ifversion fpt or ghec %}转让使用 {% data variables.large_files.product_name_short %} 的仓库之前,确保接收帐户有足够的数据包用来存储您将移动的 {% data variables.large_files.product_name_short %} 对象。 有关为用户帐户增加存储的更多详细,请参阅“[升级 {% data variables.large_files.product_name_long %}](/articles/upgrading-git-large-file-storage)”。{% endif %}
|
||||
- 仓库在两个用户帐户之间转让时,议题分配保持不变。 当您将仓库从用户帐户转让给组织时,分配给组织中该成员的议题保持不变,所有其他议题受理人都将被清除。 只允许组织中的所有者创建新的议题分配。 当您将仓库从组织转让给用户帐户时,只有分配给仓库所有者的议题保留,所有其他议题受理人都将被清除。
|
||||
- 如果转让的仓库包含 {% data variables.product.prodname_pages %} 站点,则指向 Web 上 Git 仓库和通过 Git 活动的链接将重定向。 不过,我们不会重定向与仓库关联的 {% data variables.product.prodname_pages %}。
|
||||
- 指向以前仓库位置的所有链接均自动重定向到新位置。 当您对转让的仓库使用 `git clone`、`git fetch` 或 `git push` 时,这些命令将重定向到新仓库位置或 URL。 不过,为了避免混淆,我们强烈建议将任何现有的本地克隆副本更新为指向新仓库 URL。 您可以通过在命令行中使用 `git remote` 来执行此操作:
|
||||
@@ -52,8 +52,8 @@ topics:
|
||||
$ git remote set-url origin <em>new_url</em>
|
||||
```
|
||||
|
||||
- When you transfer a repository from an organization to a user account, the repository's read-only collaborators will not be transferred. This is because collaborators can't have read-only access to repositories owned by a user account. For more information about repository permission levels, see "[Permission levels for a user account repository](/github/setting-up-and-managing-your-github-user-account/permission-levels-for-a-user-account-repository)" and "[Repository roles for an organization](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization)."{% ifversion fpt or ghec %}
|
||||
- Sponsors who have access to the repository through a sponsorship tier may be affected. For more information, see "[Adding a repository to a sponsorship tier](/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-sponsorship-tiers#adding-a-repository-to-a-sponsorship-tier)".{% endif %}
|
||||
- 当您将存储库从组织转移到用户帐户时,将不会转移存储库的只读协作者。 这是因为协作者不能对用户帐户拥有的仓库具有只读权限。 有关仓库权限级别的更多信息,请参阅“[用户帐户仓库的权限级别](/github/setting-up-and-managing-your-github-user-account/permission-levels-for-a-user-account-repository)”和“[组织的仓库角色](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization)”。{% ifversion fpt or ghec %}
|
||||
- 有权通过赞助层访问存储库的发起人可能会受到影响。 更多信息请参阅“[将存储库添加到赞助层](/sponsors/receiving-sponsorships-through-github-sponsors/managing-your-sponsorship-tiers#adding-a-repository-to-a-sponsorship-tier)”。{% endif %}
|
||||
|
||||
更多信息请参阅“[管理远程仓库](/github/getting-started-with-github/managing-remote-repositories)”。
|
||||
|
||||
@@ -67,7 +67,7 @@ topics:
|
||||
|
||||
您可以将仓库转让给接受仓库转让的任何用户帐户。 在两个用户帐户之间转让仓库时,原来的仓库所有者和协作者将自动添加为新仓库的协作者。
|
||||
|
||||
{% ifversion fpt or ghec %}If you published a {% data variables.product.prodname_pages %} site in a private repository and added a custom domain, before transferring the repository, you may want to remove or update your DNS records to avoid the risk of a domain takeover. 更多信息请参阅“[管理 {% data variables.product.prodname_pages %} 网站的自定义域](/articles/managing-a-custom-domain-for-your-github-pages-site)。{% endif %}
|
||||
{% ifversion fpt or ghec %}如果您在私有仓库中发布了 {% data variables.product.prodname_pages %} 站点并添加了自定义域,则转让仓库之前,您可能想要删除或更新 DNS 记录以避免域接管风险。 更多信息请参阅“[管理 {% data variables.product.prodname_pages %} 网站的自定义域](/articles/managing-a-custom-domain-for-your-github-pages-site)。{% endif %}
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
{% data reusables.repositories.sidebar-settings %}
|
||||
|
||||
@@ -23,7 +23,7 @@ shortTitle: 配置自动链接
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
{% data reusables.repositories.sidebar-settings %}
|
||||
{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5658 %}
|
||||
1. In the "Integrations" section of the sidebar, click **{% octicon "cross-reference" aria-label="The cross-reference icon" %} Autolink references**.
|
||||
1. 在边栏的“Integrations(集成)”部分中,单击 **{% octicon "cross-reference" aria-label="The cross-reference icon" %} 自动链接引用**。
|
||||
{% else %}
|
||||
1. 在左侧边栏中,单击 **Autolink references(自动链接引用)**。 
|
||||
{% endif %}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
---
|
||||
title: Configuring tag protection rules
|
||||
shortTitle: Tag protection rules
|
||||
intro: You can configure tag protection rules for your repository to prevent contributors from creating or deleting tags.
|
||||
product: '{% data reusables.gated-features.tag-protection-rules %}'
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '>3.4'
|
||||
ghae: issue-6337
|
||||
ghec: '*'
|
||||
---
|
||||
|
||||
{% note %}
|
||||
|
||||
**Note:** Tag protection rules are currently in beta and subject to change.
|
||||
|
||||
{% endnote %}
|
||||
|
||||
When you add a tag protection rule, all tags that match the pattern provided will be protected. Only users with admin or maintain permissions in the repository will be able to create protected tags, and only users with admin permissions in the repository will be able to delete protected tags. 更多信息请参阅“[组织的仓库角色](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization#permissions-for-each-role)”。
|
||||
|
||||
Additionally, you can create custom repository roles to allow other groups of users to create or delete tags that match tag protection rules. 更多信息请参阅“[管理组织的自定义仓库角色](/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization)”。
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
{% data reusables.repositories.sidebar-settings %}
|
||||
1. In the "Code and automation" section of the sidebar, click **{% octicon "tag" aria-label="The tag icon" %} Tags**.
|
||||
1. Click **New rule**. 
|
||||
1. Under "Tag name pattern", type the pattern of the tags you want to protect. In this example, typing "\*" protects all tags. 
|
||||
1. Click **Add rule**. 
|
||||
@@ -17,6 +17,7 @@ children:
|
||||
- /enabling-anonymous-git-read-access-for-a-repository
|
||||
- /about-email-notifications-for-pushes-to-your-repository
|
||||
- /configuring-autolinks-to-reference-external-resources
|
||||
- /configuring-tag-protection-rules
|
||||
shortTitle: 管理仓库设置
|
||||
---
|
||||
|
||||
|
||||
@@ -16,15 +16,15 @@ topics:
|
||||
shortTitle: 团队和人员
|
||||
---
|
||||
|
||||
## About access management for repositories
|
||||
## 关于存储库的访问管理
|
||||
|
||||
对于您在 {% data variables.product.prodname_dotcom %} 上管理的每个仓库,您可以查看有权访问仓库的每个团队或人员的概览。 From the overview, you can also invite new teams or people, change each team or person's role for the repository, or remove access to the repository.
|
||||
对于您在 {% data variables.product.prodname_dotcom %} 上管理的每个仓库,您可以查看有权访问仓库的每个团队或人员的概览。 在概述中,您还可以邀请新的团队或人员,更改存储库的每个团队或人员的角色,或删除对存储库的访问权限。
|
||||
|
||||
此概览可帮助您审核对仓库、内部或外部承包商或员工的访问权限,并有效响应安全事件。
|
||||
|
||||
{% data reusables.organizations.mixed-roles-warning %}
|
||||
|
||||
For more information about repository roles, see "[Permission levels for a user account repository](/github/setting-up-and-managing-your-github-user-account/permission-levels-for-a-user-account-repository)" and "[Repository roles for an organization](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization)."
|
||||
有关存储库角色的详细信息,请参阅“[用户帐户存储库的权限级别](/github/setting-up-and-managing-your-github-user-account/permission-levels-for-a-user-account-repository)”和“[组织的存储库角色](/organizations/managing-access-to-your-organizations-repositories/repository-roles-for-an-organization)”。
|
||||
|
||||

|
||||
|
||||
@@ -37,7 +37,7 @@ For more information about repository roles, see "[Permission levels for a user
|
||||
{% else %}
|
||||
{% data reusables.repositories.navigate-to-manage-access %}
|
||||
{% endif %}
|
||||
1. 在“Manage access(管理访问权限)”下的搜索字段中,开始输入您要查找的团队或人员的名称。 Optionally, use the dropdown menus to filter your search. 
|
||||
1. 在“Manage access(管理访问权限)”下的搜索字段中,开始输入您要查找的团队或人员的名称。 (可选)使用下拉菜单筛选搜索。 
|
||||
|
||||
## 更改团队或人员的权限
|
||||
|
||||
@@ -48,7 +48,7 @@ For more information about repository roles, see "[Permission levels for a user
|
||||
{% else %}
|
||||
{% data reusables.repositories.navigate-to-manage-access %}
|
||||
{% endif %}
|
||||
4. Under "Manage access", find the team or person whose role you'd like to change, then select the Role drop-down and click a new role. 
|
||||
4. 在“Manage access(管理访问)”下,找到您要更改其角色的团队或人员,然后选择 Role(角色)下拉菜单并点击新角色。 
|
||||
|
||||
## 邀请团队或人员
|
||||
|
||||
@@ -61,7 +61,7 @@ For more information about repository roles, see "[Permission levels for a user
|
||||
{% endif %}
|
||||
{% data reusables.organizations.invite-teams-or-people %}
|
||||
5. 在搜索字段中,开始输入要邀请的团队或人员的名称,然后单击匹配列表中的名称。 
|
||||
6. Under "Choose a role", select the repository role to grant to the team or person, then click **Add NAME to REPOSITORY**. 
|
||||
6. 在“Choose a role(选择角色)”下,选择要授予该团队或人员的仓库角色,然后单击 **Add NAME to REPOSITORY(将名称添加到仓库)**。 
|
||||
|
||||
## 删除团队或人员的访问权限
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ shortTitle: 仓库可见性
|
||||
|
||||
{% ifversion ghec %}
|
||||
|
||||
Members of an {% data variables.product.prodname_emu_enterprise %} can only set the visibility of repositories owned by their user account to private, and repositories in their enterprise's organizations can only be private or internal. 更多信息请参阅“[关于 {% data variables.product.prodname_emus %}](/admin/authentication/managing-your-enterprise-users-with-your-identity-provider/about-enterprise-managed-users)”。
|
||||
{% data variables.product.prodname_emu_enterprise %} 的成员只能将其用户帐户拥有的存储库的可见性设置为私有,并且其企业组织中的存储库只能是私有的或内部的。 更多信息请参阅“[关于 {% data variables.product.prodname_emus %}](/admin/authentication/managing-your-enterprise-users-with-your-identity-provider/about-enterprise-managed-users)”。
|
||||
|
||||
{% endif %}
|
||||
|
||||
@@ -52,7 +52,7 @@ Members of an {% data variables.product.prodname_emu_enterprise %} can only set
|
||||
{%- endif %}
|
||||
|
||||
{%- ifversion fpt %}
|
||||
* 如果对用户帐户或组织使用 {% data variables.product.prodname_free_user %},有些功能在您将可见性更改为私有后不可用于仓库。 任何已发布的 {% data variables.product.prodname_pages %} 站点都将自动取消发布。 如果您将自定义域添加到 {% data variables.product.prodname_pages %} 站点,应在将仓库设为私有之前删除或更新 DNS 记录,以避免域接管的风险。 For more information, see "[{% data variables.product.company_short %}'s products](/get-started/learning-about-github/githubs-products) and "[Managing a custom domain for your {% data variables.product.prodname_pages %} site](/articles/managing-a-custom-domain-for-your-github-pages-site)."
|
||||
* 如果对用户帐户或组织使用 {% data variables.product.prodname_free_user %},有些功能在您将可见性更改为私有后不可用于仓库。 任何已发布的 {% data variables.product.prodname_pages %} 站点都将自动取消发布。 如果您将自定义域添加到 {% data variables.product.prodname_pages %} 站点,应在将仓库设为私有之前删除或更新 DNS 记录,以避免域接管的风险。 更多信息请参阅“[{% data variables.product.company_short %} 的产品](/get-started/learning-about-github/githubs-products)”和“[管理 {% data variables.product.prodname_pages %} 站点的自定义域](/articles/managing-a-custom-domain-for-your-github-pages-site)”。
|
||||
{%- endif %}
|
||||
|
||||
{%- ifversion fpt or ghec %}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Viewing activity and data for your repository
|
||||
intro: Gain insight into your repository by viewing activity and data.
|
||||
title: 查看存储库的活动和数据
|
||||
intro: 通过查看活动和数据深入了解您的存储库。
|
||||
redirect_from:
|
||||
- /categories/44/articles
|
||||
- /categories/graphs-and-contributions
|
||||
@@ -22,6 +22,6 @@ children:
|
||||
- /viewing-a-projects-contributors
|
||||
- /analyzing-changes-to-a-repositorys-content
|
||||
- /understanding-connections-between-repositories
|
||||
shortTitle: View activity and data
|
||||
shortTitle: 查看活动和数据
|
||||
---
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Editing files
|
||||
title: 编辑文件
|
||||
intro: '您可以使用文件编辑器,在任何仓库中的 {% data variables.product.product_name %} 上直接编辑文件。'
|
||||
redirect_from:
|
||||
- /articles/editing-files
|
||||
@@ -16,7 +16,7 @@ versions:
|
||||
ghec: '*'
|
||||
topics:
|
||||
- Repositories
|
||||
shortTitle: Edit files
|
||||
shortTitle: 编辑文件
|
||||
---
|
||||
|
||||
## 编辑仓库中的文件
|
||||
@@ -44,7 +44,7 @@ shortTitle: Edit files
|
||||
|
||||
## 编辑其他用户仓库中的文件
|
||||
|
||||
When you edit a file in another user's repository, we'll automatically [fork the repository](/articles/fork-a-repo) and [open a pull request](/articles/creating-a-pull-request) for you.
|
||||
当您编辑其他用户存储库中的文件时,我们将自动[复刻存储库](/articles/fork-a-repo),并为您[打开拉取请求](/articles/creating-a-pull-request)。
|
||||
|
||||
1. 才其他用户的仓库中,浏览到包含要编辑文件的文件夹。 单击要编辑文件的名称。
|
||||
2. 在文件内容上方,单击 {% octicon "pencil" aria-label="The edit icon" %}。 此时,GitHub 会为您复刻仓库。
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: 使用非代码文件
|
||||
intro: '{% data variables.product.product_name %} supports rendering and diffing in a number of non-code file formats.'
|
||||
intro: '{% data variables.product.product_name %} 支持以多种非代码文件格式呈现和比较。'
|
||||
redirect_from:
|
||||
- /articles/rendering-and-diffing-images
|
||||
- /github/managing-files-in-a-repository/rendering-and-diffing-images
|
||||
@@ -37,7 +37,7 @@ shortTitle: 使用非代码文件
|
||||
|
||||
## 呈现图像和比较差异
|
||||
|
||||
{% data variables.product.product_name %} 可显示几种常见的图像格式,包括 PNG、JPG、GIF、PSD 和 SVG。 In addition to simply displaying them, there are several ways to compare differences between versions of those image formats.'
|
||||
{% data variables.product.product_name %} 可显示几种常见的图像格式,包括 PNG、JPG、GIF、PSD 和 SVG。 除了简单地显示这些图像以外,还有几种方法可以比较这些图像格式版本之间的差异。
|
||||
|
||||
{% note %}
|
||||
|
||||
@@ -47,7 +47,7 @@ shortTitle: 使用非代码文件
|
||||
|
||||
### 查看图像
|
||||
|
||||
You can directly browse and view images in your repository on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %}:
|
||||
您可以直接浏览和查看 {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %} 上的{% endif %} 存储库中的图像:
|
||||
|
||||

|
||||
|
||||
@@ -116,7 +116,7 @@ SVG 目前不支持内联脚本或动画。
|
||||
<script src="https://embed.github.com/view/3d/<username>/<repo>/<ref>/<path_to_file>"></script>
|
||||
```
|
||||
|
||||
For example, if your model's URL is [`github.com/skalnik/secret-bear-clip/blob/master/stl/clip.stl`](https://github.com/skalnik/secret-bear-clip/blob/master/stl/clip.stl), your embed code would be:
|
||||
例如,如果模型的 URL 是 [`github.com/skalnik/secret-bear-clip/blob/master/stl/clip.stl`](https://github.com/skalnik/secret-bear-clip/blob/master/stl/clip.stl),则嵌入的代码为:
|
||||
|
||||
```html
|
||||
<script src="https://embed.github.com/view/3d/skalnik/secret-bear-clip/master/stl/clip.stl"></script>
|
||||
@@ -136,7 +136,7 @@ GitHub 支持以 *.csv*(逗号分隔)和 .*tsv*(制表符分隔)文件
|
||||
|
||||

|
||||
|
||||
When viewed, any _.csv_ or _.tsv_ file committed to a repository on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %} automatically renders as an interactive table, complete with headers and row numbering. 默认情况下,我们始终假设第一行是标题行。
|
||||
查看时,提交到 {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %} 上的{% endif %} 存储库的任何 _.csv_ 或 _.tsv_ 文件都会自动呈现为交互式表格,包括标题和行号。 默认情况下,我们始终假设第一行是标题行。
|
||||
|
||||
您可以通过单击行号链接到特定行,或通过按住 Shift 键选择多行。 只需复制 URL 并将其发送给好友即可。
|
||||
|
||||
@@ -225,7 +225,7 @@ GitHub 支持呈现 PDF 文档。
|
||||
|
||||
一般来说,包含嵌入式 HTML 的文档更改的呈现视图将显示对 {% data variables.product.product_name %} 文档视图中支持元素的更改。 必须始终在呈现视图和源视图中检查对包含嵌入式 HTML 的文档的更改以确保完整性。
|
||||
|
||||
## Mapping geoJSON files on {% data variables.product.prodname_dotcom %}
|
||||
## 映射 {% data variables.product.prodname_dotcom %} 上的 geoJSON 文件
|
||||
|
||||
{% data variables.product.product_name %} 支持在 {% data variables.product.product_name %} 仓库中渲染 geoJSON 和 topoJSON 地图文件。 只需像平常一样提交扩展名为 `.geojson` 或 `.topojson` 的文件。 也支持扩展名为 `.json` 的文件,但仅当 `type` 设置为 `FeatureCollection`、`GeometryCollection` 或 `topology` 时才支持。 然后导航到 GitHub.com 上 geoJSON 文件的路径。
|
||||
|
||||
@@ -298,9 +298,9 @@ GitHub 支持呈现 PDF 文档。
|
||||
* [MapBox marker-styling 文档](http://www.mapbox.com/developers/simplestyle/)
|
||||
* [TopoJSON Wiki](https://github.com/mbostock/topojson/wiki)
|
||||
|
||||
## Working with Jupyter Notebook files on {% data variables.product.prodname_dotcom %}
|
||||
## 在 {% data variables.product.prodname_dotcom %} 上使用 Jupyter Notebook 文件
|
||||
|
||||
When you add Jupyter Notebook or IPython Notebook files with a *.ipynb* extension on {% data variables.product.product_location %}, they will render as static HTML files in your repository.
|
||||
当您在 {% data variables.product.product_location %} 上添加具有 *.ipynb* 扩展名的 Jupyter Notebook 或 IPython Notebook 文件时,它们将在您的仓库中呈现为静态 HTML 文件。
|
||||
|
||||
笔记本的交互式功能(例如自定义的 JavaScript 图)在 {% data variables.product.product_location %} 上的仓库中不起作用。 有关示例,请参阅 [*Linking and Interactions.ipynb*](https://github.com/bokeh/bokeh-notebooks/blob/main/tutorial/06%20-%20Linking%20and%20Interactions.ipynb)。
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ up your application. It's the callback URL that {% data variables.product.produc
|
||||
successful authentication.
|
||||
|
||||
Since we're running a regular Sinatra server, the location of the local instance
|
||||
is set to `http://localhost:4567`. Let's fill in the callback URL as `http://localhost:4567/callback`.
|
||||
is set to `http://127.0.0.1:4567`. Let's fill in the callback URL as `http://127.0.0.1:4567/callback`.
|
||||
|
||||
## Accepting user authorization
|
||||
|
||||
@@ -91,7 +91,7 @@ Also, notice that the URL uses the `scope` query parameter to define the
|
||||
[scopes][oauth scopes] requested by the application. For our application, we're
|
||||
requesting `user:email` scope for reading private email addresses.
|
||||
|
||||
Navigate your browser to `http://localhost:4567`. After clicking on the link, you
|
||||
Navigate your browser to `http://127.0.0.1:4567`. After clicking on the link, you
|
||||
should be taken to {% data variables.product.product_name %}, and presented with a dialog that looks something like this:
|
||||

|
||||
|
||||
@@ -215,7 +215,7 @@ We can do whatever we want with our results. In this case, we'll just dump them
|
||||
|
||||
It'd be a pretty bad model if we required users to log into the app every single
|
||||
time they needed to access the web page. For example, try navigating directly to
|
||||
`http://localhost:4567/basic`. You'll get an error.
|
||||
`http://127.0.0.1:4567/basic`. You'll get an error.
|
||||
|
||||
What if we could circumvent the entire
|
||||
"click here" process, and just _remember_ that, as long as the user's logged into
|
||||
@@ -348,7 +348,7 @@ Next, create a file in _views_ called _advanced.erb_, and paste this markup into
|
||||
|
||||
From the command line, call `ruby advanced_server.rb`, which starts up your
|
||||
server on port `4567` -- the same port we used when we had a simple Sinatra app.
|
||||
When you navigate to `http://localhost:4567`, the app calls `authenticate!`
|
||||
When you navigate to `http://127.0.0.1:4567`, the app calls `authenticate!`
|
||||
which redirects you to `/callback`. `/callback` then sends us back to `/`,
|
||||
and since we've been authenticated, renders _advanced.erb_.
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
#Reference 5861
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghec: '*'
|
||||
ghes: '>3.4'
|
||||
ghae: 'issue-5861'
|
||||
@@ -0,0 +1 @@
|
||||
{% ifversion ghae %}Tag protection rules are available in internal and private repositories with {% data variables.product.prodname_ghe_managed %}, {% else%}Tag protection rules are available {% endif %}in public repositories with {% data variables.product.prodname_free_user %} and {% data variables.product.prodname_free_team %} for organizations, and in public and private repositories with {% data variables.product.prodname_pro %}, {% data variables.product.prodname_team %}, {% data variables.product.prodname_ghe_cloud %}, and {% data variables.product.prodname_ghe_server %}. {% ifversion fpt or ghec %}{% data reusables.gated-features.more-info %}{% endif %}
|
||||
@@ -1 +1 @@
|
||||
例如,您可以只允许从您办公室网络的 IP 地址访问。 IP 地址的允许列表将阻止 从不在允许列表中的任何 IP 地址通过 web、API、Git 进行访问。
|
||||
例如,您可以只允许从您办公室网络的 IP 地址访问。 The allow list for IP addresses will block access to private resources via the web, API, and Git from any IP addresses that are not on the allow list.
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
{% note %}
|
||||
|
||||
**Note:** When SAML SSO is enabled, the only setting you can update on {% data variables.product.prodname_dotcom %} for your existing SAML configuration is the SAML certificate. If you need to update the Sign on URL or Issuer, you must first disable SAML SSO and then reconfigure SAML SSO with the new settings.
|
||||
|
||||
{% endnote %}
|
||||
@@ -0,0 +1,5 @@
|
||||
{% note %}
|
||||
|
||||
**Note:** To avoid exceeding the rate limit on {% data variables.product.product_name %}, do not assign more than 1,000 users per hour to the IdP application. If you use groups to assign users to the IdP application, do not add more than 100 users to each group per hour. If you exceed these thresholds, attempts to provision users may fail with a "rate limit" error.
|
||||
|
||||
{% endnote %}
|
||||
Reference in New Issue
Block a user