New translation batch for cn (#30738)
This commit is contained in:
@@ -236,7 +236,6 @@ translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifi
|
||||
translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-settings-on-your-profile/showing-your-private-contributions-and-achievements-on-your-profile.md,rendering error
|
||||
translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/index.md,broken liquid tags
|
||||
translations/zh-CN/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/changing-your-github-username.md,rendering error
|
||||
translations/zh-CN/content/actions/creating-actions/publishing-actions-in-github-marketplace.md,broken liquid tags
|
||||
translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md,broken liquid tags
|
||||
translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-hashicorp-vault.md,broken liquid tags
|
||||
translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-runners.md,broken liquid tags
|
||||
@@ -279,7 +278,6 @@ translations/zh-CN/content/authentication/managing-commit-signature-verification
|
||||
translations/zh-CN/content/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key.md,broken liquid tags
|
||||
translations/zh-CN/content/authentication/troubleshooting-commit-signature-verification/checking-your-commit-and-tag-signature-verification-status.md,broken liquid tags
|
||||
translations/zh-CN/content/billing/managing-billing-for-github-actions/about-billing-for-github-actions.md,broken liquid tags
|
||||
translations/zh-CN/content/billing/managing-billing-for-github-codespaces/viewing-your-github-codespaces-usage.md,broken liquid tags
|
||||
translations/zh-CN/content/billing/managing-billing-for-your-github-account/about-per-user-pricing.md,rendering error
|
||||
translations/zh-CN/content/billing/managing-billing-for-your-github-account/viewing-the-subscription-and-usage-for-your-enterprise-account.md,rendering error
|
||||
translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning.md,broken liquid tags
|
||||
@@ -289,6 +287,7 @@ translations/zh-CN/content/code-security/code-scanning/integrating-with-code-sca
|
||||
translations/zh-CN/content/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/configuring-codeql-cli-in-your-ci-system.md,broken liquid tags
|
||||
translations/zh-CN/content/code-security/dependabot/dependabot-alerts/browsing-security-advisories-in-the-github-advisory-database.md,broken liquid tags
|
||||
translations/zh-CN/content/code-security/dependabot/dependabot-alerts/viewing-and-updating-dependabot-alerts.md,broken liquid tags
|
||||
translations/zh-CN/content/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates.md,broken liquid tags
|
||||
translations/zh-CN/content/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file.md,broken liquid tags
|
||||
translations/zh-CN/content/code-security/secret-scanning/about-secret-scanning.md,broken liquid tags
|
||||
translations/zh-CN/content/code-security/secret-scanning/protecting-pushes-with-secret-scanning.md,broken liquid tags
|
||||
@@ -298,17 +297,21 @@ translations/zh-CN/content/codespaces/codespaces-reference/allowing-your-codespa
|
||||
translations/zh-CN/content/codespaces/codespaces-reference/using-github-copilot-in-github-codespaces.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/codespaces-reference/using-the-vs-code-command-palette-in-codespaces.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/customizing-your-codespace/personalizing-github-codespaces-for-your-account.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/customizing-your-codespace/setting-your-default-editor-for-github-codespaces.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/developing-in-codespaces/codespaces-lifecycle.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/developing-in-codespaces/creating-a-codespace.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/developing-in-codespaces/deleting-a-codespace.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/developing-in-codespaces/developing-in-a-codespace.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/developing-in-codespaces/renaming-a-codespace.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/developing-in-codespaces/using-github-codespaces-in-visual-studio-code.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/getting-started/quickstart.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/enabling-github-codespaces-for-your-organization.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/managing-billing-for-github-codespaces-in-your-organization.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/restricting-access-to-machine-types.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/restricting-the-idle-timeout-period.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/restricting-the-retention-period-for-codespaces.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/restricting-the-visibility-of-forwarded-ports.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/setting-up-your-project-for-codespaces/introduction-to-dev-containers.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/troubleshooting/exporting-changes-to-a-branch.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/troubleshooting/github-codespaces-logs.md,broken liquid tags
|
||||
translations/zh-CN/content/codespaces/troubleshooting/working-with-support-for-github-codespaces.md,broken liquid tags
|
||||
translations/zh-CN/content/developers/apps/building-github-apps/authenticating-with-github-apps.md,broken liquid tags
|
||||
@@ -319,7 +322,6 @@ translations/zh-CN/content/get-started/exploring-projects-on-github/following-or
|
||||
translations/zh-CN/content/get-started/quickstart/be-social.md,broken liquid tags
|
||||
translations/zh-CN/content/issues/planning-and-tracking-with-projects/managing-your-project/managing-visibility-of-your-projects.md,broken liquid tags
|
||||
translations/zh-CN/content/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue.md,broken liquid tags
|
||||
translations/zh-CN/content/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization.md,broken liquid tags
|
||||
translations/zh-CN/content/organizations/managing-organization-settings/allowing-project-visibility-changes-in-your-organization.md,broken liquid tags
|
||||
translations/zh-CN/content/packages/learn-github-packages/about-permissions-for-github-packages.md,broken liquid tags
|
||||
translations/zh-CN/content/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility.md,broken liquid tags
|
||||
@@ -340,7 +342,6 @@ translations/zh-CN/content/support/learning-about-github-support/about-github-su
|
||||
translations/zh-CN/data/release-notes/github-ae/2021-06/2021-12-06.yml,broken liquid tags
|
||||
translations/zh-CN/data/reusables/actions/about-actions-for-enterprises.md,rendering error
|
||||
translations/zh-CN/data/reusables/actions/actions-billing.md,broken liquid tags
|
||||
translations/zh-CN/data/reusables/actions/actions-do-not-trigger-workflows.md,broken liquid tags
|
||||
translations/zh-CN/data/reusables/actions/jobs/section-running-jobs-in-a-container.md,broken liquid tags
|
||||
translations/zh-CN/data/reusables/actions/self-hosted-runner-add-to-enterprise.md,broken liquid tags
|
||||
translations/zh-CN/data/reusables/actions/workflow-template-overview.md,rendering error
|
||||
@@ -348,8 +349,8 @@ translations/zh-CN/data/reusables/advanced-security/secret-scanning-push-protect
|
||||
translations/zh-CN/data/reusables/code-scanning/example-configuration-files.md,broken liquid tags
|
||||
translations/zh-CN/data/reusables/code-scanning/licensing-note.md,broken liquid tags
|
||||
translations/zh-CN/data/reusables/code-scanning/run-additional-queries.md,broken liquid tags
|
||||
translations/zh-CN/data/reusables/codespaces/click-remote-explorer-icon-vscode.md,broken liquid tags
|
||||
translations/zh-CN/data/reusables/codespaces/rebuild-command.md,broken liquid tags
|
||||
translations/zh-CN/data/reusables/codespaces/your-codespaces-procedure-step.md,broken liquid tags
|
||||
translations/zh-CN/data/reusables/dependabot/default-dependencies-allow-ignore.md,broken liquid tags
|
||||
translations/zh-CN/data/reusables/enterprise-accounts/repo-creation-policy.md,broken liquid tags
|
||||
translations/zh-CN/data/reusables/enterprise-accounts/security-tab.md,broken liquid tags
|
||||
|
||||
|
@@ -41,10 +41,10 @@ children:
|
||||
- /setting-up-and-managing-your-github-profile
|
||||
- /managing-subscriptions-and-notifications-on-github
|
||||
ms.openlocfilehash: 922990e3a89a53f625e739650c3c3b329f1f497d
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.sourcegitcommit: 770ed406ec075528ec9c9695aa4bfdc8c8b25fd3
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '146200192'
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '147888458'
|
||||
---
|
||||
|
||||
|
||||
@@ -21,10 +21,10 @@ children:
|
||||
- /troubleshooting-commits-on-your-timeline
|
||||
shortTitle: Manage contribution settings
|
||||
ms.openlocfilehash: 022a9afdb91a5c65cea12c4bbeef5c4ba9673be6
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147079526'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147881209'
|
||||
---
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
---
|
||||
title: 管理 GitHub 企业营销页面的 Cookie 首选项
|
||||
intro: '可以控制 {% data variables.product.company_short %} 如何使用来自企业营销页面的非基本跟踪 Cookie 的信息。'
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
topics:
|
||||
- Accounts
|
||||
shortTitle: Manage cookie preferences
|
||||
ms.openlocfilehash: f2fdbcf8bd552902e7db491aa1b3c6622c5673ab
|
||||
ms.sourcegitcommit: 478f2931167988096ae6478a257f492ecaa11794
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/09/2022
|
||||
ms.locfileid: '147760918'
|
||||
---
|
||||
## 关于企业营销页面的 Cookie 首选项
|
||||
|
||||
{% data variables.product.company_short %} 可能会在某些企业营销页面上使用非基本 Cookie。 可以自定义这些 Cookie 的行为方式。 有关 {% data variables.product.company_short %} 如何使用 Cookie 的详细信息,请参阅“[{% data variables.product.company_short %} 隐私声明](/free-pro-team@latest/site-policy/privacy-policies/github-privacy-statement)”。
|
||||
|
||||
## 更改 Cookie 首选项
|
||||
|
||||
可以自定义任何 {% data variables.product.company_short %} 企业营销页面上的非基本 Cookie 的行为方式。
|
||||
|
||||
1. 导航到要更改 Cookie 首选项的 {% data variables.product.company_short %} 企业营销页面。 例如,导航到 [{% data variables.product.company_short %} 资源](https://resources.github.com/)。
|
||||
1. 滚动到页面底部,然后单击“管理 Cookie”。
|
||||
|
||||

|
||||
|
||||
1. 在“管理 Cookie 首选项”下,若要接受或拒绝各个非基本 Cookie,请单击“接受”或“拒绝” 。
|
||||
|
||||

|
||||
|
||||
1. 单击“保存更改”。
|
||||
|
||||

|
||||
@@ -16,11 +16,11 @@ topics:
|
||||
- Accounts
|
||||
shortTitle: Show or hide membership
|
||||
ms.openlocfilehash: 89f9c7ee5cae6215412fd20dc0590f4f8dc5bf0b
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '145164731'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147881177'
|
||||
---
|
||||

|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Publishing actions in GitHub Marketplace
|
||||
intro: 'You can publish actions in {% data variables.product.prodname_marketplace %} and share actions you''ve created with the {% data variables.product.prodname_dotcom %} community.'
|
||||
title: 在 GitHub Marketplace 中发布操作
|
||||
intro: '您可以在 {% data variables.product.prodname_marketplace %} 中发布操作,以及与 {% data variables.product.prodname_dotcom %} 社区共享您创建的操作。'
|
||||
redirect_from:
|
||||
- /github/automating-your-workflow-with-github-actions/publishing-actions-in-github-marketplace
|
||||
- /actions/automating-your-workflow-with-github-actions/publishing-actions-in-github-marketplace
|
||||
@@ -10,59 +10,63 @@ versions:
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
shortTitle: Publish in GitHub Marketplace
|
||||
ms.openlocfilehash: e16f65116d7aa7c327e937dc2eba8964195e547d
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147884299'
|
||||
---
|
||||
您必须接受服务条款才能在 {% data variables.product.prodname_marketplace %} 中发布操作。
|
||||
|
||||
You must accept the terms of service to publish actions in {% data variables.product.prodname_marketplace %}.
|
||||
## 关于发布操作
|
||||
|
||||
## About publishing actions
|
||||
必须先在您的仓库中创建操作,然后才可发布操作。 有关详细信息,请参阅“[创建操作](/actions/creating-actions)”。
|
||||
|
||||
Before you can publish an action, you'll need to create an action in your repository. For more information, see "[Creating actions](/actions/creating-actions)."
|
||||
计划发布操作到 {% data variables.product.prodname_marketplace %} 时, 您需要确保仓库仅包含该操作的元数据文件、代码和文件。 为操作创建单个仓库允许您在单一单元中标记、发布和打包代码。 {% data variables.product.prodname_dotcom %} 还使用 {% data variables.product.prodname_marketplace %} 页面上的操作元数据。
|
||||
|
||||
When you plan to publish your action to {% data variables.product.prodname_marketplace %}, you'll need ensure that the repository only includes the metadata file, code, and files necessary for the action. Creating a single repository for the action allows you to tag, release, and package the code in a single unit. {% data variables.product.prodname_dotcom %} also uses the action's metadata on your {% data variables.product.prodname_marketplace %} page.
|
||||
操作立即发布到 {% data variables.product.prodname_marketplace %},只要符合以下要求,就不会受到 {% data variables.product.prodname_dotcom %} 审查:
|
||||
|
||||
Actions are published to {% data variables.product.prodname_marketplace %} immediately and aren't reviewed by {% data variables.product.prodname_dotcom %} as long as they meet these requirements:
|
||||
- 操作必须位于公共存储库中。
|
||||
- 每个存储库必须仅包含一项操作。
|
||||
- 操作的元数据文件(`action.yml` 或 `action.yaml`)必须位于存储库的根目录中。
|
||||
- 操作的元数据文件中的 `name` 必须是唯一的。
|
||||
- `name` 与 {% data variables.product.prodname_marketplace %} 上发布的现有操作名称不匹配。
|
||||
- `name` 与 {% data variables.product.prodname_dotcom %} 上的用户或组织不匹配,除非用户或组织所有者正在发布操作。 例如,只有 {% data variables.product.prodname_dotcom %} 组织可以发布名为 `github` 的操作。
|
||||
- `name` 与现有的 {% data variables.product.prodname_marketplace %} 类别不匹配。
|
||||
- {% data variables.product.prodname_dotcom %} 将保留 {% data variables.product.prodname_dotcom %} 功能的名称。
|
||||
|
||||
- The action must be in a public repository.
|
||||
- Each repository must contain a single action.
|
||||
- The action's metadata file (`action.yml` or `action.yaml`) must be in the root directory of the repository.
|
||||
- The `name` in the action's metadata file must be unique.
|
||||
- The `name` cannot match an existing action name published on {% data variables.product.prodname_marketplace %}.
|
||||
- The `name` cannot match a user or organization on {% data variables.product.prodname_dotcom %}, unless the user or organization owner is publishing the action. For example, only the {% data variables.product.prodname_dotcom %} organization can publish an action named `github`.
|
||||
- The `name` cannot match an existing {% data variables.product.prodname_marketplace %} category.
|
||||
- {% data variables.product.prodname_dotcom %} reserves the names of {% data variables.product.prodname_dotcom %} features.
|
||||
## 发布一项操作
|
||||
|
||||
## Publishing an action
|
||||
您可以将已创建的操作标记为新发行版并发布,便可将其添加到 {% data variables.product.prodname_marketplace %}。
|
||||
|
||||
You can add the action you've created to {% data variables.product.prodname_marketplace %} by tagging it as a new release and publishing it.
|
||||
|
||||
To draft a new release and publish the action to {% data variables.product.prodname_marketplace %}, follow these instructions:
|
||||
要草拟新发行版并将操作发布到 {% data variables.product.prodname_marketplace %},请遵循以下说明:
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
1. Navigate to the action metadata file in your repository (`action.yml` or `action.yaml`), and you'll see a banner to publish the action to {% data variables.product.prodname_marketplace %}. Click **Draft a release**.
|
||||
1. 导航到存储库中的操作元数据文件(`action.yml` 或 `action.yaml`),将看到用于将操作发布到 {% data variables.product.prodname_marketplace %} 的横幅。 单击“草稿版本”。
|
||||
|
||||

|
||||
1. Under "Release Action", select the checkbox to publish the action to the {% data variables.product.prodname_marketplace %}. If you can't select the checkbox, you must first click the link to read and accept the {% data variables.product.prodname_marketplace %} Developer Agreement.
|
||||

|
||||
1. If the labels in your metadata file contain any problems, you will see an error message.
|
||||

|
||||
1. If you see any on-screen suggestions, address them by updating your metadata file. Once complete, you will see an "Everything looks good!" message.
|
||||

|
||||
1. Choose a "Primary Category" and, optionally, "Another Category" which will help people find your action in {% data variables.product.prodname_marketplace %}.
|
||||

|
||||
1. Tag your Action with a version, and add a release title. This helps people know what changes or features the release includes. People will see the version in the action's dedicated {% data variables.product.prodname_marketplace %} page.
|
||||

|
||||
1. Complete all other fields and click **Publish release**. Publishing requires you to use two-factor authentication. For more information, see "[Configuring two-factor authentication](/articles/configuring-two-factor-authentication/)."
|
||||

|
||||

|
||||
1. 在“发布操作”下,选中将操作发布到 {% data variables.product.prodname_marketplace %} 的复选框。 如果无法选中该复选框,则必须先单击链接以阅读并接受 {% data variables.product.prodname_marketplace %} 开发人员协议。
|
||||

|
||||
1. 如果元数据文件中的标签包含任何问题,您将看到一条错误消息。
|
||||

|
||||
1. 如果您看到任何屏幕上的建议,请通过更新元数据文件来解决这些问题。 完成后,你将看到“看起来一切正常!”消息 消息作为响应。
|
||||

|
||||
1. 选择“Primary Category(主要类别)”,然后按需要选择“Another Category(另一个类别)”,这将有助于人们找到您的 {% data variables.product.prodname_marketplace %} 中的操作。
|
||||

|
||||
1. 使用版本标记操作,并添加发行版标题。 这有助于人们知道发行版包含哪些变化或特征。 人们将在操作的专门 {% data variables.product.prodname_marketplace %} 页面中看到版本。
|
||||

|
||||
1. 完成所有其他字段,然后单击“发布版本”。 发布需要使用双重身份验证。 有关详细信息,请参阅“[双因素身份验证](/articles/configuring-two-factor-authentication/)”。
|
||||

|
||||
|
||||
## Removing an action from {% data variables.product.prodname_marketplace %}
|
||||
## 从 {% data variables.product.prodname_marketplace %} 删除操作
|
||||
|
||||
To remove a published action from {% data variables.product.prodname_marketplace %}, you'll need to update each published release. Perform the following steps for each release of the action you've published to {% data variables.product.prodname_marketplace %}.
|
||||
要从 {% data variables.product.prodname_marketplace %} 删除已发布的操作,您需要更新每个已发布的发行版。 对已发布到 {% data variables.product.prodname_marketplace %} 的操作的每个发行版执行以下步骤。
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
{% data reusables.repositories.releases %}
|
||||
3. On the Releases page, to the right of the release you want to edit, click **Edit**.
|
||||

|
||||
4. Select **Publish this action to the {% data variables.product.prodname_marketplace %}** to remove the check from the box.
|
||||

|
||||
5. Click **Update release** at the bottom of the page.
|
||||

|
||||
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.releases %}
|
||||
3. 单击“版本”页上要编辑的版本右侧的“编辑”。
|
||||

|
||||
4. 选择“将此操作发布到 {% data variables.product.prodname_marketplace %}”以取消选中复选框。
|
||||

|
||||
5. 单击页面底部的“更新版本”。
|
||||

|
||||
|
||||
@@ -11,10 +11,10 @@ versions:
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
ms.openlocfilehash: 28aecc646814736beb8c814dfe4b8385a6605cd2
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: 76b840f45ba85fb79a7f0c1eb43bc663b3eadf2b
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '145084703'
|
||||
---
|
||||
{% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %}
|
||||
|
||||
@@ -16,11 +16,11 @@ topics:
|
||||
- Amazon ECS
|
||||
shortTitle: Deploy to Amazon ECS
|
||||
ms.openlocfilehash: 259a3fd5bc0076f60d0c08f356b3ec9914effe89
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147410185'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147881104'
|
||||
---
|
||||
{% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %}
|
||||
|
||||
|
||||
@@ -17,10 +17,10 @@ children:
|
||||
- /deploying-to-azure-static-web-app
|
||||
- /deploying-to-azure-kubernetes-service
|
||||
ms.openlocfilehash: 3f46da1c3e78358f16221a305fa38d6e0b8ca80f
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.sourcegitcommit: 76b840f45ba85fb79a7f0c1eb43bc663b3eadf2b
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '145084697'
|
||||
---
|
||||
|
||||
|
||||
@@ -15,10 +15,10 @@ children:
|
||||
- /managing-your-deployments
|
||||
- /deploying-xcode-applications
|
||||
ms.openlocfilehash: f12dbb4711f43efa6e8a25f0ad274f686d62c654
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '145084693'
|
||||
---
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ The following example OIDC token uses a subject (`sub`) that references a job en
|
||||
"repository": "octo-org/octo-repo",
|
||||
"repository_owner": "octo-org",
|
||||
"actor_id": "12",
|
||||
"repo_visibility": private,
|
||||
"repository_visibility": private,
|
||||
"repository_id": "74",
|
||||
"repository_owner_id": "65",
|
||||
"run_id": "example-run-id",
|
||||
@@ -129,7 +129,7 @@ The token also includes custom claims provided by {% data variables.product.prod
|
||||
| `job_workflow_ref`| This is the ref path to the reusable workflow used by this job. For more information, see "["Using OpenID Connect with reusable workflows"](/actions/deployment/security-hardening-your-deployments/using-openid-connect-with-reusable-workflows)." |
|
||||
| `ref`| _(Reference)_ The git ref that triggered the workflow run. |
|
||||
| `ref_type`| The type of `ref`, for example: "branch". |
|
||||
| `repo_visibility` | The visibility of the repository where the workflow is running. Accepts the following values: `internal`, `private`, or `public`. |
|
||||
| `repository_visibility` | The visibility of the repository where the workflow is running. Accepts the following values: `internal`, `private`, or `public`. |
|
||||
| `repository`| The repository from where the workflow is running. |
|
||||
| `repository_id`| The ID of the repository from where the workflow is running. |
|
||||
| `repository_owner`| The name of the organization in which the `repository` is stored. |
|
||||
@@ -247,7 +247,7 @@ You can security harden your OIDC configuration by customizing the claims that a
|
||||
|
||||
{% ifversion ghec %} - For an additional layer of security, you can append the `issuer` url with your enterprise slug. This lets you set conditions on the issuer (`iss`) claim, configuring it to only accept JWT tokens from a unique `issuer` URL that must include your enterprise slug.{% endif %}
|
||||
- You can standardize your OIDC configuration by setting conditions on the subject (`sub`) claim that require JWT tokens to originate from a specific repository, reusable workflow, or other source.
|
||||
- You can define granular OIDC policies by using additional OIDC token claims, such as `repository_id` and `repo_visibility`. For more information, see "[Understanding the OIDC token](/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#understanding-the-oidc-token)".
|
||||
- You can define granular OIDC policies by using additional OIDC token claims, such as `repository_id` and `repository_visibility`. For more information, see "[Understanding the OIDC token](/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#understanding-the-oidc-token)".
|
||||
|
||||
To customize these claim formats, organization and repository admins can use the REST API endpoints described in the following sections.
|
||||
|
||||
|
||||
@@ -12,10 +12,10 @@ children:
|
||||
- using-the-github-cli-on-a-runner
|
||||
- using-concurrency-expressions-and-a-test-matrix
|
||||
ms.openlocfilehash: ead17cbc8c35735e3676aa7b992ebd05ac6686ae
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147062576'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147881088'
|
||||
---
|
||||
|
||||
|
||||
@@ -7,11 +7,11 @@ type: reference
|
||||
miniTocMaxHeadingLevel: 4
|
||||
shortTitle: Customize containers used by jobs
|
||||
ms.openlocfilehash: 774aad09c504a09f0bf4f60af286952ee24f89b5
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147079837'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147881161'
|
||||
---
|
||||
{% note %}
|
||||
|
||||
|
||||
@@ -13,11 +13,11 @@ topics:
|
||||
- Workflows
|
||||
- Project management
|
||||
ms.openlocfilehash: 8e80990a1a533ed303f47cbad8dafb95c890893d
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147410433'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147884307'
|
||||
---
|
||||
{% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ ms.openlocfilehash: 3deac3e698cec0e3008defd38d681a1ffa30a5d2
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '145100177'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147884921'
|
||||
---
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@ topics:
|
||||
- Containers
|
||||
- Docker
|
||||
ms.openlocfilehash: 9d5ad3e32e5df22101b61aa7ba134e7fe69333e5
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: 770ed406ec075528ec9c9695aa4bfdc8c8b25fd3
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '145100171'
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '147886636'
|
||||
---
|
||||
{% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %}
|
||||
|
||||
|
||||
@@ -10,11 +10,11 @@ topics:
|
||||
- Actions
|
||||
- Developer
|
||||
ms.openlocfilehash: 2a74b149596e0158cdc6b5e40508b1d4a54eb8e6
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '145912182'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147884267'
|
||||
---
|
||||
{% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %}
|
||||
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
---
|
||||
title: 使用较大运行器
|
||||
intro: '{% data variables.product.prodname_dotcom %} 提供具有更多 RAM 和 CPU 的较大运行器。'
|
||||
miniTocMaxHeadingLevel: 3
|
||||
product: '{% data reusables.gated-features.hosted-runners %}'
|
||||
versions:
|
||||
feature: actions-hosted-runners
|
||||
shortTitle: 'Using {% data variables.actions.hosted_runner %}s'
|
||||
ms.openlocfilehash: 21f69e5b970ce72840179bb511bea765e0ed0190
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147763944'
|
||||
---
|
||||
## {% data variables.actions.hosted_runner %} 概述
|
||||
|
||||
除了 [标准 {% data variables.product.prodname_dotcom %} 托管的运行器](/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources)之外,{% data variables.product.prodname_dotcom %} 还在 {% data variables.product.prodname_team %} 和 {% data variables.product.prodname_ghe_cloud %} 计划中为客户提供一系列具有更多 RAM 和 CPU 的 {% data variables.actions.hosted_runner %}。 这些运行器由 {% data variables.product.prodname_dotcom %} 托管,并预安装了运行器应用程序和其他工具。
|
||||
|
||||
向组织添加 {% data variables.actions.hosted_runner %} 时,会通过精选的可用硬件规范和操作系统映像定义计算机类型。 {% data variables.product.prodname_dotcom %} 随后会创建此运行器的多个实例,这些实例可基于定义的自动缩放限制,纵向扩展和缩减以匹配组织的作业需求。
|
||||
|
||||
## {% data variables.actions.hosted_runner %} 体系结构概述
|
||||
|
||||
{% data variables.actions.hosted_runner %} 在组织级别进行管理,它们被安排为可以包含运行器的多个实例的各个组。 它们还可以在企业级别进行创建,并与层次结构中的组织共享。 创建了组后,随后便可以向组添加运行器,并更新工作流以便将分配给 {% data variables.actions.hosted_runner %} 的标签作为目标。 还可以控制允许哪些存储库将作业发送到组进行处理。 有关组的详细信息,请参阅“[控制对 {% data variables.actions.hosted_runner %} 的访问](/actions/using-github-hosted-runners/controlling-access-to-larger-runners)”。
|
||||
|
||||
在下图中,使用自定义硬件和操作系统配置定义了名为 `ubuntu-20.04-16core` 的托管运行器类别。
|
||||
|
||||

|
||||
|
||||
1. 此运行器的实例会自动创建并添加到名为 `ubuntu-20.04-16core` 的组。
|
||||
2. 运行器已分配有标签 `ubuntu-20.04-16core`。
|
||||
3. 工作流作业在其 `runs-on` 键中使用 `ubuntu-20.04-16core` 标签来指示执行作业所需的运行器类型。
|
||||
4. {% data variables.product.prodname_actions %} 会检查运行器组,以查看是否授权存储库将作业发送到运行器。
|
||||
5. 作业在 `ubuntu-20.04-16core` 运行器的下一个可用实例上运行。
|
||||
|
||||
## {% data variables.actions.hosted_runner %} 的自动缩放
|
||||
|
||||
{% data variables.actions.hosted_runner %} 可以配置为自动缩放以满足需求。 提交作业进行处理时,可以自动预配更多计算机以运行作业,直到达到预定义的最大限制。 每台计算机一次只处理一个作业,因此这些设置实际上确定可以并发运行的作业数。
|
||||
|
||||
在运行器部署过程中,可以配置“最大值”选项,这使你可以通过设置在此集中创建的最大并行计算机数来控制成本。 此处的较高值可帮助避免由于并行而阻止工作流。
|
||||
|
||||
## {% data variables.actions.hosted_runner %} 的网络
|
||||
|
||||
默认情况下,{% data variables.actions.hosted_runner %} 会接收为每个作业运行而更改的动态 IP 地址。 (可选){% data variables.product.prodname_ghe_cloud %} 客户可以将其 {% data variables.actions.hosted_runner %} 配置为从 {% data variables.product.prodname_dotcom %} 的 IP 地址池接收静态 IP 地址。 启用后,{% data variables.actions.hosted_runner %} 的实例会从对运行器唯一的范围接收地址,从而使你能够使用此范围配置防火墙允许列表。 在所有 {% data variables.actions.hosted_runner %} 中,总共最多可以使用 10 个静态 IP 地址范围。
|
||||
|
||||
{% note %}
|
||||
|
||||
注意:如果运行器未使用的时间超过 30 天,则其 IP 地址范围会自动移除,无法恢复。
|
||||
|
||||
{% endnote %}
|
||||
|
||||
## {% data variables.actions.hosted_runner %} 的规划
|
||||
|
||||
### 创建运行器组
|
||||
|
||||
运行器组用于收集虚拟机集,并围绕它们创建安全边界。 随后可以确定允许哪些组织或存储库在这些计算机集上运行作业。 在 {% data variables.actions.hosted_runner %} 部署过程中,运行器可以添加到现有组,否则会加入默认组。 可以按照“[控制对 {% data variables.actions.hosted_runner %} 的访问](/actions/using-github-hosted-runners/controlling-access-to-larger-runners)”中的步骤创建组。
|
||||
|
||||
### 了解计费
|
||||
|
||||
与标准 {% data variables.product.prodname_dotcom %} 托管的运行器相比,{% data variables.actions.hosted_runner %} 的计费方式有所不同。 有关详细信息,请参阅“[每分钟费率](/billing/managing-billing-for-github-actions/about-billing-for-github-actions#per-minute-rates)”。
|
||||
|
||||
## 将 {% data variables.actions.hosted_runner %} 添加到企业
|
||||
|
||||
可以将 {% data variables.actions.hosted_runner %} 添加到企业,在该企业中可以将它们分配给多个组织。 组织管理员随后可以控制哪些存储库可以使用运行器。 若要将 {% data variables.actions.hosted_runner %} 添加到企业,你必须是组织所有者。
|
||||
|
||||
{% data reusables.actions.add-hosted-runner-overview %}
|
||||
|
||||
{% data reusables.enterprise-accounts.access-enterprise %} {% data reusables.enterprise-accounts.policies-tab %} {% data reusables.enterprise-accounts.actions-tab %} {% data reusables.enterprise-accounts.actions-runners-tab %} {% data reusables.actions.add-hosted-runner %}
|
||||
1. 若要允许组织访问 {% data variables.actions.hosted_runner %},请指定可以使用它的组织列表。 有关详细信息,请参阅“[管理对运行器的访问](#managing-access-to-your-runners)”。
|
||||
|
||||
## 将 {% data variables.actions.hosted_runner %} 添加到组织
|
||||
|
||||
可以将 {% data variables.actions.hosted_runner %} 添加到组织,其中的组织管理员可以控制哪些存储库可以使用它。
|
||||
|
||||
{% data reusables.actions.add-hosted-runner-overview %}
|
||||
|
||||
{% data reusables.organizations.navigate-to-org %} {% data reusables.organizations.org_settings %} {% data reusables.organizations.settings-sidebar-actions-runners %} {% data reusables.actions.add-hosted-runner %}
|
||||
1. 若要允许存储库访问 {% data variables.actions.hosted_runner %},请将它们添加到可以使用它的存储库列表中。 有关详细信息,请参阅“[管理对运行器的访问](#managing-access-to-your-runners)”。
|
||||
|
||||
## 在运行器上运行作业
|
||||
|
||||
定义了运行器类型后,便可以更新工作流以将作业发送到运行器实例进行处理。 在此示例中,运行器组使用 Ubuntu 16 核心运行器(分配了标签 `ubuntu-20.04-16core`)进行填充。 如果你有一个与此标签匹配的运行器,则 `check-bats-version` 作业在每次运行时,会使用 `runs-on` 键以该运行器为目标:
|
||||
|
||||
```yaml
|
||||
name: learn-github-actions
|
||||
on: [push]
|
||||
jobs:
|
||||
check-bats-version:
|
||||
runs-on: ubuntu-20.04-16core
|
||||
steps:
|
||||
- uses: {% data reusables.actions.action-checkout %}
|
||||
- uses:{% data reusables.actions.action-setup-node %}
|
||||
with:
|
||||
node-version: '14'
|
||||
- run: npm install -g bats
|
||||
- run: bats -v
|
||||
```
|
||||
|
||||
## 管理对运行器的访问
|
||||
|
||||
{% note %}
|
||||
|
||||
注意:必须先为运行器组配置权限,然后工作流才能将作业发送到 {% data variables.actions.hosted_runner %}。 有关详细信息,请参阅下列各节。
|
||||
|
||||
{% endnote %}
|
||||
|
||||
运行器组用于控制哪些存储库可以在 {% data variables.actions.hosted_runner %} 上运行作业。 必须从管理层次结构的各个级别授予对组的访问权限,具体取决于定义 {% data variables.actions.hosted_runner %} 的位置:
|
||||
|
||||
- 企业级别的运行器:配置运行器组以授予对所有所需组织的访问权限。 此外,对于每个组织,必须配置组以指定允许访问的存储库。
|
||||
- 组织级别的运行器:通过指定允许访问的存储库来配置运行器组。
|
||||
|
||||
例如,下图包含一个企业级别的名为 `grp-ubuntu-20.04-16core` 的运行器组。 在名为 `octo-repo` 的存储库可以使用该组中的运行器之前,必须先在企业级别配置该组以允许从 `octo-org` 组织进行访问;随后必须在组织级别配置该组以允许从 `octo-repo` 进行访问:
|
||||
|
||||

|
||||
|
||||
### 允许存储库访问运行器组
|
||||
|
||||
此过程演示如何在企业和组织级别配置组权限:
|
||||
|
||||
{% data reusables.actions.runner-groups-navigate-to-repo-org-enterprise %} {% data reusables.actions.settings-sidebar-actions-runner-groups-selection %}
|
||||
- 对于企业中的运行器组:在“组织访问”下,修改可以访问运行器组的组织。
|
||||
- 对于组织中的运行器组:在“存储库访问”下,修改可以访问运行器组的存储库。
|
||||
|
||||
{% warning %}
|
||||
|
||||
**警告**:
|
||||
|
||||
{% data reusables.actions.hosted-runner-security %}
|
||||
|
||||
有关详细信息,请参阅“[控制对 {% data variables.actions.hosted_runner %} 的访问](/actions/using-github-hosted-runners/controlling-access-to-larger-runners)”。
|
||||
|
||||
{% endwarning %}
|
||||
@@ -16,11 +16,11 @@ topics:
|
||||
- Workflows
|
||||
- CI
|
||||
ms.openlocfilehash: cbaecefc90f3593b8883c7ccad5256b4addf972c
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '145100132'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147884187'
|
||||
---
|
||||
{% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %}
|
||||
|
||||
|
||||
@@ -12,11 +12,11 @@ versions:
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
ms.openlocfilehash: bf80624fe1118d424a57f7c22efab6368c914819
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '146178589'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147884259'
|
||||
---
|
||||
{% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %}
|
||||
|
||||
|
||||
@@ -21,10 +21,10 @@ topics:
|
||||
- Infrastructure
|
||||
- Networking
|
||||
ms.openlocfilehash: 0dea06870a1bc7bc951580acf3d83a9d2f0984c2
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 80842b4e4c500daa051eff0ccd7cde91c2d4bb36
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '146332454'
|
||||
---
|
||||
{% data reusables.github-connect.beta %}
|
||||
|
||||
@@ -16,10 +16,10 @@ topics:
|
||||
- Networking
|
||||
shortTitle: Use a load balancer
|
||||
ms.openlocfilehash: dcbd1261d127e48140f6b6843ef4ec3c35fb84f4
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 76b840f45ba85fb79a7f0c1eb43bc663b3eadf2b
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '147167313'
|
||||
---
|
||||
## 关于负载均衡器
|
||||
|
||||
@@ -20,11 +20,11 @@ topics:
|
||||
- Troubleshooting
|
||||
shortTitle: Troubleshoot TLS errors
|
||||
ms.openlocfilehash: 855737f89f0380333b1f37c26d512c889f2ee786
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147389399'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147881249'
|
||||
---
|
||||
## 将密码从密钥文件中移除
|
||||
|
||||
|
||||
@@ -15,10 +15,10 @@ children:
|
||||
- /caching-repositories
|
||||
shortTitle: 'Monitor, manage, and update your appliance'
|
||||
ms.openlocfilehash: 1d2a9dfb22d8243617ba5844df93e5bfcaf6d99d
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '145100024'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147882737'
|
||||
---
|
||||
|
||||
|
||||
@@ -15,11 +15,11 @@ topics:
|
||||
- Storage
|
||||
shortTitle: Increase storage capacity
|
||||
ms.openlocfilehash: b6542e1f43ce4111358de3940c8e46dea2afd5d5
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147065390'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147881120'
|
||||
---
|
||||
{% data reusables.enterprise_installation.warning-on-upgrading-physical-resources %}
|
||||
|
||||
|
||||
@@ -22,10 +22,10 @@ children:
|
||||
- /using-enterprise-managed-users-for-iam
|
||||
- /managing-recovery-codes-for-your-enterprise
|
||||
ms.openlocfilehash: 8c7a364ba6310617452626901c5859ef54cd2b47
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147066479'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147882809'
|
||||
---
|
||||
|
||||
|
||||
@@ -17,11 +17,11 @@ topics:
|
||||
- Identity
|
||||
shortTitle: Change authentication methods
|
||||
ms.openlocfilehash: 074c4fe8784d3ea7b8ada6b532e680384571facf
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '145099983'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147882689'
|
||||
---
|
||||
更改身份验证方法时,{% data variables.product.product_location %} 上的用户帐户将保留,只要他们的用户名没有发生变化,用户就可以继续登录原来的帐户。
|
||||
|
||||
|
||||
@@ -19,11 +19,11 @@ topics:
|
||||
- Identity
|
||||
- SSO
|
||||
ms.openlocfilehash: 4bd9c8baf32ab09c593a251ca4f1cb698e075501
|
||||
ms.sourcegitcommit: 1309b46201604c190c63bfee47dce559003899bf
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '145098060'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147884275'
|
||||
---
|
||||
## 关于 {% data variables.product.product_name %} 的 CAS 身份验证
|
||||
|
||||
|
||||
@@ -14,11 +14,11 @@ topics:
|
||||
- Accounts
|
||||
- Enterprise
|
||||
ms.openlocfilehash: 3ce59680c100004496e761d2a93adc9e9cae0a22
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '146689075'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147881495'
|
||||
---
|
||||
## 关于 {% data variables.product.prodname_emus %} 的预配
|
||||
|
||||
|
||||
@@ -134,10 +134,10 @@ children:
|
||||
- /release-notes
|
||||
- /all-releases
|
||||
ms.openlocfilehash: ebd1473538d42928ff3d9abb3c0e2bd9f12767f5
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '146454171'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147881153'
|
||||
---
|
||||
|
||||
|
||||
@@ -22,10 +22,10 @@ children:
|
||||
- /setting-up-a-staging-instance
|
||||
shortTitle: Set up an instance
|
||||
ms.openlocfilehash: 23fe586f2c4baa87a2e2b388685bf8e42d5e10a4
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '145099025'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147881459'
|
||||
---
|
||||
|
||||
|
||||
@@ -15,11 +15,11 @@ topics:
|
||||
- Set up
|
||||
shortTitle: Install on OpenStack
|
||||
ms.openlocfilehash: 105201d2759b333d297278aa7fe32a9544c68839
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '145098699'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147884953'
|
||||
---
|
||||
## 先决条件
|
||||
|
||||
|
||||
@@ -9,10 +9,10 @@ children:
|
||||
- /exporting-server-statistics
|
||||
- /requesting-server-statistics-using-the-rest-api
|
||||
ms.openlocfilehash: 76f0e75b3d496800368a2dca38f613ba750924bc
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147065903'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147884179'
|
||||
---
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '145098690'
|
||||
ms.locfileid: '147884251'
|
||||
---
|
||||
每个团队都有自己单独定义的[组织所拥有存储库的访问权限](/articles/permission-levels-for-an-organization)。
|
||||
|
||||
|
||||
@@ -34,10 +34,10 @@ children:
|
||||
- /continuous-integration-using-jenkins
|
||||
shortTitle: Manage organizations
|
||||
ms.openlocfilehash: 5d1430bc4efff03e6cddfe81f3c018d4f2064155
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147400329'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147884243'
|
||||
---
|
||||
|
||||
|
||||
@@ -11,11 +11,11 @@ topics:
|
||||
- Organizations
|
||||
shortTitle: Manage your organization roles
|
||||
ms.openlocfilehash: e7a95602fe103dcbccb80bc2dfec6a67f8b4b312
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147065176'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147884235'
|
||||
---
|
||||
## 关于角色管理
|
||||
|
||||
|
||||
@@ -16,10 +16,10 @@ topics:
|
||||
- Enterprise
|
||||
shortTitle: Manage administrators
|
||||
ms.openlocfilehash: 19daa56cf7d750d69495a6ff52655784411f56ff
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 80842b4e4c500daa051eff0ccd7cde91c2d4bb36
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '146331694'
|
||||
---
|
||||
{% tip %}
|
||||
|
||||
@@ -17,10 +17,10 @@ topics:
|
||||
- Access management
|
||||
shortTitle: Update access credentials
|
||||
ms.openlocfilehash: 650c0027b679690def6d1c77d727a87b8688b889
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 80842b4e4c500daa051eff0ccd7cde91c2d4bb36
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '147508414'
|
||||
---
|
||||
{% ifversion not ghae %}
|
||||
|
||||
@@ -12,10 +12,10 @@ topics:
|
||||
- SSH
|
||||
shortTitle: SSL certificate problem
|
||||
ms.openlocfilehash: 26777edf5b312c8f45c5b1fb211b87648778cf13
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: 80842b4e4c500daa051eff0ccd7cde91c2d4bb36
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '145084569'
|
||||
---
|
||||
您可能收到像以下这样的错误:
|
||||
|
||||
@@ -12,11 +12,11 @@ topics:
|
||||
- SSH
|
||||
shortTitle: Use SSH over HTTPS port
|
||||
ms.openlocfilehash: 47bdb96fac65d9432dfc54f671366d1b6c153556
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 770ed406ec075528ec9c9695aa4bfdc8c8b25fd3
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '145084556'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147883399'
|
||||
---
|
||||
{% tip %}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Viewing your GitHub Codespaces usage
|
||||
title: 查看 GitHub Codespaces 使用情况
|
||||
shortTitle: Viewing your usage
|
||||
intro: 'You can view the compute minutes and storage used by {% data variables.product.prodname_github_codespaces %}.'
|
||||
intro: '你可以查看 {% data variables.product.prodname_github_codespaces %} 使用的计算分钟数和存储空间。'
|
||||
permissions: 'To manage billing for {% data variables.product.prodname_github_codespaces %} for an organization, you must be an organization owner or a billing manager.'
|
||||
product: '{% data reusables.gated-features.codespaces %}'
|
||||
versions:
|
||||
@@ -13,28 +13,29 @@ topics:
|
||||
- Billing
|
||||
redirect_from:
|
||||
- /billing/managing-billing-for-github-codespaces/viewing-your-codespaces-usage
|
||||
ms.openlocfilehash: 59c7baf22070f534ea42ddde561a4b739a01fed1
|
||||
ms.sourcegitcommit: 478f2931167988096ae6478a257f492ecaa11794
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/09/2022
|
||||
ms.locfileid: '147865159'
|
||||
---
|
||||
## 查看组织的 {% data variables.product.prodname_github_codespaces %} 使用情况
|
||||
|
||||
## Viewing {% data variables.product.prodname_github_codespaces %} usage for your organization
|
||||
|
||||
Organization owners and billing managers can view {% data variables.product.prodname_github_codespaces %} usage for an organization. For organizations managed by an enterprise account, the organization owners can view {% data variables.product.prodname_codespaces %} usage in the organization billing page, and enterprise admins can view the usage for the entire enterprise.
|
||||
组织所有者和帐单管理员可查看组织的 {% data variables.product.prodname_github_codespaces %} 使用情况。 对于由企业帐户管理的组织,组织所有者可以在组织计费页面中查看 {% data variables.product.prodname_codespaces %} 使用情况,企业管理员可以查看整个企业的使用情况。
|
||||
|
||||
{% data reusables.organizations.billing-settings %}
|
||||
1. Under "{% data variables.product.prodname_codespaces %}", view the details of the compute hours and storage used so far this month.
|
||||

|
||||
{% data reusables.dotcom_billing.actions-packages-report-download-org-account %}
|
||||
1. Filter the report to show only rows that mention "Codespaces" in the `Product` field.
|
||||
1. 在“{% data variables.product.prodname_codespaces %}”下,查看本月到目前为止使用的计算小时数和存储的详细信息。
|
||||
 {% data reusables.dotcom_billing.actions-packages-report-download-org-account %}
|
||||
1. 筛选报告以仅显示 `Product` 字段中提及“Codespaces”的行。
|
||||
|
||||

|
||||

|
||||
|
||||
{% ifversion ghec %}
|
||||
## Viewing {% data variables.product.prodname_codespaces %} usage for your enterprise account
|
||||
## 查看企业帐户的 {% data variables.product.prodname_codespaces %} 使用情况
|
||||
|
||||
Enterprise owners and billing managers can view {% data variables.product.prodname_codespaces %} usage for an enterprise account.
|
||||
企业所有者和帐单管理员可查看企业帐户的 {% data variables.product.prodname_codespaces %} 使用情况。
|
||||
|
||||
{% data reusables.enterprise-accounts.access-enterprise %}
|
||||
{% data reusables.enterprise-accounts.settings-tab %}
|
||||
{% data reusables.enterprise-accounts.billing-tab %}
|
||||
1. Under "{% data variables.product.prodname_codespaces %}", view the usage details of each organization in your enterprise account.
|
||||
{% data reusables.enterprise-accounts.actions-packages-report-download-enterprise-accounts %}
|
||||
{% endif %}
|
||||
{% data reusables.enterprise-accounts.access-enterprise %} {% data reusables.enterprise-accounts.settings-tab %} {% data reusables.enterprise-accounts.billing-tab %}
|
||||
1. 在“{% data variables.product.prodname_codespaces %}”下,查看企业帐户中每个组织的使用详细信息。
|
||||
{% data reusables.enterprise-accounts.actions-packages-report-download-enterprise-accounts %} {% endif %}
|
||||
|
||||
@@ -8,11 +8,11 @@ topics:
|
||||
- Copilot
|
||||
shortTitle: Your GitHub Copilot subscription
|
||||
ms.openlocfilehash: 9cdd9e46dcbfe433f5d0b6ba25bda4c798dca06b
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147079802'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147884155'
|
||||
---
|
||||
## 设置 {% data variables.product.prodname_copilot %} 的试用版
|
||||
|
||||
|
||||
@@ -17,11 +17,11 @@ topics:
|
||||
- User account
|
||||
shortTitle: Your spending limit
|
||||
ms.openlocfilehash: 0919283804124e2e925793dd3d4969b80f46ed30
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '145084509'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147884147'
|
||||
---
|
||||
## 关于 {% data variables.product.prodname_registry %} 的支出限额
|
||||
|
||||
|
||||
@@ -9,10 +9,10 @@ topics:
|
||||
- Enterprise
|
||||
- Licensing
|
||||
ms.openlocfilehash: 030d91667630445f0811db6e51d5fe33ed863182
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.sourcegitcommit: 80842b4e4c500daa051eff0ccd7cde91c2d4bb36
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '145084477'
|
||||
---
|
||||
## 关于企业的发票
|
||||
|
||||
@@ -14,11 +14,11 @@ topics:
|
||||
- Troubleshooting
|
||||
shortTitle: Declined credit card charge
|
||||
ms.openlocfilehash: 44ed836d24e23ceb7e805cccdad6e70203381bf5
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '145084453'
|
||||
ms.locfileid: '147884219'
|
||||
---
|
||||
如果您的卡被拒绝,我们将向您发送一封电子邮件,说明付款被拒绝的原因。 在我们再次尝试向您收费之前,您将有几天的时间来解决该问题。
|
||||
|
||||
|
||||
@@ -11,10 +11,10 @@ topics:
|
||||
- Licensing
|
||||
shortTitle: Sync license usage
|
||||
ms.openlocfilehash: 8434c6f76d4cd63f7c95e7b5971f795126be7066
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 76b840f45ba85fb79a7f0c1eb43bc663b3eadf2b
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '147572590'
|
||||
---
|
||||
## 关于同步许可证使用情况
|
||||
|
||||
@@ -13,11 +13,11 @@ topics:
|
||||
- Code scanning
|
||||
- CodeQL
|
||||
ms.openlocfilehash: 1e540aa8b061e0bbdd5b7be1a2563cd983cfb753
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147067632'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147881225'
|
||||
---
|
||||
{% data reusables.code-scanning.beta %} {% data reusables.code-scanning.enterprise-enable-code-scanning %}
|
||||
|
||||
|
||||
@@ -24,11 +24,11 @@ redirect_from:
|
||||
- /code-security/secure-coding/using-codeql-code-scanning-with-your-existing-ci-system/running-codeql-cli-in-your-ci-system
|
||||
- /code-security/secure-coding/using-codeql-code-scanning-with-your-existing-ci-system/installing-codeql-cli-in-your-ci-system
|
||||
ms.openlocfilehash: 3d7c7dc3451b844b33fe0b14fd07f9a18ec81b10
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 80842b4e4c500daa051eff0ccd7cde91c2d4bb36
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147052078'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147884540'
|
||||
---
|
||||
{% data reusables.code-scanning.enterprise-enable-code-scanning %}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: 配置 Dependabot 安全更新
|
||||
intro: '您可以使用 {% data variables.product.prodname_dependabot_security_updates %} 或手动拉取请求轻松地更新有漏洞的依赖项。'
|
||||
title: Configuring Dependabot security updates
|
||||
intro: 'You can use {% data variables.product.prodname_dependabot_security_updates %} or manual pull requests to easily update vulnerable dependencies.'
|
||||
shortTitle: Configure security updates
|
||||
redirect_from:
|
||||
- /articles/configuring-automated-security-fixes
|
||||
@@ -22,64 +22,47 @@ topics:
|
||||
- Dependencies
|
||||
- Pull requests
|
||||
- Repositories
|
||||
ms.openlocfilehash: d45ba3ee3e45bcab91d9ddafdb8fb23da4963c8e
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '146027953'
|
||||
---
|
||||
<!--Marketing-LINK: From home page "Learn more about Dependabot".-->
|
||||
|
||||
{% data reusables.dependabot.beta-security-and-version-updates %} {% data reusables.dependabot.enterprise-enable-dependabot %}
|
||||
{% data reusables.dependabot.beta-security-and-version-updates %}
|
||||
{% data reusables.dependabot.enterprise-enable-dependabot %}
|
||||
|
||||
## 关于配置 {% data variables.product.prodname_dependabot_security_updates %}
|
||||
## About configuring {% data variables.product.prodname_dependabot_security_updates %}
|
||||
|
||||
您可以为任何使用 {% data variables.product.prodname_dependabot_alerts %} 和依赖关系图的仓库启用 {% data variables.product.prodname_dependabot_security_updates %}。 有关详细信息,请参阅“[关于 {% data variables.product.prodname_dependabot_security_updates %}](/github/managing-security-vulnerabilities/about-dependabot-security-updates)”。
|
||||
You can enable {% data variables.product.prodname_dependabot_security_updates %} at the repository level or for all repositories owned by your personal account or organization. You can enable {% data variables.product.prodname_dependabot_security_updates %} for any repository that uses {% data variables.product.prodname_dependabot_alerts %} and the dependency graph. For more information, see "[About {% data variables.product.prodname_dependabot_security_updates %}](/github/managing-security-vulnerabilities/about-dependabot-security-updates)."
|
||||
|
||||
你可以对单个存储库或由你的个人帐户或组织拥有的所有存储库禁用 {% data variables.product.prodname_dependabot_security_updates %}。 有关详细信息,请参阅下面的“[管理存储库的 {% data variables.product.prodname_dependabot_security_updates %}](#managing-dependabot-security-updates-for-your-repositories)”。
|
||||
You can disable {% data variables.product.prodname_dependabot_security_updates %} for an individual repository or for all repositories owned by your personal account or organization.
|
||||
|
||||
{% ifversion fpt or ghec %}{% data reusables.dependabot.dependabot-tos %}{% endif %}
|
||||
|
||||
## 支持的存储库
|
||||
## Supported repositories
|
||||
|
||||
{% data variables.product.prodname_dotcom %} 自动为符合这些前提条件的每个仓库启用 {% data variables.product.prodname_dependabot_security_updates %}。
|
||||
{% data variables.product.prodname_dotcom %} automatically enables {% data variables.product.prodname_dependabot_security_updates %} for newly created repositories if your personal account or organization has enabled **Automatically enable for new repositories** for {% data variables.product.prodname_dependabot_security_updates %}. For more information, see "[Managing {% data variables.product.prodname_dependabot_security_updates %} for your repositories](#managing-dependabot-security-updates-for-your-repositories)."
|
||||
|
||||
{% note %}
|
||||
If you create a fork of a repository that has security updates enabled, {% data variables.product.prodname_dotcom %} will automatically disable {% data variables.product.prodname_dependabot_security_updates %} for the fork. You can then decide whether to enable {% data variables.product.prodname_dependabot_security_updates %} on the specific fork.
|
||||
|
||||
注意:你可以手动启用 {% data variables.product.prodname_dependabot_security_updates %},即使存储库不符合以下某些先决条件。 例如,可按照“[管理存储库的 {% data variables.product.prodname_dependabot_security_updates %}](#managing-dependabot-security-updates-for-your-repositories)”中的说明,在分支上或为不直接支持的包管理器启用 {% data variables.product.prodname_dependabot_security_updates %}。
|
||||
If security updates are not enabled for your repository and you don't know why, first try enabling them using the instructions given in the procedural sections below. If security updates are still not working, you can contact {% data variables.contact.contact_support %}.
|
||||
|
||||
{% endnote %}
|
||||
## Managing {% data variables.product.prodname_dependabot_security_updates %} for your repositories
|
||||
|
||||
| 自动启用前提条件 | 详细信息 |
|
||||
| ----------------- | ----------------------- |
|
||||
| 存储库不是复刻 | [关于分支](/github/collaborating-with-issues-and-pull-requests/about-forks) |
|
||||
| 仓库未存档 | [存档存储库](/github/creating-cloning-and-archiving-repositories/archiving-repositories) |{% ifversion fpt or ghec %}
|
||||
| 仓库是公共的,或者仓库是私有的但您在仓库的设置中启用了 {% data variables.product.prodname_dotcom %} 只读分析、依赖关系图和漏洞警报。 | [管理专用存储库的数据使用设置](/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository) |{% endif %}
|
||||
| 仓库包含软件包生态系统中 {% data variables.product.prodname_dotcom %} 支持的依赖项清单文件 | [支持的包生态系统](/github/visualizing-repository-data-with-graphs/about-the-dependency-graph#supported-package-ecosystems) |
|
||||
| {% data variables.product.prodname_dependabot_security_updates %} 未对仓库禁用 | [管理存储库的 {% data variables.product.prodname_dependabot_security_updates %}](#managing-dependabot-security-updates-for-your-repositories) |
|
||||
You can enable or disable {% data variables.product.prodname_dependabot_security_updates %} for all qualifying repositories owned by your personal account or organization. For more information, see "[Managing security and analysis settings for your personal account](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/managing-security-and-analysis-settings-for-your-personal-account)" or "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)."
|
||||
|
||||
如果未为存储库启用安全更新,并且您不知道原因么,请先尝试使用以下程序部分的说明启用它们。 如果安全更新还是不工作,您可以联系 {% data variables.contact.contact_support %}。
|
||||
You can also enable or disable {% data variables.product.prodname_dependabot_security_updates %} for an individual repository.
|
||||
|
||||
## 管理仓库的 {% data variables.product.prodname_dependabot_security_updates %}
|
||||
### Enabling or disabling {% data variables.product.prodname_dependabot_security_updates %} for an individual repository
|
||||
|
||||
您可以对单个仓库启用或禁用 {% data variables.product.prodname_dependabot_security_updates %}(见下文)。
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
{% data reusables.repositories.sidebar-settings %}
|
||||
{% data reusables.repositories.navigate-to-code-security-and-analysis %}
|
||||
1. Under "Code security and analysis", to the right of "{% data variables.product.prodname_dependabot %} security updates", click **Enable** to enable the feature or **Disable** to disable it. {% ifversion fpt or ghec %}For public repositories, the button is disabled if the feature is always enabled.{% endif %}
|
||||
{% ifversion fpt or ghec %}{% elsif ghes > 3.6 or ghae-issue-7044 %}<!--Insert screenshot for GHES 3.7 when available--> {% else %}{% endif %}
|
||||
|
||||
## Overriding the default behavior with a configuration file
|
||||
|
||||
也可以为个人帐户或组织拥有的所有存储库启用或禁用 {% data variables.product.prodname_dependabot_security_updates %}。 有关详细信息,请参阅“[管理个人帐户的安全和分析设置](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/managing-security-and-analysis-settings-for-your-personal-account)”或“[管理组织的安全和分析设置](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)”。
|
||||
You can override the default behavior of {% data variables.product.prodname_dependabot_security_updates %} by adding a dependabot.yml file to your repository. For more information, see "[Configuration options for the dependabot.yml file](/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file)."
|
||||
|
||||
{% data variables.product.prodname_dependabot_security_updates %} 需要特定的仓库设置。 有关详细信息,请参阅“[支持的存储库](#supported-repositories)”。
|
||||
|
||||
### 对单个仓库启用或禁用 {% data variables.product.prodname_dependabot_security_updates %}
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} {% data reusables.repositories.navigate-to-code-security-and-analysis %}
|
||||
1. 在“代码安全和分析”下的“{% data variables.product.prodname_dependabot %} 安全更新”的右侧,单击“启用”以启用该功能,或单击“禁用”予以禁用 。 {% ifversion fpt or ghec %}对于公共存储库,如果始终启用该功能,则该按钮将被禁用。{% endif %} {% ifversion fpt or ghec %}{% elsif ghes > 3.6 or ghae-issue-7044 %}<!--Insert screenshot for GHES 3.7 when available--> {% else %}{% endif %}
|
||||
|
||||
## 使用配置文件重写默认行为
|
||||
|
||||
可以通过将 dependabot.yml 文件添加到存储库来重写 {% data variables.product.prodname_dependabot_security_updates %} 的默认行为。 有关详细信息,请参阅“[dependabot.yml 文件的配置选项](/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file)”。
|
||||
|
||||
如果只需要安全更新并且想要排除版本更新,可以将 `open-pull-request-limit` 设置为 `0` 以防止给定 `package-ecosystem` 的版本更新。 有关详细信息,请参阅“[`open-pull-request-limit`](/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#open-pull-requests-limit)”。
|
||||
If you only require security updates and want to exclude version updates, you can set `open-pull-request-limit` to `0` in order to prevent version updates for a given `package-ecosystem`. For more information, see "[`open-pull-request-limit`](/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#open-pull-requests-limit)."
|
||||
|
||||
```
|
||||
# Example configuration file that:
|
||||
@@ -99,11 +82,11 @@ updates:
|
||||
open-pull-requests-limit: 0
|
||||
```
|
||||
|
||||
有关可用于安全更新的配置选项的详细信息,请参阅“[dependabot.yml 文件的配置选项](/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#configuration-options-for-the-dependabotyml-file)”中的表格。
|
||||
For more information about the configuration options available for security updates, see the table in "[Configuration options for the dependabot.yml file](/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#configuration-options-for-the-dependabotyml-file)."
|
||||
|
||||
## 延伸阅读
|
||||
## Further reading
|
||||
|
||||
- [关于 {% data variables.product.prodname_dependabot_alerts %}](/code-security/supply-chain-security/about-alerts-for-vulnerable-dependencies)
|
||||
- [配置 {% data variables.product.prodname_dependabot_alerts %}](/code-security/dependabot/dependabot-alerts/configuring-dependabot-alerts){% ifversion fpt or ghec %}
|
||||
- [管理专用存储库的数据使用设置](/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository){% endif %}
|
||||
- [支持的包生态系统](/github/visualizing-repository-data-with-graphs/about-the-dependency-graph#supported-package-ecosystems)
|
||||
- "[About {% data variables.product.prodname_dependabot_alerts %}](/code-security/supply-chain-security/about-alerts-for-vulnerable-dependencies)"
|
||||
- "[Configuring {% data variables.product.prodname_dependabot_alerts %}](/code-security/dependabot/dependabot-alerts/configuring-dependabot-alerts)"{% ifversion fpt or ghec %}
|
||||
- "[Managing data use settings for your private repository](/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository)"{% endif %}
|
||||
- "[Supported package ecosystems](/github/visualizing-repository-data-with-graphs/about-the-dependency-graph#supported-package-ecosystems)"
|
||||
|
||||
@@ -20,10 +20,10 @@ children:
|
||||
- /dependabot-version-updates
|
||||
- /working-with-dependabot
|
||||
ms.openlocfilehash: 82b385ab7177adfe568344c0dc04357ffafeb0b3
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: 80842b4e4c500daa051eff0ccd7cde91c2d4bb36
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '145101101'
|
||||
---
|
||||
|
||||
|
||||
@@ -21,10 +21,10 @@ children:
|
||||
- /troubleshooting-the-detection-of-vulnerable-dependencies
|
||||
- /troubleshooting-dependabot-errors
|
||||
ms.openlocfilehash: ae4f4cd7f4f748487420c2804eae67d561455099
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: 80842b4e4c500daa051eff0ccd7cde91c2d4bb36
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '145109551'
|
||||
---
|
||||
|
||||
|
||||
@@ -23,11 +23,11 @@ topics:
|
||||
- CVEs
|
||||
- Repositories
|
||||
ms.openlocfilehash: 50e63a273d1bd787c2c324d3ceed9a8d31b64c9e
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 770ed406ec075528ec9c9695aa4bfdc8c8b25fd3
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147526716'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147883415'
|
||||
---
|
||||
{% data reusables.dependabot.beta-security-and-version-updates %} {% data reusables.dependabot.result-discrepancy %}
|
||||
|
||||
|
||||
@@ -13,11 +13,11 @@ topics:
|
||||
- Vulnerabilities
|
||||
- Advanced Security
|
||||
ms.openlocfilehash: fc2e4452e83245535c3d5f7ead70b1b23a5d874a
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147525615'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147881483'
|
||||
---
|
||||
## 关于 {% data variables.product.prodname_dotcom %} 安全功能
|
||||
|
||||
|
||||
@@ -18,11 +18,11 @@ topics:
|
||||
- Repositories
|
||||
shortTitle: Configure secret scans
|
||||
ms.openlocfilehash: 00983398e326997b6472da319d342ab0758018d3
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147062000'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147885714'
|
||||
---
|
||||
{% data reusables.secret-scanning.beta %} {% data reusables.secret-scanning.enterprise-enable-secret-scanning %}
|
||||
|
||||
|
||||
@@ -21,11 +21,11 @@ topics:
|
||||
- Teams
|
||||
shortTitle: About security overview
|
||||
ms.openlocfilehash: ac069277564d7249d36b54f218c78f33eefc3c47
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147525711'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147881475'
|
||||
---
|
||||
{% ifversion ghes < 3.5 or ghae %} {% data reusables.security-overview.beta %} {% endif %}
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@ topics:
|
||||
- Teams
|
||||
shortTitle: Filtering alerts
|
||||
ms.openlocfilehash: c2ea05ce5c2e65717088324fe818cb58e7a33093
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '147880748'
|
||||
ms.locfileid: '147880764'
|
||||
---
|
||||
{% ifversion ghes < 3.5 or ghae %} {% data reusables.security-overview.beta %} {% endif %}
|
||||
|
||||
|
||||
@@ -21,11 +21,11 @@ topics:
|
||||
- Repositories
|
||||
shortTitle: Explore dependencies
|
||||
ms.openlocfilehash: f3735844ad8bcb8fba799723f30a3d55e41ec158
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147526860'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147882729'
|
||||
---
|
||||
<!--For this article in earlier GHES versions, see /content/github/visualizing-repository-data-with-graphs-->
|
||||
|
||||
|
||||
@@ -10,11 +10,11 @@ topics:
|
||||
versions:
|
||||
feature: dependency-submission-api
|
||||
ms.openlocfilehash: f81967a46763d299afd14727cd884a36cb0b3d9c
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '147880740'
|
||||
ms.locfileid: '147880812'
|
||||
---
|
||||
{% data reusables.dependency-submission.dependency-submission-api-beta %}
|
||||
|
||||
|
||||
@@ -12,10 +12,10 @@ topics:
|
||||
- Codespaces
|
||||
type: how_to
|
||||
ms.openlocfilehash: f3669e7addefbf46c3f2af978e746e0c3e634bb0
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 80842b4e4c500daa051eff0ccd7cde91c2d4bb36
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '147110760'
|
||||
---
|
||||
## 关于机器类型
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: 设置 GitHub Codespaces 的默认编辑器
|
||||
title: Setting your default editor for GitHub Codespaces
|
||||
shortTitle: Set the default editor
|
||||
intro: '您可以在个人设置页面中设置 {% data variables.product.prodname_codespaces %} 的默认编辑器。'
|
||||
intro: '{% data reusables.codespaces.about-changing-default-editor %}'
|
||||
product: '{% data reusables.gated-features.codespaces %}'
|
||||
versions:
|
||||
fpt: '*'
|
||||
@@ -12,20 +12,17 @@ redirect_from:
|
||||
topics:
|
||||
- Codespaces
|
||||
type: how_to
|
||||
ms.openlocfilehash: 7cfc188cb265482ea9dd40f3fc653af870aa6982
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147111454'
|
||||
---
|
||||
在设置页面上,您可以设置编辑器首选项,以便在 Web 或 {% data variables.product.prodname_vscode %} 桌面应用程序的 {% data variables.product.prodname_vscode %} 中自动打开任何新创建的代码空间。
|
||||
|
||||
如果要将 {% data variables.product.prodname_vscode %} 用作 {% data variables.product.prodname_codespaces %} 的默认编辑器,则需要安装 {% data variables.product.prodname_vscode %} 和 {% data variables.product.prodname_vscode %} 的 {% data variables.product.prodname_github_codespaces %} 扩展。 有关详细信息,请参阅 [{% data variables.product.prodname_vscode %} 的下载页](https://code.visualstudio.com/download/)和 [{% data variables.product.prodname_vscode %} 市场中的 {% data variables.product.prodname_github_codespaces %} 扩展](https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces)。
|
||||
On the settings page, you can set your editor preference so that any newly created codespaces are opened automatically in either {% data variables.product.prodname_vscode %} for Web or the {% data variables.product.prodname_vscode %} desktop application.
|
||||
|
||||
## 设置默认编辑器
|
||||
If you want to use {% data variables.product.prodname_vscode %} as your default editor for {% data variables.product.prodname_codespaces %}, you need to install {% data variables.product.prodname_vscode %} and the {% data variables.product.prodname_github_codespaces %} extension for {% data variables.product.prodname_vscode %}. For more information, see the [download page for {% data variables.product.prodname_vscode %}](https://code.visualstudio.com/download/) and the [{% data variables.product.prodname_github_codespaces %} extension on the {% data variables.product.prodname_vscode %} marketplace](https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces).
|
||||
|
||||
{% data reusables.user-settings.access_settings %} {% data reusables.user-settings.codespaces-tab %}
|
||||
1. 在“Editor preference(编辑器首选项)”下,选择所需的选项。
|
||||
 如果选择 {% data variables.product.prodname_vscode %},在下次创建 codespace 时,{% data variables.product.prodname_codespaces %} 将自动在桌面应用程序中打开。 您可能需要同时允许访问浏览器和 {% data variables.product.prodname_vscode %} 才能成功打开。
|
||||

|
||||
## Setting your default editor
|
||||
|
||||
{% data reusables.user-settings.access_settings %}
|
||||
{% data reusables.user-settings.codespaces-tab %}
|
||||
1. Under "Editor preference", select the option you want.
|
||||

|
||||
If you choose **{% data variables.product.prodname_vscode %}**, {% data variables.product.prodname_codespaces %} will automatically open in the desktop application when you next create a codespace. You may need to allow access to both your browser and {% data variables.product.prodname_vscode %} for it to open successfully.
|
||||

|
||||
|
||||
@@ -150,4 +150,5 @@ For full details of the options for this command, see [the {% data variables.pro
|
||||
{% endcli %}
|
||||
|
||||
## Further reading
|
||||
- "[Opening an existing codespace](/codespaces/developing-in-codespaces/opening-an-existing-codespace)"
|
||||
- "[Adding an 'Open in GitHub Codespaces' badge](/codespaces/setting-up-your-project-for-codespaces/adding-a-codespaces-badge)"
|
||||
@@ -24,9 +24,8 @@ There are costs associated with storing codespaces. You should therefore delete
|
||||
|
||||
{% webui %}
|
||||
|
||||
1. Navigate to the "Your Codespaces" page at [github.com/codespaces](https://github.com/codespaces).
|
||||
|
||||
2. To the right of the codespace you want to delete, click {% octicon "kebab-horizontal" aria-label="The horizontal kebab icon" %}, then click **{% octicon "trash" aria-label="The trash icon" %} Delete**
|
||||
{% data reusables.codespaces.your-codespaces-procedure-step %}
|
||||
1. To the right of the codespace you want to delete, click {% octicon "kebab-horizontal" aria-label="The horizontal kebab icon" %}, then click **{% octicon "trash" aria-label="The trash icon" %} Delete**
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: 在代码空间中开发
|
||||
intro: '您可以在 {% data variables.product.product_name %} 上打开代码空间,然后使用 {% data variables.product.prodname_vscode %} 的功能进行开发。'
|
||||
title: Developing in a codespace
|
||||
intro: 'You can open a codespace on {% data variables.product.product_name %}, then develop using {% data variables.product.prodname_vscode %}''s features.'
|
||||
product: '{% data reusables.gated-features.codespaces %}'
|
||||
redirect_from:
|
||||
- /github/developing-online-with-github-codespaces/developing-in-a-codespace
|
||||
@@ -14,54 +14,43 @@ topics:
|
||||
- Fundamentals
|
||||
- Developer
|
||||
shortTitle: Develop in a codespace
|
||||
ms.openlocfilehash: 70b7b5b91e68b80033edd59ae3a7826e0e2ee25f
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147614349'
|
||||
---
|
||||
## 关于使用 {% data variables.product.prodname_github_codespaces %} 进行开发
|
||||
|
||||
{% data variables.product.prodname_github_codespaces %} 为你提供完整的 {% data variables.product.prodname_vscode %} 开发体验。 {% data reusables.codespaces.use-visual-studio-features %}
|
||||
|
||||
|
||||
## About development with {% data variables.product.prodname_github_codespaces %}
|
||||
|
||||
{% data variables.product.prodname_github_codespaces %} provides you with the full development experience of {% data variables.product.prodname_vscode %}. {% data reusables.codespaces.use-visual-studio-features %}
|
||||
|
||||
{% data reusables.codespaces.links-to-get-started %}
|
||||
|
||||

|
||||

|
||||
|
||||
1. 侧栏 - 默认情况下,此区域显示您在资源管理器中的项目文件。
|
||||
2. 活动栏 - 显示视图并提供在视图之间切换的方法。 您可以通过拖放来重新排列视图。
|
||||
3. 编辑器 - 这是您编辑文件的地方。 您可以使用每个编辑器的选项卡将其准确定位到您需要的位置。
|
||||
4. 面板 - 这是您可以查看输出和调试信息的位置,以及集成终端的默认位置。
|
||||
5. 状态栏 - 此区域提供有关您的代码空间和项目的有用信息。 例如,分支名称、配置端口等。
|
||||
1. Side Bar - By default, this area shows your project files in the Explorer.
|
||||
2. Activity Bar - This displays the Views and provides you with a way to switch between them. You can reorder the Views by dragging and dropping them.
|
||||
3. Editor - This is where you edit your files. You can use the tab for each editor to position it exactly where you need it.
|
||||
4. Panels - This is where you can see output and debug information, as well as the default place for the integrated Terminal.
|
||||
5. Status Bar - This area provides you with useful information about your codespace and project. For example, the branch name, configured ports, and more.
|
||||
|
||||
有关使用 {% data variables.product.prodname_vscode_shortname %} 的详细信息,请参阅 {% data variables.product.prodname_vscode_shortname %} 文档中的[用户界面指南](https://code.visualstudio.com/docs/getstarted/userinterface)。
|
||||
For more information on using {% data variables.product.prodname_vscode_shortname %}, see the [User Interface guide](https://code.visualstudio.com/docs/getstarted/userinterface) in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
|
||||
{% data reusables.codespaces.connect-to-codespace-from-vscode %}
|
||||
|
||||
{% data reusables.codespaces.use-chrome %} 有关详细信息,请参阅“[对 Codespaces 客户端进行故障排除](/codespaces/troubleshooting/troubleshooting-codespaces-clients)”。
|
||||
{% data reusables.codespaces.use-chrome %} For more information, see "[Troubleshooting Codespaces clients](/codespaces/troubleshooting/troubleshooting-codespaces-clients)."
|
||||
|
||||
### 个性化代码空间
|
||||
### Personalizing your codespace
|
||||
|
||||
{% data reusables.codespaces.about-personalization %} 有关详细信息,请参阅“[为帐户设置个性化的 {% data variables.product.prodname_github_codespaces %}](/codespaces/customizing-your-codespace/personalizing-github-codespaces-for-your-account)”。
|
||||
{% data reusables.codespaces.about-personalization %} For more information, see "[Personalizing {% data variables.product.prodname_github_codespaces %} for your account](/codespaces/customizing-your-codespace/personalizing-github-codespaces-for-your-account)."
|
||||
|
||||
{% data reusables.codespaces.apply-devcontainer-changes %} 有关详细信息,请参阅“[为项目配置 {% data variables.product.prodname_codespaces %}](/github/developing-online-with-codespaces/configuring-codespaces-for-your-project#apply-changes-to-your-configuration)”。
|
||||
{% data reusables.codespaces.apply-devcontainer-changes %} For more information, see "[Configuring {% data variables.product.prodname_codespaces %} for your project](/github/developing-online-with-codespaces/configuring-codespaces-for-your-project#apply-changes-to-your-configuration)."
|
||||
|
||||
### 从代码空间运行应用程序
|
||||
{% data reusables.codespaces.about-port-forwarding %} 有关详细信息,请参阅“[转发 codespace 中的端口](/github/developing-online-with-codespaces/forwarding-ports-in-your-codespace)”。
|
||||
### Running your app from a codespace
|
||||
{% data reusables.codespaces.about-port-forwarding %} For more information, see "[Forwarding ports in your codespace](/github/developing-online-with-codespaces/forwarding-ports-in-your-codespace)."
|
||||
|
||||
### 提交更改
|
||||
### Committing your changes
|
||||
|
||||
{% data reusables.codespaces.committing-link-to-procedure %}
|
||||
|
||||
### 使用 {% data variables.product.prodname_vscode_command_palette %}
|
||||
### Using the {% data variables.product.prodname_vscode_command_palette %}
|
||||
|
||||
{% data variables.product.prodname_vscode_command_palette %} 允许你访问和管理 {% data variables.product.prodname_codespaces %} 和 {% data variables.product.prodname_vscode_shortname %} 的许多功能。 有关详细信息,请参阅“[在 {% data variables.product.prodname_codespaces %} 中使用 {% data variables.product.prodname_vscode_command_palette_shortname %}](/codespaces/codespaces-reference/using-the-vs-code-command-palette-in-codespaces)”。
|
||||
|
||||
## 导航到现有代码空间
|
||||
|
||||
1. {% data reusables.codespaces.you-can-see-all-your-codespaces %}
|
||||
2. 单击您要在其中开发的代码空间的名称。
|
||||

|
||||
|
||||
或者,你可以通过导航到创建 codespace 的存储库并选择 {% octicon "code" aria-label="The code icon" %} 代码来查看存储库的任何活动 codespace。 下拉菜单将显示仓库的所有活动代码空间。
|
||||
The {% data variables.product.prodname_vscode_command_palette %} allows you to access and manage many features for {% data variables.product.prodname_codespaces %} and {% data variables.product.prodname_vscode_shortname %}. For more information, see "[Using the {% data variables.product.prodname_vscode_command_palette_shortname %} in {% data variables.product.prodname_codespaces %}](/codespaces/codespaces-reference/using-the-vs-code-command-palette-in-codespaces)."
|
||||
@@ -9,8 +9,9 @@ topics:
|
||||
- Codespaces
|
||||
children:
|
||||
- /codespaces-lifecycle
|
||||
- /creating-a-codespace
|
||||
- /developing-in-a-codespace
|
||||
- /creating-a-codespace
|
||||
- /opening-an-existing-codespace
|
||||
- /using-source-control-in-your-codespace
|
||||
- /using-github-codespaces-for-pull-requests
|
||||
- /stopping-and-starting-a-codespace
|
||||
|
||||
@@ -14,10 +14,10 @@ topics:
|
||||
redirect_from:
|
||||
- /codespaces/developing-in-codespaces/using-codespaces-for-pull-requests
|
||||
ms.openlocfilehash: d4ac4d4b8003600c95293f3939f547cd73639884
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 80842b4e4c500daa051eff0ccd7cde91c2d4bb36
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '147111414'
|
||||
---
|
||||
## 关于 {% data variables.product.prodname_github_codespaces %} 中的拉取请求
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: 在 Visual Studio Code 中使用 GitHub Codespaces
|
||||
intro: '可以将 {% data variables.product.prodname_github_codespaces %} 扩展连接到 {% data variables.product.product_name %} 上的帐户,直接在 {% data variables.product.prodname_vscode %} 中开发 codespace。'
|
||||
title: Using GitHub Codespaces in Visual Studio Code
|
||||
intro: 'You can develop in your codespace directly in {% data variables.product.prodname_vscode %} by connecting the {% data variables.product.prodname_github_codespaces %} extension with your account on {% data variables.product.product_name %}.'
|
||||
product: '{% data reusables.gated-features.codespaces %}'
|
||||
redirect_from:
|
||||
- /github/developing-online-with-codespaces/using-codespaces-in-visual-studio-code
|
||||
@@ -16,105 +16,101 @@ topics:
|
||||
- Visual Studio Code
|
||||
- Developer
|
||||
shortTitle: Visual Studio Code
|
||||
ms.openlocfilehash: fd714af8374346768b81241ea6b8b91a0022c4e4
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147111409'
|
||||
---
|
||||
## 关于 {% data variables.product.prodname_vscode %} 中的 {% data variables.product.prodname_github_codespaces %}
|
||||
|
||||
您可以使用本地安装的 {% data variables.product.prodname_vscode %} 来创建、管理、处理和删除代码空间。 要在 {% data variables.product.prodname_vscode_shortname %} 中使用 {% data variables.product.prodname_github_codespaces %},你需要安装 {% data variables.product.prodname_codespaces %} 扩展。 有关在 {% data variables.product.prodname_vscode_shortname %} 中设置 codespace 的详细信息,请参阅“[先决条件](#prerequisites)”。
|
||||
|
||||
## About {% data variables.product.prodname_github_codespaces %} in {% data variables.product.prodname_vscode %}
|
||||
|
||||
默认情况下,如果在 {% data variables.product.prodname_dotcom_the_website %} 上创建新的代码空间,它将在浏览器中打开。 如果希望自动打开 {% data variables.product.prodname_vscode_shortname %} 中的任何新 codespace,则可以将默认编辑器设置为 {% data variables.product.prodname_vscode_shortname %}。 有关详细信息,请参阅“[设置 {% data variables.product.prodname_github_codespaces %} 的默认编辑器](/codespaces/customizing-your-codespace/setting-your-default-editor-for-github-codespaces)”。
|
||||
You can use your local install of {% data variables.product.prodname_vscode %} to create, manage, work in, and delete codespaces. {% data reusables.codespaces.using-codespaces-in-vscode %} For more information on setting up {% data variables.product.prodname_github_codespaces %} in {% data variables.product.prodname_vscode_shortname %}, see "[Prerequisites](#prerequisites)."
|
||||
|
||||
如果你更喜欢在浏览器中工作,但想要继续使用现有 {% data variables.product.prodname_vscode_shortname %} 扩展、主题和快捷方式,可打开“设置同步”。有关详细信息,请参阅“[个性化帐户的 {% data variables.product.prodname_github_codespaces %}](/codespaces/customizing-your-codespace/personalizing-github-codespaces-for-your-account#settings-sync)”。
|
||||
By default, if you create a new codespace on {% data variables.product.prodname_dotcom_the_website %}, it will open in the browser. If you would prefer to open any new codespaces in {% data variables.product.prodname_vscode_shortname %} automatically, you can set your default editor to be {% data variables.product.prodname_vscode_shortname %}. For more information, see "[Setting your default editor for {% data variables.product.prodname_github_codespaces %}](/codespaces/customizing-your-codespace/setting-your-default-editor-for-github-codespaces)."
|
||||
|
||||
## 先决条件
|
||||
If you prefer to work in the browser, but want to continue using your existing {% data variables.product.prodname_vscode_shortname %} extensions, themes, and shortcuts, you can turn on Settings Sync. For more information, see "[Personalizing {% data variables.product.prodname_github_codespaces %} for your account](/codespaces/customizing-your-codespace/personalizing-github-codespaces-for-your-account#settings-sync)."
|
||||
|
||||
若要直接在 {% data variables.product.prodname_vscode_shortname %} 的 codespace 中进行开发,必须使用 {% data variables.product.product_name %} 凭据安装并登录到 {% data variables.product.prodname_codespaces %} 扩展。 {% data variables.product.prodname_codespaces %} 扩展需要 {% data variables.product.prodname_vscode_shortname %} 2020 年 10 月版本 1.51 或更高版本。
|
||||
## Prerequisites
|
||||
|
||||
使用 {% data variables.product.prodname_vscode_marketplace %} 安装 [{% data variables.product.prodname_codespaces %}](https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces) 扩展。 有关详细信息,请参阅 {% data variables.product.prodname_vscode_shortname %} 文档中的[扩展市场](https://code.visualstudio.com/docs/editor/extension-gallery)。
|
||||
To develop in a codespace directly in {% data variables.product.prodname_vscode_shortname %}, you must install and sign into the {% data variables.product.prodname_codespaces %} extension with your {% data variables.product.product_name %} credentials. The {% data variables.product.prodname_codespaces %} extension requires {% data variables.product.prodname_vscode_shortname %} October 2020 Release 1.51 or later.
|
||||
|
||||
Use the {% data variables.product.prodname_vscode_marketplace %} to install the [{% data variables.product.prodname_codespaces %}](https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces) extension. For more information, see [Extension Marketplace](https://code.visualstudio.com/docs/editor/extension-gallery) in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
|
||||
|
||||
{% mac %}
|
||||
|
||||
{% data reusables.codespaces.click-remote-explorer-icon-vscode %}
|
||||
1. 单击“登录以查看 {% data variables.product.prodname_dotcom %}…”。
|
||||
1. Click **Sign in to view {% data variables.product.prodname_dotcom %}...**.
|
||||
|
||||

|
||||

|
||||
|
||||
2. 要授权 {% data variables.product.prodname_vscode_shortname %} 访问你在 {% data variables.product.product_name %} 上的帐户,请单击“允许”。
|
||||
3. 登录 {% data variables.product.product_name %} 以审批扩展。
|
||||
2. To authorize {% data variables.product.prodname_vscode_shortname %} to access your account on {% data variables.product.product_name %}, click **Allow**.
|
||||
3. Sign in to {% data variables.product.product_name %} to approve the extension.
|
||||
|
||||
{% endmac %}
|
||||
|
||||
{% windows %}
|
||||
|
||||
{% data reusables.codespaces.click-remote-explorer-icon-vscode %}
|
||||
1. 使用“远程资源管理器”下拉列表,然后单击“{% data variables.product.prodname_github_codespaces %}”。
|
||||
1. Use the "REMOTE EXPLORER" drop-down, then click **{% data variables.product.prodname_github_codespaces %}**.
|
||||
|
||||

|
||||

|
||||
|
||||
1. 单击“登录以查看 {% data variables.product.prodname_codespaces %}…”。
|
||||
1. Click **Sign in to view {% data variables.product.prodname_codespaces %}...**.
|
||||
|
||||

|
||||

|
||||
|
||||
1. 要授权 {% data variables.product.prodname_vscode_shortname %} 访问你在 {% data variables.product.product_name %} 上的帐户,请单击“允许”。
|
||||
1. 登录 {% data variables.product.product_name %} 以审批扩展。
|
||||
1. To authorize {% data variables.product.prodname_vscode_shortname %} to access your account on {% data variables.product.product_name %}, click **Allow**.
|
||||
1. Sign in to {% data variables.product.product_name %} to approve the extension.
|
||||
|
||||
{% endwindows %}
|
||||
|
||||
## 在 {% data variables.product.prodname_vscode_shortname %} 中创建 codespace
|
||||
## Creating a codespace in {% data variables.product.prodname_vscode_shortname %}
|
||||
|
||||
{% data reusables.codespaces.creating-a-codespace-in-vscode %}
|
||||
|
||||
## 在 {% data variables.product.prodname_vscode_shortname %} 中打开 codespace
|
||||
## Opening a codespace in {% data variables.product.prodname_vscode_shortname %}
|
||||
|
||||
{% data reusables.codespaces.click-remote-explorer-icon-vscode %}
|
||||
1. 在“Codespaces(代码空间)”下,单击您要在其中开发的代码空间。
|
||||
1. 单击 Connect to Codespace(连接到代码空间)图标。
|
||||
1. Under "Codespaces", click the codespace you want to develop in.
|
||||
1. Click the Connect to Codespace icon.
|
||||
|
||||

|
||||

|
||||
|
||||
## 在 {% data variables.product.prodname_vscode_shortname %} 中更改计算机类型
|
||||
## Changing the machine type in {% data variables.product.prodname_vscode_shortname %}
|
||||
|
||||
{% data reusables.codespaces.codespaces-machine-types %} 可以随时更改 codespace 的计算机类型。
|
||||
{% data reusables.codespaces.codespaces-machine-types %} You can change the machine type of your codespace at any time.
|
||||
|
||||
1. 在 {% data variables.product.prodname_vscode_shortname %} 中,打开命令面板 (`shift command P` / `shift control P`)。
|
||||
1. 搜索并选择“代码空间:更改机器类型”。
|
||||
1. In {% data variables.product.prodname_vscode_shortname %}, open the Command Palette (`shift command P` / `shift control P`).
|
||||
1. Search for and select "Codespaces: Change Machine Type."
|
||||
|
||||

|
||||

|
||||
|
||||
1. 单击您要更改的代码空间。
|
||||
1. Click the codespace that you want to change.
|
||||
|
||||

|
||||

|
||||
|
||||
1. 选择您要使用的机器类型。
|
||||
1. Choose the machine type you want to use.
|
||||
|
||||
{% note %}
|
||||
|
||||
注意:{% data reusables.codespaces.codespaces-machine-type-availability %}
|
||||
**Note**: {% data reusables.codespaces.codespaces-machine-type-availability %}
|
||||
|
||||
{% endnote %}
|
||||
|
||||
1. 如果代码空间正在运行,则会显示一条消息,询问您现在是否要重新启动并重新连接到代码空间。
|
||||
1. If the codespace is currently running, a message is displayed asking if you would like to restart and reconnect to your codespace now.
|
||||
|
||||
如果想立即更改用于此 codespace 的计算机类型,请单击“是”。
|
||||
Click **Yes** if you want to change the machine type used for this codespace immediately.
|
||||
|
||||
如果单击“否”,或者 codespace 当前未运行,更改将在 codespace 下次重启时生效。
|
||||
If you click **No**, or if the codespace is not currently running, the change will take effect the next time the codespace restarts.
|
||||
|
||||
## 在 {% data variables.product.prodname_vscode_shortname %} 中删除 codespace
|
||||
## Deleting a codespace in {% data variables.product.prodname_vscode_shortname %}
|
||||
|
||||
{% data reusables.codespaces.deleting-a-codespace-in-vscode %}
|
||||
|
||||
## 切换到 {% data variables.product.prodname_vscode_shortname %} 的预览体验版本
|
||||
## Switching to the Insiders build of {% data variables.product.prodname_vscode_shortname %}
|
||||
|
||||
可以在 {% data variables.product.prodname_codespaces %} 中使用 [{% data variables.product.prodname_vscode_shortname %} 的预览体验版本](https://code.visualstudio.com/docs/setup/setup-overview#_insiders-nightly-build)。
|
||||
You can use the [Insiders Build of {% data variables.product.prodname_vscode_shortname %}](https://code.visualstudio.com/docs/setup/setup-overview#_insiders-nightly-build) within {% data variables.product.prodname_codespaces %}.
|
||||
|
||||
1. 在 {% data variables.product.prodname_codespaces %} 窗口的左下角,选择“{% octicon "gear" aria-label="The settings icon" %} 设置”。
|
||||
2. 从列表中,选择“Switch to Insiders Version(切换到内部版本)”。
|
||||
1. In bottom left of your {% data variables.product.prodname_codespaces %} window, select **{% octicon "gear" aria-label="The settings icon" %} Settings**.
|
||||
2. From the list, select "Switch to Insiders Version".
|
||||
|
||||

|
||||
3. 选择后,{% data variables.product.prodname_codespaces %} 将继续以内部版本打开。
|
||||

|
||||
3. Once selected, {% data variables.product.prodname_codespaces %} will continue to open in Insiders Version.
|
||||
|
||||
@@ -12,10 +12,10 @@ topics:
|
||||
- Developer
|
||||
shortTitle: Source control
|
||||
ms.openlocfilehash: 39913ef49f6c404a95debc3f4ee7b30e9187ddf6
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 76b840f45ba85fb79a7f0c1eb43bc663b3eadf2b
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '147110592'
|
||||
---
|
||||
## 关于 {% data variables.product.prodname_github_codespaces %} 中的源代码管理
|
||||
|
||||
@@ -10,10 +10,10 @@ children:
|
||||
- /quickstart
|
||||
- /deep-dive
|
||||
ms.openlocfilehash: 072764dd2ec164cc97a0699fb7d8821e25b04aab
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147145119'
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '147887445'
|
||||
---
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ includeGuides:
|
||||
- /codespaces/developing-in-codespaces/developing-in-a-codespace
|
||||
- /codespaces/developing-in-codespaces/deleting-a-codespace
|
||||
- /codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace
|
||||
- /codespaces/developing-in-codespaces/opening-an-existing-codespace
|
||||
- /codespaces/developing-in-codespaces/stopping-and-starting-a-codespace
|
||||
- /codespaces/developing-in-codespaces/using-codespaces-in-visual-studio-code
|
||||
- /codespaces/developing-in-codespaces/using-codespaces-with-github-cli
|
||||
|
||||
@@ -28,6 +28,7 @@ featuredLinks:
|
||||
guideCards:
|
||||
- /codespaces/getting-started/deep-dive
|
||||
- /codespaces/developing-in-codespaces/creating-a-codespace
|
||||
- /codespaces/developing-in-codespaces/opening-an-existing-codespace
|
||||
- /codespaces/developing-in-codespaces/using-codespaces-in-visual-studio-code
|
||||
- /codespaces/setting-up-your-codespace/personalizing-codespaces-for-your-account
|
||||
popularHeading: Set up your project
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
---
|
||||
title: 列出组织中的 codespace
|
||||
shortTitle: List organization codespaces
|
||||
intro: 可以列出组织当前处于活动状态或已停止的所有 codespace。
|
||||
product: '{% data reusables.gated-features.codespaces %}'
|
||||
permissions: 'To list all of the current codespaces for your organization, you must be an organization owner.'
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
topics:
|
||||
- Codespaces
|
||||
- Administrator
|
||||
ms.openlocfilehash: 72d59c35641dd77b4d3623cc70b12b5be880be34
|
||||
ms.sourcegitcommit: 478f2931167988096ae6478a257f492ecaa11794
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/09/2022
|
||||
ms.locfileid: '147865209'
|
||||
---
|
||||
## 概述
|
||||
|
||||
作为组织所有者,可以列出组织当前处于活动状态和已停止的所有 codespace。 你可能想要执行此操作来检查用户正在创建多少 codespace,以确保不会产生不必要的成本。
|
||||
|
||||
列出组织的 codespace 的最简单方法是使用 {% data variables.product.prodname_cli %}。 还可以使用 REST API,该 API 提供有关每个 codespace 的详细信息。
|
||||
|
||||
### 使用 {% data variables.product.prodname_cli %} 列出 codespace
|
||||
|
||||
若要列出指定组织的所有当前 codespace,请使用以下命令。
|
||||
|
||||
```shell{:copy}
|
||||
gh codespace list --org ORGANIZATION
|
||||
```
|
||||
|
||||
此命令返回一个列表,其中包含每个 codespace 的以下信息:
|
||||
- 名称和显示名称
|
||||
- 创建 codespace 的用户
|
||||
- 存储库和分支
|
||||
- codespace 的当前状态
|
||||
|
||||
若要列出由特定用户创建的组织的所有当前 codespace,请使用以下命令。
|
||||
|
||||
```shell{:copy}
|
||||
gh codespace list --org ORGANIZATION --user USER
|
||||
```
|
||||
|
||||
{% note %}
|
||||
|
||||
**注意**:在上述命令中,将 `ORGANIZATION` 替换为要查询的组织的名称。 你必须是组织的所有者。
|
||||
|
||||
{% endnote %}
|
||||
|
||||
### 使用 REST API 列出 codespace
|
||||
|
||||
可以将 `/orgs/{org}/codespaces` API 终结点用作列出组织当前 codespace 的替代方法。 这将返回比 {% data variables.product.prodname_cli %} 更详细的信息;例如,计算机类型详细信息。
|
||||
|
||||
有关此终结点的详细信息,请参阅“[Codespaces 组织](/rest/codespaces/organizations#list-codespaces-for-the-organization)”。
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Managing billing for GitHub Codespaces in your organization
|
||||
title: 管理组织中 GitHub Codespaces 的计费
|
||||
shortTitle: Manage billing
|
||||
intro: 'You can check your {% data variables.product.prodname_github_codespaces %} usage and set usage limits.'
|
||||
intro: '你可以检查 {% data variables.product.prodname_github_codespaces %} 使用情况并设置使用限制。'
|
||||
product: '{% data reusables.gated-features.codespaces %}'
|
||||
permissions: 'To manage billing for {% data variables.product.prodname_github_codespaces %} for an organization, you must be an organization owner or a billing manager.'
|
||||
versions:
|
||||
@@ -13,50 +13,49 @@ topics:
|
||||
- Billing
|
||||
redirect_from:
|
||||
- /codespaces/managing-codespaces-for-your-organization/managing-billing-for-codespaces-in-your-organization
|
||||
ms.openlocfilehash: 752a32ca3af18873e88fab2389beef0262988b28
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147676654'
|
||||
---
|
||||
## 概述
|
||||
|
||||
## Overview
|
||||
|
||||
To learn about pricing for {% data variables.product.prodname_github_codespaces %}, see "[{% data variables.product.prodname_codespaces %} pricing](/billing/managing-billing-for-github-codespaces/about-billing-for-codespaces#codespaces-pricing)."
|
||||
若要了解 {% data variables.product.prodname_github_codespaces %} 的定价,请参阅“[{% data variables.product.prodname_codespaces %} 定价](/billing/managing-billing-for-github-codespaces/about-billing-for-codespaces#codespaces-pricing)”。
|
||||
|
||||
{% data reusables.codespaces.codespaces-billing %}
|
||||
|
||||
- As an organization owner or a billing manager, you can manage {% data variables.product.prodname_codespaces %} billing for your organization: ["About billing for Codespaces"](/billing/managing-billing-for-github-codespaces/about-billing-for-codespaces)
|
||||
- As an organization owner, you can list the currently active and stopped codespaces for your organization. In addition to these codespaces, costs for the current month may include costs for codespaces that existed earlier in the current month but have since been deleted.
|
||||
- For users, there is a guide that explains how billing works: ["Understanding billing for Codespaces"](/codespaces/codespaces-reference/understanding-billing-for-codespaces)
|
||||
- 作为组织所有者或计费管理员,可以为组织管理 {% data variables.product.prodname_codespaces %} 计费:[“关于 Codespaces 计费”](/billing/managing-billing-for-github-codespaces/about-billing-for-codespaces)
|
||||
|
||||
## Usage limits
|
||||
- 对于用户,有一个指南解释了计费的工作原理:[“了解 Codespaces 计费”](/codespaces/codespaces-reference/understanding-billing-for-codespaces)
|
||||
|
||||
You can set a usage limit for the codespaces in your organization or repository. This limit is applied to the compute and storage usage for {% data variables.product.prodname_github_codespaces %}:
|
||||
## 使用限制
|
||||
|
||||
您可以为组织或存储库中的代码空间设置使用限制。 此限制适用于 {% data variables.product.prodname_github_codespaces %} 的计算和存储使用情况:
|
||||
|
||||
- **Compute minutes:** Compute usage is calculated by the actual number of minutes used by all {% data variables.product.prodname_codespaces %} instances while they are active. These totals are reported to the billing service daily, and is billed monthly. You can set a spending limit for {% data variables.product.prodname_codespaces %} usage in your organization. For more information, see "[Managing spending limits for {% data variables.product.prodname_github_codespaces %}](/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-github-codespaces)."
|
||||
- 计算分钟数:计算使用量是按所有 {% data variables.product.prodname_codespaces %} 实例在活动期间使用的实际分钟数计算的。 这些总计每天报告给计费服务,并按月计费。 您可以为组织中 {% data variables.product.prodname_codespaces %} 使用设置支出限制。 有关详细信息,请参阅“[管理 {% data variables.product.prodname_github_codespaces %} 的支出限制](/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-github-codespaces)”。
|
||||
|
||||
- **Storage usage:** For {% data variables.product.prodname_codespaces %} billing purposes, this includes all storage used by all codespaces in your account. This includes resources such as cloned repositories, configuration files, and extensions, among others. These totals are reported to the billing service daily, and is billed monthly. At the end of the month, {% data variables.product.prodname_dotcom %} rounds your storage to the nearest MB. To check how many compute minutes and storage GB have been used by {% data variables.product.prodname_codespaces %}, see "[Viewing your {% data variables.product.prodname_github_codespaces %} usage"](/billing/managing-billing-for-github-codespaces/viewing-your-github-codespaces-usage)."
|
||||
- 存储使用情况:出于 {% data variables.product.prodname_codespaces %} 计费目的,这包括你帐户中所有 codespace 使用的所有存储空间。 这包括代码空间使用的所有内容,例如克隆的存储库、配置文件和扩展等。 这些总计每天报告给计费服务,并按月计费。 到月底,{% data variables.product.prodname_dotcom %} 会将您的存储量舍入到最接近的 MB。 若要检查 {% data variables.product.prodname_codespaces %} 使用了多少计算分钟数和存储 GB,请参阅“[查看 {% data variables.product.prodname_github_codespaces %} 使用情况](/billing/managing-billing-for-github-codespaces/viewing-your-github-codespaces-usage)”。
|
||||
|
||||
## Disabling or limiting {% data variables.product.prodname_codespaces %}
|
||||
## 禁用或限制 {% data variables.product.prodname_codespaces %}
|
||||
|
||||
You can disable all use of {% data variables.product.prodname_github_codespaces %} that would be billed to your organization. Alternatively, you can specify which organization members or collaborators can use {% data variables.product.prodname_codespaces %} at your organization's expense. For more information, see "[Enabling {% data variables.product.prodname_github_codespaces %} for your organization](/codespaces/managing-codespaces-for-your-organization/enabling-github-codespaces-for-your-organization)."
|
||||
你可以禁用会对组织进行计费的所有 {% data variables.product.prodname_github_codespaces %} 使用。 或者,你可以指定哪些组织成员或协作者可以使用 {% data variables.product.prodname_codespaces %}(费用由组织承担)。 有关详细信息,请参阅“[为组织启用 {% data variables.product.prodname_github_codespaces %}](/codespaces/managing-codespaces-for-your-organization/enabling-github-codespaces-for-your-organization)”。
|
||||
|
||||
{% data reusables.codespaces.codespaces-disabling-org-billing %}
|
||||
|
||||
You can configure which repositories can be accessed from codespaces created for a particular repository. For more information, see "[Managing access to other repositories within your codespace](/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces)."
|
||||
可以配置可从为特定存储库创建的 codespace 访问哪些存储库。 有关详细信息,请参阅“[管理对 codespace 内其他存储库的访问权限](/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces)”。
|
||||
|
||||
You can limit the choice of types of machine that are available for codespaces created from repositories owned by your organization. This allows you to prevent people using overly resourced machines for their codespaces, and incurring unnecessary charges. For more information, see "[Restricting access to machine types](/codespaces/managing-codespaces-for-your-organization/restricting-access-to-machine-types)."
|
||||
可以限制可用于从组织拥有的存储库创建的 codespace 的计算机类型选择。 这使你可以防止人们使用资源过多的计算机作为其 codespace,产生不必要的费用。 有关详细信息,请参阅“[限制对计算机类型的访问](/codespaces/managing-codespaces-for-your-organization/restricting-access-to-machine-types)”。
|
||||
|
||||
You can also restrict how long a codespace can remain unused before it is automatically deleted. This can help to reduce storage costs for {% data variables.product.prodname_codespaces %}. For more information, see "[Restricting the retention period for codespaces](/codespaces/managing-codespaces-for-your-organization/restricting-the-retention-period-for-codespaces)."
|
||||
还可以限制 codespace 在自动删除之前可以保持未使用状态的时间长度。 这可帮助降低 {% data variables.product.prodname_codespaces %} 的存储成本。 有关详细信息,请参阅“[限制 codespace 的保持期](/codespaces/managing-codespaces-for-your-organization/restricting-the-retention-period-for-codespaces)”。
|
||||
|
||||
## Deleting unused codespaces
|
||||
## 删除未使用的代码空间
|
||||
|
||||
Your users can delete their own codespaces in https://github.com/codespaces and from within {% data variables.product.prodname_vscode %}. To reduce the size of a codespace, users can manually delete files using the terminal or from within {% data variables.product.prodname_vscode_shortname %}.
|
||||
|
||||
As an organization owner, you can delete any codespace in your organization. For more information, see "[Deleting a codespace](/codespaces/developing-in-codespaces/deleting-a-codespace#deleting-codespaces-in-your-organization)."
|
||||
你的用户可以在 https://github.com/codespaces 中以及从 {% data variables.product.prodname_vscode %} 中删除其 codespace。 要减小 codespace 的大小,用户可以使用终端或从 {% data variables.product.prodname_vscode_shortname %} 中手动删除文件。
|
||||
|
||||
{% note %}
|
||||
|
||||
**Note:** Codespaces are automatically deleted after they have been stopped and have remained inactive for a defined number of days. For more information, see "[Restricting the retention period for codespaces](/codespaces/managing-codespaces-for-your-organization/restricting-the-retention-period-for-codespaces)." A codespace can only be manually deleted by the person who created the codespace.
|
||||
注意:Codespace 在停止后会自动删除,并在定义的天数内保持非活动状态。 有关详细信息,请参阅“[限制 codespace 的保持期](/codespaces/managing-codespaces-for-your-organization/restricting-the-retention-period-for-codespaces)”。 codespace 只能由创建 codespace 的人员手动删除。
|
||||
|
||||
{% endnote %}
|
||||
|
||||
## Further reading
|
||||
|
||||
- "[Listing the codespaces in your organization](/codespaces/managing-codespaces-for-your-organization/listing-the-codespaces-in-your-organization)"
|
||||
|
||||
@@ -16,10 +16,10 @@ topics:
|
||||
- Secret store
|
||||
shortTitle: Encrypted secrets
|
||||
ms.openlocfilehash: 6951acb82614d35e3394a2af8e58fc8f8442ab3a
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 80842b4e4c500daa051eff0ccd7cde91c2d4bb36
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '147419791'
|
||||
---
|
||||
## 关于 {% data variables.product.prodname_github_codespaces %} 的加密机密
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: 开发容器简介
|
||||
intro: 在 codespace 中工作时,你工作所处的环境是使用托管在虚拟机上的开发容器创建的。
|
||||
title: Introduction to dev containers
|
||||
intro: 'When you work in a codespace, the environment you are working in is created using a development container, or dev container, hosted on a virtual machine.'
|
||||
permissions: People with write permissions to a repository can create or edit the codespace configuration.
|
||||
redirect_from:
|
||||
- /github/developing-online-with-github-codespaces/configuring-github-codespaces-for-your-project
|
||||
@@ -17,74 +17,69 @@ topics:
|
||||
- Set up
|
||||
- Fundamentals
|
||||
product: '{% data reusables.gated-features.codespaces %}'
|
||||
ms.openlocfilehash: 22a227f8f97b054e4d3980876dae47d72fb03d08
|
||||
ms.sourcegitcommit: 3a16368cd8beb8b8487eb77d3e597cf49f4c4335
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 07/14/2022
|
||||
ms.locfileid: '147111168'
|
||||
---
|
||||
## <a name="about-dev-containers"></a>关于开发容器
|
||||
|
||||
开发容器是 Docker 容器,是为了提供功能齐全的开发环境专门配置的。 只要在 codespace 中运作,都是在虚拟机上使用开发容器。
|
||||
## About dev containers
|
||||
|
||||
可以为存储库配置开发容器,以便为该存储库创建的 codespace 能够为你提供定制的开发环境,其中包含处理特定项目所需的所有工具和运行时。 如果未在存储库中定义配置,则 {% data variables.product.prodname_github_codespaces %} 使用默认配置,其中包含团队在开发项目时可能需要的许多常用工具。 有关详细信息,请参阅“[使用默认开发容器配置](#using-the-default-dev-container-configuration)”。
|
||||
Development containers, or dev containers, are Docker containers that are specifically configured to provide a full-featured development environment. Whenever you work in a codespace, you are using a dev container on a virtual machine.
|
||||
|
||||
开发容器的配置文件包含在存储库的 `.devcontainer` 目录中。 可以使用 {% data variables.product.prodname_vscode %} 为你添加配置文件。 可以从各种项目类型的预定义配置中进行选择。 无需进一步配置即可使用这些配置,也可以编辑这些配置以优化它们生成的开发环境。 有关详细信息,请参阅“[使用预定义的开发容器配置](#using-a-predefined-dev-container-configuration)”。
|
||||
You can configure the dev container for a repository so that codespaces created for that repository give you a tailored development environment, complete with all the tools and runtimes you need to work on a specific project. If you don't define a configuration in the repository then {% data variables.product.prodname_github_codespaces %} uses a default configuration, which contains many of the common tools that your team might need for development with your project. For more information, see "[Using the default dev container configuration](#using-the-default-dev-container-configuration)."
|
||||
|
||||
或者,可以添加自己的自定义配置文件。 有关详细信息,请参阅“[创建自定义开发容器配置](#creating-a-custom-dev-container-configuration)”。
|
||||
The configuration files for a dev container are contained in a `.devcontainer` directory in your repository. You can use {% data variables.product.prodname_vscode %} to add configuration files for you. You can choose from a selection of predefined configurations for various project types. You can use these without further configuration, or you can edit the configurations to refine the development environment they produce. For more information, see "[Using a predefined dev container configuration](#using-a-predefined-dev-container-configuration)."
|
||||
|
||||
可以为存储库定义单个开发容器配置、为不同分支定义不同配置或多个配置。 当有多个配置可用时,用户可以在创建 codespace 时选择其首选配置。 这对于包含不同编程语言或不同项目的源代码的大型存储库尤其有用。 你可以创建一个配置选择,允许不同的团队使用为他们正在进行的工作设置的相应 codespace。
|
||||
Alternatively, you can add your own custom configuration files. For more information, see "[Creating a custom dev container configuration](#creating-a-custom-dev-container-configuration)."
|
||||
|
||||
### <a name="devcontainerjson"></a>devcontainer.json
|
||||
You can define a single dev container configuration for a repository, different configurations for different branches, or multiple configurations. When multiple configurations are available, users can choose their preferred configuration when they create a codespace. This is particularly useful for large repositories that contain source code in different programming languages or for different projects. You can create a choice of configurations that allow different teams to work in a codespace that's set up appropriately for the work they are doing.
|
||||
|
||||
开发容器配置中的主文件是 `devcontainer.json` 文件。 可以使用此文件来确定为存储库创建的 codespace 环境。 此文件的内容定义了开发容器,它可以包括框架、工具、扩展和端口转发。 `devcontainer.json` 文件通常包含对 Dockerfile 的引用,Dockerfile 通常与 `devcontainer.json` 文件放在一起。
|
||||
### devcontainer.json
|
||||
|
||||
如果未将 `devcontainer.json` 文件添加到存储库, 则使用默认开发容器配置。 有关详细信息,请参阅“[使用默认开发容器配置](#using-the-default-dev-container-configuration)”。
|
||||
The primary file in a dev container configuration is the `devcontainer.json` file. You can use this file to determine the environment of codespaces created for your repository. The contents of this file define a dev container that can include frameworks, tools, extensions, and port forwarding. The `devcontainer.json` file usually contains a reference to a Dockerfile, which is typically located alongside the `devcontainer.json` file.
|
||||
|
||||
`devcontainer.json` 文件通常位于存储库的 `.devcontainer` 目录中。 或者,可以直接在存储库的根目录中找到它,在这种情况下,文件名必须以句点开头:`.devcontainer.json`。
|
||||
If you don't add a `devcontainer.json` file to your repository, the default dev container configuration is used. For more information, see "[Using the default dev container configuration](#using-the-default-dev-container-configuration)."
|
||||
|
||||
如果要在存储库中选择开发容器配置,则 `.devcontainer/devcontainer.json`(或 `.devcontainer.json`)文件的任何替代文件都必须位于路径 `.devcontainer/SUBDIRECTORY/devcontainer.json` 处它们自己的子目录中。 例如,可以选择两种配置:
|
||||
The `devcontainer.json` file is usually located in the `.devcontainer` directory of your repository. Alternatively, you can locate it directly in the root of the repository, in which case the file name must begin with a period: `.devcontainer.json`.
|
||||
|
||||
If you want to have a choice of dev container configurations in your repository, any alternatives to the `.devcontainer/devcontainer.json` (or `.devcontainer.json`) file must be located in their own subdirectory at the path `.devcontainer/SUBDIRECTORY/devcontainer.json`. For example, you could have a choice of two configurations:
|
||||
* `.devcontainer/database-dev/devcontainer.json`
|
||||
* `.devcontainer/gui-dev/devcontainer.json`
|
||||
|
||||
当存储库中有多个 `devcontainer.json` 文件时,每个 codespace 仅从其中一种配置创建。 无法在 `devcontainer.json` 文件之间导入或继承设置。 如果自定义子目录中的 `devcontainer.json` 文件具有依赖文件(例如 Dockerfile 或由 `devcontainer.json` 文件中的命令运行的脚本),建议将这些文件放在同一子目录中。
|
||||
When you have multiple `devcontainer.json` files in your repository, each codespace is created from only one of the configurations. Settings cannot be imported or inherited between `devcontainer.json` files. If a `devcontainer.json` file in a custom subdirectory has dependent files, such as the Dockerfile or scripts that are run by commands in the `devcontainer.json` file, it's recommended that you co-locate these files in the same subdirectory.
|
||||
|
||||
有关如何在创建 codespace 时选择首选的开发容器配置的信息,请参阅“[创建 codespace](/codespaces/developing-in-codespaces/creating-a-codespace#creating-a-codespace)”。
|
||||
For information about how to choose your preferred dev container configuration when you create a codespace, see "[Creating a codespace](/codespaces/developing-in-codespaces/creating-a-codespace#creating-a-codespace)."
|
||||
|
||||
{% data reusables.codespaces.more-info-devcontainer %}
|
||||
|
||||
#### <a name="how-to-use-the-devcontainerjson"></a>如何使用 devcontainer.json
|
||||
#### How to use the devcontainer.json
|
||||
|
||||
将 `devcontainer.json` 文件视为提供“自定义”而不是“个性化”很有用。 你应仅包括每个人处理代码库都需要的内容(而不是个人偏好的内容),将它们作为开发环境的标准元素。 Linter 等内容非常适合标准化,并且要求每个人都安装,因此它们很适合包含在 `devcontainer.json` 文件中。 用户界面装饰器或主题等内容属于个人选择,不应放入 `devcontainer.json` 文件中。
|
||||
It's useful to think of the `devcontainer.json` file as providing "customization" rather than "personalization." You should only include things that everyone working on your codebase needs as standard elements of the development environment, not things that are personal preferences. Things like linters are good to standardize on, and to require everyone to have installed, so they're good to include in your `devcontainer.json` file. Things like user interface decorators or themes are personal choices that should not be put in the `devcontainer.json` file.
|
||||
|
||||
可以使用点文件和设置同步对 codespace 进行个性化设置。有关详细信息,请参阅“[为帐户设置个性化的 {% data variables.product.prodname_github_codespaces %}](/codespaces/customizing-your-codespace/personalizing-github-codespaces-for-your-account)”。
|
||||
You can personalize your codespaces by using dotfiles and Settings Sync. For more information, see "[Personalizing {% data variables.product.prodname_github_codespaces %} for your account](/codespaces/customizing-your-codespace/personalizing-github-codespaces-for-your-account)."
|
||||
|
||||
### <a name="dockerfile"></a>Dockerfile
|
||||
### Dockerfile
|
||||
|
||||
可以将 Dockerfile 添加为开发容器配置的一部分。
|
||||
You can add a Dockerfile as part of your dev container configuration.
|
||||
|
||||
Dockerfile 是一个文本文件,其中包含创建 Docker 容器映像所需的指令。 每次有人使用引用此 Dockerfile 的 `devcontainer.json` 文件创建 codespace 时,此映像用于生成开发容器。 Dockerfile 中的指令通常以引用将创建的新映像所基于的父映像开始。 随后是在映像创建过程中运行的命令,例如安装软件包。
|
||||
The Dockerfile is a text file that contains the instructions needed to create a Docker container image. This image is used to generate a development container each time someone creates a codespace using the `devcontainer.json` file that references this Dockerfile. The instructions in the Dockerfile typically begin by referencing a parent image on which the new image that will be created is based. This is followed by commands that are run during the image creation process, for example to install software packages.
|
||||
|
||||
开发容器的 Dockerfile 通常位于 `.devcontainer` 文件夹中,引用它的 `devcontainer.json` 也在其中。
|
||||
The Dockerfile for a dev container is typically located in the `.devcontainer` folder, alongside the `devcontainer.json` in which it is referenced.
|
||||
|
||||
{% note %}
|
||||
|
||||
注意:作为使用 Dockerfile 的替代方法,可以使用 `devcontainer.json` 文件中的 `image` 属性直接引用要使用的现有映像。 如果找不到 Dockerfile 和映像,则使用默认容器映像。 有关详细信息,请参阅“[使用默认开发容器配置](#using-the-default-dev-container-configuration)”。
|
||||
**Note**: As an alternative to using a Dockerfile you can use the `image` property in the `devcontainer.json` file to refer directly to an existing image you want to use. If neither a Dockerfile nor an image is found then the default container image is used. For more information, see "[Using the default dev container configuration](#using-the-default-dev-container-configuration)."
|
||||
|
||||
{% endnote %}
|
||||
|
||||
#### <a name="simple-dockerfile-example"></a>简单的 Dockerfile 示例
|
||||
#### Simple Dockerfile example
|
||||
|
||||
以下示例使用四个指令:
|
||||
The following example uses four instructions:
|
||||
|
||||
`ARG` 定义生成时变量。
|
||||
`ARG` defines a build-time variable.
|
||||
|
||||
`FROM` 指定生成的 Docker 映像所基于的父映像。
|
||||
`FROM` specifies the parent image on which the generated Docker image will be based.
|
||||
|
||||
`COPY` 复制文件并将其添加到文件系统。
|
||||
`COPY` copies a file and adds it to the filesystem.
|
||||
|
||||
`RUN` 更新包列表并运行脚本。 还可以使用 `RUN` 指令来安装软件,如注释掉的说明所示。 若要运行多个命令,请使用 `&&` 将命令组合成一个 `RUN` 语句。
|
||||
`RUN` updates package lists and runs a script. You can also use a `RUN` instruction to install software, as shown by the commented out instructions. To run multiple commands, use `&&` to combine the commands into a single `RUN` statement.
|
||||
|
||||
```Dockerfile{:copy}
|
||||
ARG VARIANT="16-buster"
|
||||
@@ -101,11 +96,11 @@ COPY library-scripts/github-debian.sh /tmp/library-scripts/
|
||||
RUN apt-get update && bash /tmp/library-scripts/github-debian.sh
|
||||
```
|
||||
|
||||
有关 Dockerfile 指令的详细信息,请参阅 Docker 文档中的“[Dockerfile 参考](https://docs.docker.com/engine/reference/builder)”。
|
||||
For more information about Dockerfile instructions, see "[Dockerfile reference](https://docs.docker.com/engine/reference/builder)" in the Docker documentation.
|
||||
|
||||
#### <a name="using-a-dockerfile"></a>使用 Dockerfile
|
||||
#### Using a Dockerfile
|
||||
|
||||
若要将 Dockerfile 用作开发容器配置的一部分,请使用 `dockerfile` 属性在 `devcontainer.json` 文件中引用它。
|
||||
To use a Dockerfile as part of a dev container configuration, reference it in your `devcontainer.json` file by using the `dockerfile` property.
|
||||
|
||||
```json{:copy}
|
||||
{
|
||||
@@ -115,120 +110,120 @@ RUN apt-get update && bash /tmp/library-scripts/github-debian.sh
|
||||
}
|
||||
```
|
||||
|
||||
有关在开发容器配置中使用 Dockerfile 的详细信息,请参阅 {% data variables.product.prodname_vscode_shortname %} 文档“[创建开发容器](https://code.visualstudio.com/docs/remote/create-dev-container#_dockerfile)”。
|
||||
For more information about using a Dockerfile in a dev container configuration, see the {% data variables.product.prodname_vscode_shortname %} documentation "[Create a development container](https://code.visualstudio.com/docs/remote/create-dev-container#_dockerfile)."
|
||||
|
||||
## <a name="using-the-default-dev-container-configuration"></a>使用默认开发容器配置
|
||||
## Using the default dev container configuration
|
||||
|
||||
如果没有在存储库中定义配置,{% data variables.product.prodname_dotcom %} 使用默认 Linux 映像创建 codespace。 此 Linux 映像包括许多常用语言的运行时版本,例如 Python、Node、PHP、Java、Go、C++、Ruby 和 .NET Core/C#。 使用这些语言的最新或 LTS 版本。 还有一些工具可以支持数据科学和机器学习,例如 JupyterLab 和 Conda。 该映像还包括其他开发人员工具和实用程序,例如 Git、GitHub CLI、yarn、openssh 和 vim。 若要查看包含的所有语言、运行时和工具,请在 codespace 终端中使用 `devcontainer-info content-url` 命令,并遵循命令输出的 URL。
|
||||
If you don't define a configuration in your repository, {% data variables.product.prodname_dotcom %} creates a codespace using a default Linux image. This Linux image includes a number of runtime versions for popular languages like Python, Node, PHP, Java, Go, C++, Ruby, and .NET Core/C#. The latest or LTS releases of these languages are used. There are also tools to support data science and machine learning, such as JupyterLab and Conda. The image also includes other developer tools and utilities like Git, GitHub CLI, yarn, openssh, and vim. To see all the languages, runtimes, and tools that are included use the `devcontainer-info content-url` command inside your codespace terminal and follow the URL that the command outputs.
|
||||
|
||||
或者,有关默认 Linux 映像中包含的所有内容的详细信息,请参阅 [`microsoft/vscode-dev-containers`](https://github.com/microsoft/vscode-dev-containers/tree/main/containers/codespaces-linux) 存储库中的最新文件。
|
||||
Alternatively, for more information about everything that's included in the default Linux image, see the latest file in the [`microsoft/vscode-dev-containers`](https://github.com/microsoft/vscode-dev-containers/tree/main/containers/codespaces-linux) repository.
|
||||
|
||||
如果要处理使用 {% data variables.product.prodname_github_codespaces %} 提供的语言和工具的小型项目,默认配置是个不错的选择。
|
||||
The default configuration is a good option if you're working on a small project that uses the languages and tools that {% data variables.product.prodname_github_codespaces %} provides.
|
||||
|
||||
## <a name="using-a-predefined-dev-container-configuration"></a>使用预定义的开发容器配置
|
||||
## Using a predefined dev container configuration
|
||||
|
||||
可以从预定义配置列表中选择,为存储库创建开发容器配置。 这些配置提供特定项目类型的共同设置,可帮助你快速开始使用已经有适当的容器选项、{% data variables.product.prodname_vscode_shortname %} 设置和应该安装的 {% data variables.product.prodname_vscode_shortname %} 扩展的配置。
|
||||
You can choose from a list of predefined configurations to create a dev container configuration for your repository. These configurations provide common setups for particular project types, and can help you quickly get started with a configuration that already has the appropriate container options, {% data variables.product.prodname_vscode_shortname %} settings, and {% data variables.product.prodname_vscode_shortname %} extensions that should be installed.
|
||||
|
||||
如果您需要一些额外的扩展性,使用预先定义的配置是一个好主意。 也可以从预定义的配置开始,并根据项目的需要对其进行修改。
|
||||
Using a predefined configuration is a great idea if you need some additional extensibility. You can also start with a predefined configuration and amend it as needed for your project.
|
||||
|
||||
可以在 codespace 中工作时或在本地处理存储库时添加预定义的开发容器配置。
|
||||
You can add a predefined dev container configuration either while working in a codespace, or while working on a repository locally. To do this in {% data variables.product.prodname_vscode_shortname %} while you are working locally, and not connected to a codespace, you must have the "Remote - Containers" extension installed and enabled. For more information about this extension, see the [{% data variables.product.prodname_vs_marketplace_shortname %}](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers). The following procedure describes the process when you are using a codespace. The steps in {% data variables.product.prodname_vscode_shortname %} when you are not connected to a codespace are very similar.
|
||||
|
||||
{% data reusables.codespaces.command-palette-container %}
|
||||
1. 单击要使用的定义。
|
||||
1. Click the definition you want to use.
|
||||
|
||||

|
||||

|
||||
|
||||
1. 按照提示自定义您的定义。 有关自定义定义的选项的详细信息,请参阅“[向 `devcontainer.json` 文件添加其他功能](#adding-additional-features-to-your-devcontainerjson-file)”。
|
||||
1. 单击" **确定**"。
|
||||
1. Follow the prompts to customize your definition. For more information on the options to customize your definition, see "[Adding additional features to your `devcontainer.json` file](#adding-additional-features-to-your-devcontainerjson-file)."
|
||||
1. Click **OK**.
|
||||
|
||||

|
||||

|
||||
|
||||
1. 如果在 codespace 中工作,请应用更改,方法是单击窗口右下角的消息中的“立即重新生成”。 有关重新生成容器的详细信息,请参阅“[对配置应用更改](#applying-configuration-changes-to-a-codespace)”。
|
||||
1. If you are working in a codespace, apply your changes, by clicking **Rebuild now** in the message at the bottom right of the window. For more information about rebuilding your container, see "[Applying changes to your configuration](#applying-configuration-changes-to-a-codespace)."
|
||||
|
||||

|
||||

|
||||
|
||||
### <a name="adding-additional-features-to-your-devcontainerjson-file"></a>向 `devcontainer.json` 文件添加其他功能
|
||||
### Adding additional features to your `devcontainer.json` file
|
||||
|
||||
{% note %}
|
||||
|
||||
注意:此功能为 beta 版本,可能会变动。
|
||||
**Note:** This feature is in beta and subject to change.
|
||||
|
||||
{% endnote %}
|
||||
|
||||
可以向预定义的容器配置中添加功能,以自定义可用的工具并扩展工作区的功能,而无需从头开始创建自定义开发容器配置。 例如,可以使用预定义的容器配置并添加 {% data variables.product.prodname_cli %}。 设置容器配置时,可以通过将功能添加到 `devcontainer.json` 文件来为项目提供这些附加功能。
|
||||
You can add features to your predefined container configuration to customize which tools are available and extend the functionality of your workspace without having to create a custom dev container configuration from scratch. For example, you could use a predefined container configuration and add the {% data variables.product.prodname_cli %}. You can make these additional features available for your project by adding the features to your `devcontainer.json` file when you set up your container configuration.
|
||||
|
||||
您可以通过在配置预定义容器时选择一些最常用的功能来添加这些功能。 有关可用功能的详细信息,请参阅 `vscode-dev-containers` 存储库中的[脚本库](https://github.com/microsoft/vscode-dev-containers/tree/main/script-library#scripts)。
|
||||
You can add some of the most common features by selecting them when configuring your predefined container. For more information on the available features, see the [script library](https://github.com/microsoft/vscode-dev-containers/tree/main/script-library#scripts) in the `vscode-dev-containers` repository.
|
||||
|
||||
|
||||
1. 访问命令面板 (`Shift + Command + P` / `Ctrl + Shift + P`),然后开始键入“configure”。 选择“Codespaces: Configure Devcontainer Features”。
|
||||
1. Access the Command Palette (<kbd>Shift</kbd>+<kbd>Command</kbd>+<kbd>P</kbd> (Mac) / <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Windows/Linux)), then start typing "configure". Select **Codespaces: Configure Devcontainer Features**.
|
||||
|
||||

|
||||

|
||||
|
||||
1. 更新功能选择,然后单击“确定”。
|
||||
1. Update your feature selections, then click **OK**.
|
||||
|
||||

|
||||

|
||||
|
||||
1. 若要应用更改,请在屏幕右下角单击“立即重新生成”。 有关重新生成容器的详细信息,请参阅“[对配置应用更改](#applying-configuration-changes-to-a-codespace)”。
|
||||
1. To apply the changes, in the bottom right corner of the screen, click **Rebuild now**. For more information about rebuilding your container, see "[Applying changes to your configuration](#applying-configuration-changes-to-a-codespace)."
|
||||
|
||||

|
||||

|
||||
|
||||
## <a name="creating-a-custom-dev-container-configuration"></a>创建自定义开发容器配置
|
||||
## Creating a custom dev container configuration
|
||||
|
||||
如果任何预定义配置都不符合你的需求,可以通过编写自己的 `devcontainer.json` 文件创建自定义配置。
|
||||
If none of the predefined configurations meets your needs, you can create a custom configuration by writing your own `devcontainer.json` file.
|
||||
|
||||
* 如果要添加一个 `devcontainer.json` 文件,该文件将由从存储库创建 codespace 的每个人使用,请在存储库根目录的 `.devcontainer` 目录中创建该文件。
|
||||
* 如果要为用户提供配置选择,可以创建多个自定义 `devcontainer.json` 文件,每个文件位于 `.devcontainer` 目录的单独子目录中。
|
||||
* If you're adding a single `devcontainer.json` file that will be used by everyone who creates a codespace from your repository, create the file within a `.devcontainer` directory at the root of the repository.
|
||||
* If you want to offer users a choice of configuration, you can create multiple custom `devcontainer.json` files, each located within a separate subdirectory of the `.devcontainer` directory.
|
||||
|
||||
{% note %}
|
||||
|
||||
注意:无法在比 `.devcontainer` 低一级的目录中找到 `devcontainer.json` 文件。 例如,位于 `.devcontainer/teamA/devcontainer.json` 的文件可以正常运行,但 `.devcontainer/teamA/testing/devcontainer.json` 不行。
|
||||
**Note**: You can't locate your `devcontainer.json` files in directories more than one level below `.devcontainer`. For example, a file at `.devcontainer/teamA/devcontainer.json` will work, but `.devcontainer/teamA/testing/devcontainer.json` will not.
|
||||
|
||||
{% endnote %}
|
||||
|
||||
如果在存储库中找到多个 `devcontainer.json` 文件,则会在 codespace 创建选项页中列出这些文件。 有关详细信息,请参阅“[创建 codespace](/codespaces/developing-in-codespaces/creating-a-codespace#creating-a-codespace)”。
|
||||
If multiple `devcontainer.json` files are found in the repository, they are listed in the codespace creation options page. For more information, see "[Creating a codespace](/codespaces/developing-in-codespaces/creating-a-codespace#creating-a-codespace)."
|
||||
|
||||

|
||||

|
||||
|
||||
### <a name="default-configuration-selection-during-codespace-creation"></a>创建 codespace 期间的默认配置选择
|
||||
### Default configuration selection during codespace creation
|
||||
|
||||
如果 `.devcontainer/devcontainer.json` 或 `.devcontainer.json` 存在,则创建 codespace 时,它将是可用配置文件列表中的默认选择。 如果两个文件都不存在,则默认选择默认开发容器配置。
|
||||
If `.devcontainer/devcontainer.json` or `.devcontainer.json` exists, it will be the default selection in the list of available configuration files when you create a codespace. If neither file exists, the default dev container configuration will be selected by default.
|
||||
|
||||

|
||||

|
||||
|
||||
### <a name="editing-the-devcontainerjson-file"></a>编辑 devcontainer.json 文件
|
||||
### Editing the devcontainer.json file
|
||||
|
||||
可以在 `devcontainer.json` 文件中添加和编辑支持的配置键,以指定 codespace 环境的各个方面,例如将安装哪些 {% data variables.product.prodname_vscode_shortname %} 扩展。 {% data reusables.codespaces.more-info-devcontainer %}
|
||||
You can add and edit the supported configuration keys in the `devcontainer.json` file to specify aspects of the codespace's environment, like which {% data variables.product.prodname_vscode_shortname %} extensions will be installed. {% data reusables.codespaces.more-info-devcontainer %}
|
||||
|
||||
`devcontainer.json` 文件是使用 JSONC 格式编写的。 这样,就可以在配置文件中包含注释。 有关详细信息,请参阅 {% data variables.product.prodname_vscode_shortname %} 文档中的“[使用 {% data variables.product.prodname_vscode_shortname %} 编辑 JSON](https://code.visualstudio.com/docs/languages/json#_json-with-comments)”。
|
||||
The `devcontainer.json` file is written using the JSONC format. This allows you to include comments within the configuration file. For more information, see "[Editing JSON with {% data variables.product.prodname_vscode_shortname %}](https://code.visualstudio.com/docs/languages/json#_json-with-comments)" in the {% data variables.product.prodname_vscode_shortname %} documentation.
|
||||
|
||||
{% note %}
|
||||
|
||||
注意:如果使用 Linter 验证 `devcontainer.json` 文件,请确保将其设置为 JSONC 而不是 JSON,否则注释将被报告为错误。
|
||||
**Note**: If you use a linter to validate the `devcontainer.json` file, make sure it is set to JSONC and not JSON or comments will be reported as errors.
|
||||
|
||||
{% endnote %}
|
||||
|
||||
### <a name="editor-settings-for--data-variablesproductprodname_vscode_shortname-"></a>{% data variables.product.prodname_vscode_shortname %} 的编辑器设置
|
||||
### Editor settings for {% data variables.product.prodname_vscode_shortname %}
|
||||
|
||||
{% data reusables.codespaces.vscode-settings-order %}
|
||||
|
||||
可以在两个地方定义 {% data variables.product.prodname_vscode_shortname %} 的默认编辑器设置。
|
||||
You can define default editor settings for {% data variables.product.prodname_vscode_shortname %} in two places.
|
||||
|
||||
* 在存储库的 `.vscode/settings.json` 文件中定义的编辑器设置在 codespace 中应用为工作区范围的设置。
|
||||
* 在 `devcontainer.json` 文件的 `settings` 键中定义的编辑器设置应用为 codespace 中远程 [Codespaces] 范围的设置。
|
||||
* Editor settings defined in the `.vscode/settings.json` file in your repository are applied as _Workspace_-scoped settings in the codespace.
|
||||
* Editor settings defined in the `settings` key in the `devcontainer.json` file are applied as _Remote [Codespaces]_-scoped settings in the codespace.
|
||||
|
||||
## <a name="applying-configuration-changes-to-a-codespace"></a>将配置更改应用于 codespace
|
||||
## Applying configuration changes to a codespace
|
||||
|
||||
{% data reusables.codespaces.apply-devcontainer-changes %}
|
||||
|
||||
{% data reusables.codespaces.rebuild-command %}
|
||||
1. {% data reusables.codespaces.recovery-mode %} 修复配置中的错误。
|
||||
1. {% data reusables.codespaces.recovery-mode %} Fix the errors in the configuration.
|
||||
|
||||

|
||||

|
||||
|
||||
- 若要通过查看创建日志来诊断错误,请单击“查看创建日志”。
|
||||
- 若要修复日志中标识的错误,请更新 `devcontainer.json` 文件。
|
||||
- 要应用更改,请重建容器。
|
||||
- To diagnose the error by reviewing the creation logs, click **View creation log**.
|
||||
- To fix the errors identified in the logs, update your `devcontainer.json` file.
|
||||
- To apply the changes, rebuild your container.
|
||||
|
||||
## <a name="further-reading"></a>延伸阅读
|
||||
## Further reading
|
||||
|
||||
- [预构建 codespaces](/codespaces/prebuilding-your-codespaces)
|
||||
- "[Prebuilding your codespaces](/codespaces/prebuilding-your-codespaces)"
|
||||
|
||||
@@ -12,11 +12,11 @@ topics:
|
||||
- Set up
|
||||
product: '{% data reusables.gated-features.codespaces %}'
|
||||
ms.openlocfilehash: 368b7c73d13bb0624c9d838ac2d7bb18a2b050e3
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '147880732'
|
||||
ms.locfileid: '147880804'
|
||||
---
|
||||
## 概述
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: 将更改导出到分支
|
||||
intro: 本文提供将代码空间更改导出到分支的步骤。
|
||||
title: Exporting changes to a branch
|
||||
intro: This article provides steps for exporting your codespace changes to a branch.
|
||||
product: '{% data reusables.gated-features.codespaces %}'
|
||||
versions:
|
||||
fpt: '*'
|
||||
@@ -9,25 +9,20 @@ type: reference
|
||||
topics:
|
||||
- Codespaces
|
||||
shortTitle: Exporting changes
|
||||
ms.openlocfilehash: 676a94ae33b7dba4990014d472cbf28992437a2c
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147111000'
|
||||
---
|
||||
## 将更改导出到分支
|
||||
|
||||
使用 {% data variables.product.prodname_github_codespaces %} 时,你可能希望将更改导出到分支,而无需启动 codespace。
|
||||
## Exporting changes to a branch
|
||||
|
||||
当达到[支出限制](/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces)或在访问 codespace 时遇到一般性问题时,这会很有用。
|
||||
While using {% data variables.product.prodname_github_codespaces %}, you may want to export your changes to a branch without launching your codespace.
|
||||
|
||||
要导出更改:
|
||||
This can be useful when you have hit a [spending limit](/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces) or have a general issue accessing your codespace.
|
||||
|
||||
1. 浏览到“你的 Codespaces”页面 ([github.com/codespaces](https://github.com/codespaces)),对于单个存储库,也可单击“{% octicon "code" aria-label="The code icon" %} 代码”菜单。
|
||||
2. 单击要从中导出的 codespace 右侧的省略号 (...)。
|
||||
3. 选择“{% octicon "git-branch" aria-label="The git branch icon" %} 将更改导出到分支”。
|
||||
To export your changes:
|
||||
|
||||

|
||||
{% data reusables.codespaces.your-codespaces-procedure-step %} Or, for an individual repository, click the **{% octicon "code" aria-label="The code icon" %} Code** menu.
|
||||
1. Click the ellipsis (**...**) to the right of the codespace you want to export from.
|
||||
1. Select **{% octicon "git-branch" aria-label="The git branch icon" %} Export changes to branch**.
|
||||
|
||||
4. 从弹出窗口中选择“创建分支”。
|
||||

|
||||
|
||||
1. From the popover, select **Create branch**.
|
||||
|
||||
@@ -13,10 +13,10 @@ children:
|
||||
- /configuring-github-copilot-in-a-jetbrains-ide
|
||||
- /configuring-github-copilot-in-neovim
|
||||
ms.openlocfilehash: e98ac2a1ac8c884776db54e3b8d2a1ea51fbebee
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147079749'
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '147887405'
|
||||
---
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@ redirect_from:
|
||||
versions:
|
||||
fpt: '*'
|
||||
ms.openlocfilehash: 4947bff541682887817198c714e7e78bff2cfc9f
|
||||
ms.sourcegitcommit: 5b1461b419dbef60ae9dbdf8e905a4df30fc91b7
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '145099227'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147882777'
|
||||
---
|
||||
## 关于 {% data variables.product.prodname_desktop %} 安装
|
||||
|
||||
|
||||
@@ -13,10 +13,10 @@ topics:
|
||||
- GitHub Apps
|
||||
shortTitle: Activate optional features
|
||||
ms.openlocfilehash: 918fe1dd7ba466fccc4d54d02fca6b13fe6e4e86
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: 76b840f45ba85fb79a7f0c1eb43bc663b3eadf2b
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '145085039'
|
||||
---
|
||||
{% warning %}
|
||||
|
||||
@@ -14,10 +14,10 @@ children:
|
||||
- /viewing-transactions-for-your-listing
|
||||
shortTitle: Create Marketplace apps
|
||||
ms.openlocfilehash: 991f21944b6196ab7391b5d8af84abe32768c8d4
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '145084991'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147885674'
|
||||
---
|
||||
|
||||
|
||||
@@ -23,10 +23,10 @@ children:
|
||||
- /submitting-your-listing-for-publication
|
||||
shortTitle: List an app on the Marketplace
|
||||
ms.openlocfilehash: e20f44f2287195ed5cdf0f914b64e6a9a1bbeda2
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: 770ed406ec075528ec9c9695aa4bfdc8c8b25fd3
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '145084964'
|
||||
---
|
||||
|
||||
|
||||
@@ -19,10 +19,10 @@ children:
|
||||
- /receiving-payment-for-app-purchases
|
||||
shortTitle: Sell apps on the Marketplace
|
||||
ms.openlocfilehash: f969db42c6da5ccb2cd6657c776332f54d57b561
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '145084956'
|
||||
ms.locfileid: '147882317'
|
||||
---
|
||||
|
||||
|
||||
@@ -16,10 +16,10 @@ topics:
|
||||
- Webhooks
|
||||
shortTitle: Webhook events & payloads
|
||||
ms.openlocfilehash: 38dfa09525a7c3cc914bc2cf130126ed9969e190
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 76b840f45ba85fb79a7f0c1eb43bc663b3eadf2b
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '147541980'
|
||||
---
|
||||
{% data reusables.webhooks.webhooks_intro %}
|
||||
|
||||
@@ -4,11 +4,11 @@ intro: '使用讨论来提问和回答问题、共享信息、发布公告以及
|
||||
versions:
|
||||
feature: discussions
|
||||
ms.openlocfilehash: 4ac74c35b34310b62595bd5ac9a5588a7ef3476a
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147433410'
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '147886948'
|
||||
---
|
||||
## 关于 {% data variables.product.prodname_discussions %}
|
||||
|
||||
|
||||
@@ -7,11 +7,11 @@ shortTitle: Find discussions
|
||||
redirect_from:
|
||||
- /discussions/guides/finding-discussions-across-multiple-repositories
|
||||
ms.openlocfilehash: cef92d2d042ece7feeeb0364244a70520f12966d
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147410217'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147883269'
|
||||
---
|
||||
## 查找讨论
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@ versions:
|
||||
fpt: '*'
|
||||
shortTitle: About Community Exchange
|
||||
ms.openlocfilehash: 609c1fe6457db460fa3f6a3bf00b7f467ab7aba0
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 76b840f45ba85fb79a7f0c1eb43bc663b3eadf2b
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '147574172'
|
||||
---
|
||||
## 关于 {% data variables.product.prodname_community_exchange %}
|
||||
|
||||
@@ -9,10 +9,10 @@ versions:
|
||||
fpt: '*'
|
||||
ghec: '*'
|
||||
ms.openlocfilehash: b105bd1ea712aff86e47891d2be24ce82f8d6b19
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: 80842b4e4c500daa051eff0ccd7cde91c2d4bb36
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '145097925'
|
||||
---
|
||||
在 [{% data variables.product.prodname_marketplace %}](https://github.com/marketplace) 中,可以发现、浏览和安装免费及付费工具,包括 {% data variables.product.prodname_github_apps %}、{% data variables.product.prodname_oauth_apps %} 和 {% data variables.product.prodname_actions %}。
|
||||
|
||||
@@ -11,11 +11,11 @@ versions:
|
||||
ghec: '*'
|
||||
shortTitle: Extensions & integrations
|
||||
ms.openlocfilehash: f33ce9b9ae55e523bedff1309f3f2f15202dcf82
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '145164540'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147884211'
|
||||
---
|
||||
## 编辑器工具
|
||||
|
||||
|
||||
@@ -15,10 +15,10 @@ children:
|
||||
- /about-github-marketplace
|
||||
- /github-extensions-and-integrations
|
||||
ms.openlocfilehash: ba97623756a53352fb8a9d1d34db9f5dd6c3bede
|
||||
ms.sourcegitcommit: 5b1461b419dbef60ae9dbdf8e905a4df30fc91b7
|
||||
ms.sourcegitcommit: 770ed406ec075528ec9c9695aa4bfdc8c8b25fd3
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '145097917'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147883391'
|
||||
---
|
||||
|
||||
|
||||
@@ -19,8 +19,8 @@ ms.openlocfilehash: 4aa89f244e45da6905d6d5348c84faf8d5e6418c
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '145099754'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147884203'
|
||||
---
|
||||
## 关于行结尾
|
||||
每次按键盘上的 return 时,会插入一个称为行结束符的不可见字符<kbd></kbd>。 不同的操作系统处理行结束符的方式不同。
|
||||
|
||||
@@ -24,10 +24,10 @@ children:
|
||||
- /configuring-git-to-handle-line-endings
|
||||
- /ignoring-files
|
||||
ms.openlocfilehash: 42c758ca98c96d451660d089434d6d8dc61501d6
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '147880724'
|
||||
ms.locfileid: '147880756'
|
||||
---
|
||||
|
||||
|
||||
@@ -13,11 +13,11 @@ versions:
|
||||
ghec: '*'
|
||||
shortTitle: Code migration tools
|
||||
ms.openlocfilehash: 7877d435e7971f669d9d49a70d2d2450371b5159
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/10/2022
|
||||
ms.locfileid: '145128955'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147882165'
|
||||
---
|
||||
{% ifversion fpt or ghec %}
|
||||
|
||||
|
||||
@@ -12,10 +12,10 @@ versions:
|
||||
ghec: '*'
|
||||
shortTitle: Subversion & Git differences
|
||||
ms.openlocfilehash: cbe328bf3d2fbf3a603f6eef1559715ad48ca7fe
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.sourcegitcommit: 80842b4e4c500daa051eff0ccd7cde91c2d4bb36
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '145128928'
|
||||
---
|
||||
## 目录结构
|
||||
|
||||
@@ -17,10 +17,10 @@ children:
|
||||
- /setting-up-a-trial-of-github-enterprise-cloud
|
||||
- /setting-up-a-trial-of-github-enterprise-server
|
||||
ms.openlocfilehash: d533092609c80665a8a4cdbc7a646a9a42365d57
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: 76b840f45ba85fb79a7f0c1eb43bc663b3eadf2b
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '145109500'
|
||||
---
|
||||
|
||||
|
||||
@@ -12,11 +12,11 @@ topics:
|
||||
- Git
|
||||
miniTocMaxHeadingLevel: 3
|
||||
ms.openlocfilehash: 595fc79c5a656a3d6da8b5589ed384b545a418ac
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 80842b4e4c500daa051eff0ccd7cde91c2d4bb36
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '145098888'
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '147888120'
|
||||
---
|
||||
## 关于版本控制和 Git
|
||||
|
||||
|
||||
@@ -9,11 +9,11 @@ versions:
|
||||
topics:
|
||||
- CLI
|
||||
ms.openlocfilehash: b13d10e80942ace57d52cb57b315474cf9cbd442
|
||||
ms.sourcegitcommit: 5f9527483381cfb1e41f2322f67c80554750a47d
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '145129466'
|
||||
ms.locfileid: '147882205'
|
||||
---
|
||||
{% data reusables.cli.about-cli %}
|
||||
|
||||
|
||||
@@ -12,11 +12,11 @@ versions:
|
||||
ghec: '*'
|
||||
shortTitle: Create code blocks
|
||||
ms.openlocfilehash: ba0b49795df16fbafc77ef43c6fef58684162709
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '147390367'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147882415'
|
||||
---
|
||||
## 隔离代码块
|
||||
|
||||
|
||||
@@ -21,10 +21,10 @@ children:
|
||||
- /using-keywords-in-issues-and-pull-requests
|
||||
shortTitle: Work with advanced formatting
|
||||
ms.openlocfilehash: 9296f11fa36214ab14ee92b2d938813ae94713af
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.locfileid: '145179763'
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.locfileid: '147882399'
|
||||
---
|
||||
|
||||
|
||||
@@ -10,10 +10,10 @@ redirect_from:
|
||||
- /github/writing-on-github/working-with-advanced-formatting/organizing-information-with-collapsed-sections
|
||||
shortTitle: Collapsed sections
|
||||
ms.openlocfilehash: 1a1f0669ce401946f4a7a08dd1fd41893078e3d0
|
||||
ms.sourcegitcommit: fcf3546b7cc208155fb8acdf68b81be28afc3d2d
|
||||
ms.sourcegitcommit: 76b840f45ba85fb79a7f0c1eb43bc663b3eadf2b
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/11/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '146273096'
|
||||
---
|
||||
## 创建折叠部分
|
||||
|
||||
@@ -11,10 +11,10 @@ versions:
|
||||
topics:
|
||||
- API
|
||||
ms.openlocfilehash: a1b83659217059c756224a30eae1998bca5da9ba
|
||||
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
|
||||
ms.sourcegitcommit: 76b840f45ba85fb79a7f0c1eb43bc663b3eadf2b
|
||||
ms.translationtype: HT
|
||||
ms.contentlocale: zh-CN
|
||||
ms.lasthandoff: 09/05/2022
|
||||
ms.lasthandoff: 09/12/2022
|
||||
ms.locfileid: '147496538'
|
||||
---
|
||||
## 关于对象
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user