Skip to main content

Copilot 확장에 대한 GitHub 앱 구성

Copilot Extension와 연결되도록 GitHub App을 구성하는 방법을 알아봅니다.

Tool navigation

Note

GitHub Copilot Extensions is in public preview and subject to change.

Once you have configured your server and created your GitHub App, you need to configure your GitHub App for use with your Copilot extension.

Prerequisites

Configuring your GitHub App

  1. In the upper-right corner of any page on GitHub, click your profile photo.

  2. Navigate to your account settings.

    • For an app owned by a personal account, click Settings.
    • For an app owned by an organization:
      1. Click Your organizations.
      2. To the right of the organization, click Settings.
    • For an app owned by an enterprise:
      1. If you use Enterprise Managed Users, click Your enterprise to go directly to the enterprise account settings.
      2. If you use personal accounts, click Your enterprises and then to the right of the enterprise, click Settings.
  3. Navigate to the GitHub App settings.

    • For an app owned by a personal account or organization:
      1. In the left sidebar, click Developer settings, then click GitHub Apps.
    • For an app owned by an enterprise:
      1. In the left sidebar, under "Settings", click GitHub Apps.
  4. To the right of the GitHub App you want to configure for your Copilot Extension, click Edit.

  5. In the "Identifying and authorizing users" section, under "Callback URL", enter your callback endpoint URL, then click Save changes.

    Note

    Your server's hostname is the forwarding endpoint that you copied from your terminal when you configured your server. See Configuring your server to host your Copilot extension.

    If you are using an ephemeral domain in ngrok, you will need to update this URL every time you restart your ngrok server.

  6. In the left sidebar, click Permissions & events.

  7. To expand the "Account permissions" section, click anywhere in the section.

  8. In the "GitHub Copilot Chat" row, select the Access: dropdown menu, then click Read-only.

  9. To enable the application to receive editor content (for example the currently opened file), in the "Copilot Editor Context" row, select the Access: dropdown menu, then click Read-only.

  10. Click Save changes.

  11. In the left sidebar, click Copilot.

  12. Read the GitHub Marketplace Developer Agreement and the GitHub Pre-release License Terms, then accept the terms for creating a Copilot Extension.

  13. In the "App type" section, select the dropdown menu, then click Agent.

  14. Under "URL," enter your server's hostname (aka forwarding endpoint) that you copied from your terminal.

    Note

    If you are using an ephemeral domain in ngrok, you will need to update this URL every time you restart your ngrok server.

  15. Under "Inference description", type a brief description of your agent, then click Save. This will be the description users see when they hover over your extension's slug in the chat window.

  16. Your pre-authorization URL is a link on your website that starts the authorization process for your extension. Users will be redirected to this URL when they decide to authorize your extension. If you are using a pre-authorization URL, under "Pre-authorization URL," enter the URL, then click Save changes.

  17. In your GitHub App settings, in the left sidebar, click Install App, then, next to the account you want to install your app on, click Install.

  18. In the top right of any page on GitHub, click the GitHub Copilot icon next to the search bar.

    The GitHub Copilot Chat panel is displayed. To resize the panel, click and drag the top or left edge.

  19. If the panel contains a previous conversation you had with Copilot, click the "New conversation" icon (a plus sign) at the top right of the panel.

    Screenshot of the new conversation button, highlighted with a dark orange outline.

  20. Invoke your extension by typing @EXTENSION-NAME, replacing any spaces in the extension name with -, then press Enter.

  21. If this is your first time using the extension, you will be prompted to authenticate. Follow the steps on screen to authenticate your extension.

  22. Ask your extension a question in the chat window. For example, What is the software development lifecycle?.

  1. In the upper-right corner of any page on GitHub, click your profile photo.

  2. Navigate to your account settings.

    • For an app owned by a personal account, click Settings.
    • For an app owned by an organization:
      1. Click Your organizations.
      2. To the right of the organization, click Settings.
    • For an app owned by an enterprise:
      1. If you use Enterprise Managed Users, click Your enterprise to go directly to the enterprise account settings.
      2. If you use personal accounts, click Your enterprises and then to the right of the enterprise, click Settings.
  3. Navigate to the GitHub App settings.

    • For an app owned by a personal account or organization:
      1. In the left sidebar, click Developer settings, then click GitHub Apps.
    • For an app owned by an enterprise:
      1. In the left sidebar, under "Settings", click GitHub Apps.
  4. To the right of the GitHub App you want to configure for your Copilot Extension, click Edit.

  5. In the "Identifying and authorizing users" section, under "Callback URL", enter your callback endpoint URL, then click Save changes.

    Note

    Your server's hostname is the forwarding endpoint that you copied from your terminal when you configured your server. See Configuring your server to host your Copilot extension.

    If you are using an ephemeral domain in ngrok, you will need to update this URL every time you restart your ngrok server.

  6. In the left sidebar, click Permissions & events.

  7. To expand the "Account permissions" section, click anywhere in the section.

  8. In the "GitHub Copilot Chat" row, select the Access: dropdown menu, then click Read-only.

  9. To enable the application to receive editor content (for example the currently opened file), in the "Copilot Editor Context" row, select the Access: dropdown menu, then click Read-only.

  10. Click Save changes.

  11. In the left sidebar, click Copilot.

  12. Read the GitHub Marketplace Developer Agreement and the GitHub Pre-release License Terms, then accept the terms for creating a Copilot Extension.

  13. In the "App type" section, select the dropdown menu, then click Skillset.

  14. Your pre-authorization URL is a link on your website that starts the authorization process for your extension. Users will be redirected to this URL when they decide to authorize your extension. If you are using a pre-authorization URL, under "Pre-authorization URL," enter the URL, then click Save changes.

  15. For each skill you want to add (maximum 5):

    1. Click Add new skill.
    2. Enter a clear Name for the skill (e.g., "Generate Lorem Ipsum Data").
    3. Write a detailed Inference description to help Copilot understand when to use this skill.
    4. Add your API endpoint URL that will receive the POST requests.
    5. In the Parameter field, add the JSON schema defining the expected request format.
    6. Click Add Definition to save your skill.
  16. Click Save to save your skillset.

  17. In your GitHub App settings, in the left sidebar, click Install App, then, next to the account you want to install your app on, click Install.

  18. In the top right of any page on GitHub, click the GitHub Copilot icon next to the search bar.

    The GitHub Copilot Chat panel is displayed. To resize the panel, click and drag the top or left edge.

  19. If the panel contains a previous conversation you had with Copilot, click the "New conversation" icon (a plus sign) at the top right of the panel.

    Screenshot of the new conversation button, highlighted with a dark orange outline.

  20. Invoke your extension by typing @EXTENSION-NAME, replacing any spaces in the extension name with -, then press Enter.

  21. If this is your first time using the extension, you will be prompted to authenticate. Follow the steps on screen to authenticate your extension.

  22. Ask your extension a question in the chat window. For example, What is the software development lifecycle?.