Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/es-es/first-steps/copilot-app/5-publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ En esta lección:

## Publica el repositorio

> [!WARNING]
> Según la configuración de aprobación, el agente puede pedir confirmación antes de crear un repositorio o enviar código, o esas acciones pueden aprobarse automáticamente. Con **Approve all**, no esperes una solicitud de confirmación adicional. Revisa la configuración, la acción solicitada y el destino antes de enviar el prompt de publicación.

Envía el siguiente prompt:

```plaintext
Initialize this folder as a Git repository, create an initial commit, and create a new public GitHub repository named space-quiz in my account. Push the current branch and set it as the default branch. Refresh the project within this app so the GitHub project is linked.
```

> [!WARNING]
> Según la configuración de aprobación, el agente puede pedir confirmación antes de crear un repositorio o enviar código, o esas acciones pueden aprobarse automáticamente. Con **Approve all**, no esperes una solicitud de confirmación adicional. Revisa la configuración, la acción solicitada y el destino antes de enviar el prompt de publicación.

Cuando el agente termine:

1. Abre el nuevo repositorio en GitHub.
Expand Down
3 changes: 2 additions & 1 deletion docs/es-es/first-steps/copilot-cli/2-project-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ En esta lección:

## Recoge las reglas con `/init`

Incluye un prompt después de `/init`. Si envías el comando sin texto adicional, puede aparecer `Command input required`.
En Copilot CLI, `/init` funciona sin texto adicional; también puedes añadir instrucciones para orientar lo que genera, como se indica en la [referencia de comandos de CLI][cli-init]. Este ejemplo añade una solicitud de reglas sencillas para el proyecto.

1. Ejecuta `/init create simple rules for the project` en la sesión.
2. Revisa el archivo de instrucciones generado antes de aceptarlo.
Expand All @@ -36,3 +36,4 @@ El archivo de instrucciones no sirve solo para recoger datos del proyecto. Añad
El proyecto ya tiene instrucciones del agente basadas en código real. Continúa con la [lección 3: Publicar el proyecto][next-lesson].

[next-lesson]: ../3-publish/
[cli-init]: https://docs.github.com/copilot/reference/copilot-cli-reference/cli-command-reference#project-initialization-for-copilot
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ Como cabe esperar, el primer paso para utilizar la aplicación GitHub Copilot es
1. En un navegador, abre la [página de inicio de la aplicación GitHub Copilot][download-app].
2. Descarga la aplicación para tu plataforma e instálala siguiendo las instrucciones de la página.
3. Abre la aplicación después de instalarla.
4. Selecciona **Sign in to GitHub** y sigue las indicaciones para autenticarte. Si utilizas GitHub Enterprise Server, elige **Use GitHub Enterprise** e introduce la dirección del servidor cuando se solicite.
4. Selecciona **Sign in to GitHub** y sigue las indicaciones para iniciar sesión con una cuenta de GitHub.com o GHE.com. Si utilizas GitHub Enterprise Cloud con residencia de datos, elige **GitHub Enterprise Cloud** e introduce el nombre de host `*.ghe.com` cuando se solicite.

Si utilizas GitHub Enterprise Server, completa primero la incorporación con tu cuenta en la nube. Después, abre **Settings**, selecciona **Accounts**, selecciona **Add account** y elige **GitHub Enterprise Server**. Sigue las indicaciones para autorizar la aplicación en el navegador, como se describe en la [guía de inicio de sesión en Enterprise Server][ghes-sign-in].

5. Después de autenticarte, se te pedirá que conectes los repositorios. Selecciona el repositorio de Tailspin Toys que acabas de crear, cuyo nombre debería ser `<YOUR_GITHUB_HANDLE>/tailspin-toys`.
6. Selecciona **Continue** para continuar con la incorporación.
7. Cuando se te pida que elijas un tema, selecciona el que más te guste y, después, selecciona **Finish**.
Expand Down Expand Up @@ -103,4 +106,5 @@ A continuación, iniciarás tu primera sesión de agente y realizarás el primer
[about-copilot-app]: https://docs.github.com/copilot/concepts/agents/github-copilot-app
[getting-started]: https://docs.github.com/copilot/how-tos/github-copilot-app/getting-started
[agent-sessions]: https://docs.github.com/copilot/how-tos/github-copilot-app/agent-sessions
[download-app]: https://gh.io/app
[download-app]: https://gh.io/app
[ghes-sign-in]: https://docs.github.com/enterprise-server@3.22/copilot/copilot-on-ghes/sign-in-on-copilot-app
35 changes: 25 additions & 10 deletions docs/first-steps/copilot-app/12-deploy-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,41 @@ In this lesson, you will:

The Space Quiz is already in a GitHub repository, but people still need a simple way to try it. Publishing the single-file site with GitHub Pages makes it available from a public URL without adding a server or runtime dependency.

## Ask Copilot to deploy the site
## Ask Copilot to prepare the deployment

> [!WARNING]
> Creating a pull request can commit and push code. Review your approval settings and the destination repository before sending this prompt. With **Approve all**, do not expect a separate confirmation prompt.

In the Copilot app session for `space-quiz`, send this prompt:

```plaintext
Enable GitHub Pages for this repository. Create a GitHub Actions workflow that builds the website if needed and deploys it to GitHub Pages. Add a README describing the app and how to run it locally if one does not already exist. Create a pull request with these changes and merge it after required checks pass. Monitor the deployment until it succeeds, then report the final URL of the live website. If you lack permission to enable Pages or merge, tell me exactly what I need to approve or do; do not report success until the site is live.
Prepare a GitHub Pages deployment for this repository. Create a GitHub Actions workflow that builds the website if needed and deploys it to GitHub Pages after changes reach the default branch. Add a README describing the app and how to run it locally if one does not already exist. Create a pull request with these changes and report its link and any required Pages settings or permissions. Do not merge, enable auto-merge, change Pages settings, or deploy. Stop and wait for my review.
```

![Three-stage diagram: a merged space-quiz pull request; a successful GitHub Actions Deploy website run with Build website, Upload artifact, and Deploy to Pages steps; and the live Space Quiz at yourname.github.io/space-quiz/.](../../_images/first-steps-app-pages-deploy.svg)
## Review the workflow and pull request

1. Confirm that the README is added only if the repository does not already have one.
2. Review the pull request changes, including the workflow's build and deployment steps, triggers, and permissions.
3. Confirm that the workflow deploys from the default branch, not from an unmerged pull request.
4. Request any corrections and review the updated diff. Wait for the required pull request checks to pass before authorizing a merge.

## Authorize the merge and deployment

> [!WARNING]
> This prompt asks the agent to create and merge a pull request and change repository Pages settings. Review the diff, deployment permissions, and any GitHub approval prompts before proceeding.
> The following prompt authorizes the agent to merge the reviewed pull request, change repository Pages settings, and publish the site. Send it only after completing your review and confirming the repository and pull request. Approval settings may allow these actions without another confirmation prompt.

## Review the workflow and verify the deployment
Replace `<PR_NUMBER>` with the number of the pull request you reviewed, then send this separate prompt:

1. Confirm that the README is added only if the repository does not already have one.
2. Review the pull request changes, including the workflow's build and deployment steps.
3. Merge only after the required pull request checks pass.
4. Follow the GitHub Actions deployment run until it succeeds.
5. Open the reported URL and confirm that the Space Quiz loads.
```plaintext
I have reviewed pull request <PR_NUMBER> in this repository and authorize its merge and deployment. Enable GitHub Pages using GitHub Actions, merge that pull request only after required checks pass, and monitor the deployment until it succeeds. Report the final URL of the live website. If you lack permission to enable Pages or merge, tell me exactly what I need to approve or do; do not report success until the site is live.
```

![Three-stage diagram: a merged space-quiz pull request; a successful GitHub Actions Deploy website run with Build website, Upload artifact, and Deploy to Pages steps; and the live Space Quiz at yourname.github.io/space-quiz/.](../../_images/first-steps-app-pages-deploy.svg)

## Verify the deployment

1. Follow the GitHub Actions deployment run until it succeeds.
2. Open the reported URL and confirm that the Space Quiz loads.

If the agent cannot enable Pages or merge the pull request, follow the specific instructions it provides. Do not treat the task as complete until the deployment succeeds and the live site loads.

Expand Down
6 changes: 3 additions & 3 deletions docs/first-steps/copilot-app/5-publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ In this lesson, you will:

## Publish the repository

> [!WARNING]
> Depending on your approval settings, the agent may ask for confirmation before it creates a repository or pushes code, or those actions may be approved automatically. With **Approve all**, do not expect a separate confirmation prompt. Review your settings, the requested action, and the destination before sending the publishing prompt.

Send the following prompt:

```plaintext
Initialize this folder as a Git repository, create an initial commit, and create a new public GitHub repository named space-quiz in my account. Push the current branch and set it as the default branch. Refresh the project within this app so the GitHub project is linked.
```

> [!WARNING]
> Depending on your approval settings, the agent may ask for confirmation before it creates a repository or pushes code, or those actions may be approved automatically. With **Approve all**, do not expect a separate confirmation prompt. Review your settings, the requested action, and the destination before sending the publishing prompt.

After the agent finishes:

1. Open the new repository on GitHub.
Expand Down
3 changes: 2 additions & 1 deletion docs/first-steps/copilot-cli/2-project-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ In this lesson, you will:

## Capture the rules with `/init`

Include a prompt after `/init`. Submitting the command on its own can produce `Command input required`.
In Copilot CLI, `/init` works on its own; you can also add instructions to guide what it generates, as shown in the [CLI command reference][cli-init]. This example adds a request for simple project rules.

1. Run `/init create simple rules for the project` in the session.
2. Review the generated instructions file before accepting it.
Expand All @@ -36,3 +36,4 @@ The instructions file is not only for facts about the project. Add the specifics
Your project now has agent instructions grounded in real code. Continue to [Lesson 3: Publish the project][next-lesson].

[next-lesson]: ../3-publish/
[cli-init]: https://docs.github.com/copilot/reference/copilot-cli-reference/cli-command-reference#project-initialization-for-copilot
6 changes: 3 additions & 3 deletions docs/ja-jp/first-steps/copilot-app/5-publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ Space Quiz を公開して、Issue を管理し、分離された worktree を

## リポジトリを公開する

> [!WARNING]
> 承認設定によって、リポジトリの作成やコードのプッシュの前にエージェントが確認を求める場合と、操作が自動で承認される場合があります。**Approve all** では、個別の確認プロンプトが表示されるとは限りません。公開用のプロンプトを送信する前に、設定、依頼する操作、その対象をレビューしてください。

次のプロンプトを送信します。

```plaintext
Initialize this folder as a Git repository, create an initial commit, and create a new public GitHub repository named space-quiz in my account. Push the current branch and set it as the default branch. Refresh the project within this app so the GitHub project is linked.
```

> [!WARNING]
> 承認設定によって、リポジトリの作成やコードのプッシュの前にエージェントが確認を求める場合と、操作が自動で承認される場合があります。**Approve all** では、個別の確認プロンプトが表示されるとは限りません。公開用のプロンプトを送信する前に、設定、依頼する操作、その対象をレビューしてください。

エージェントの作業が完了したら、次を行います。

1. GitHub で新しいリポジトリを開きます。
Expand Down
3 changes: 2 additions & 1 deletion docs/ja-jp/first-steps/copilot-cli/2-project-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ lastUpdated: 2026-10-05

## `/init` でルールを記録する

`/init` の後にプロンプトを入力します。コマンドだけを送信すると、`Command input required` が表示される場合があります。
Copilot CLI では、`/init` は単独で実行できます。[CLI コマンドリファレンス][cli-init]にあるように、生成内容を指定する指示も追加できます。この例では、プロジェクトの簡単なルールを作成するよう依頼します。

1. セッションで `/init create simple rules for the project` を実行します。
2. 生成された指示ファイルを受け入れる前にレビューします。
Expand All @@ -36,3 +36,4 @@ lastUpdated: 2026-10-05
プロジェクトに、実際のコードに基づくエージェントへの指示が加わりました。[レッスン 3: プロジェクトの公開][next-lesson]に進みます。

[next-lesson]: ../3-publish/
[cli-init]: https://docs.github.com/copilot/reference/copilot-cli-reference/cli-command-reference#project-initialization-for-copilot
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ GitHub Copilot app を使用するには、まずアプリをインストール
1. ブラウザーで [GitHub Copilot app のランディングページ][download-app]を開きます。
2. 使用しているプラットフォーム向けのアプリをダウンロードし、ランディングページの手順に従ってインストールします。
3. インストールが完了したら、アプリを開きます。
4. **Sign in to GitHub** を選択し、画面の指示に従って認証します。GitHub Enterprise Server を使用している場合は **Use GitHub Enterprise** を選択し、求められたらサーバーアドレスを入力します。
4. **Sign in to GitHub** を選択し、画面の指示に従って GitHub.com または GHE.com のアカウントでサインインします。データ所在地に対応した GitHub Enterprise Cloud を使用している場合は **GitHub Enterprise Cloud** を選択し、求められたら `*.ghe.com` のホスト名を入力します。

GitHub Enterprise Server を使用している場合は、まずクラウドアカウントでオンボーディングを完了します。その後、**Settings** を開き、**Accounts**、**Add account**、**GitHub Enterprise Server** の順に選択します。[Enterprise Server のサインインガイド][ghes-sign-in]に従い、ブラウザーでアプリを承認します。

5. 認証後、リポジトリを接続するよう求められます。先ほど作成した `<YOUR_GITHUB_HANDLE>/tailspin-toys` という名前の Tailspin Toys リポジトリを選択します。
6. **Continue** を選択してオンボーディングを続けます。
7. テーマの選択を求められたら、最も好みのものを選び、**Finish** を選択します。
Expand Down Expand Up @@ -103,4 +106,5 @@ GitHub Copilot app をインストールし、プロジェクトを接続して
[about-copilot-app]: https://docs.github.com/copilot/concepts/agents/github-copilot-app
[getting-started]: https://docs.github.com/copilot/how-tos/github-copilot-app/getting-started
[agent-sessions]: https://docs.github.com/copilot/how-tos/github-copilot-app/agent-sessions
[download-app]: https://gh.io/app
[download-app]: https://gh.io/app
[ghes-sign-in]: https://docs.github.com/enterprise-server@3.22/copilot/copilot-on-ghes/sign-in-on-copilot-app
Loading
Loading