Skip to main content

Asking Copilot to create a pull request

You can use a Copilot 채팅 prompt to ask Copilot to create a pull request.

누가 이 기능을 사용할 수 있나요?

Copilot 코딩 에이전트는 GitHub Copilot Pro(프로)+ 사용자와 GitHub Copilot Enterprise 고객에게 제공됩니다. 또한, GitHub Copilot Business 고객에게도 출시를 시작했으며, 사용자가 해당 기능을 사용할 수 있게 되면 메일로 알려드리겠습니다.
Sign up for Copilot

참고 항목

  • If you have access to Copilot 코딩 에이전트, you can create a pull request from Copilot 채팅 in Visual Studio Code, Visual Studio, JetBrains IDEs, and on GitHub.com.
  • Copilot 코딩 에이전트는 공개 미리 보기 버전이며 변경될 수 있습니다. 미리 보기 중 기능의 사용은 GitHub 시험판 사용 조건을(를) 따릅니다.

Introduction

Often, when you are working on a project, you might notice a change you want to make, but the change doesn't directly relate to your current task. You might raise a GitHub issue to record that a change needs to be made—or perhaps, forget the change and move on.

Instead—if Copilot 코딩 에이전트 is available—you can ask Copilot to make the change for you. Copilot will start working on the change in the background and, when it's done, request you to review the pull request it raises.

For information on making Copilot 코딩 에이전트 available, see Enabling Copilot coding agent.

Creating a pull request from Copilot 채팅

  1. Open GitHub Copilot 채팅, in your IDE, or while viewing a file on GitHub.com.

  2. Type a prompt asking Copilot to create a pull request, and giving details of what you want Copilot to change.

    For example, @github Create a PR to put backticks around file names and variables in output.

    중요

    VS Code, Visual Studio, JetBrains IDE에서는 프롬프트에서 @github 채팅 참가자를 언급해야 합니다. GitHub.com의 Copilot 채팅에서는 이를 생략할 수 있습니다.

    To help Copilot, you can select the relevant line(s) of code before submitting your prompt.

  3. Submit your prompt.

    Copilot asks you to confirm that you want to use the coding agent to create a pull request.

  4. Click Allow.

    Copilot will respond with a link to the pull request it creates. It will work on the task and push changes to the pull request, and then add you as a reviewer when it has finished, triggering a notification.

Monitoring progress

You can see what Copilot is doing while it is working on a task by viewing the session logs. See Using the Copilot coding agent logs.

You can also stop Copilot from working on a task by clicking Stop session in the session logs.

Further reading