The Azure Boards GitHub integration allows you to invoke Copilot coding agent without leaving your workspace. From within a Azure Boards work item you can initiate coding agent sessions and open pull requests, using the context of your work item description and comments.
For information about additional Copilot integrations, see About Copilot integrations.
注意
When you send a work item to Copilot coding agent, the agent will capture content from text fields (such as the description and reproduction steps), along with the last 50 comments. This context is stored in the pull request, and is visible to anyone with access to the repository.
Prerequisites
- You must have a GitHub account with access to Copilot through Copilot Pro, Copilot Pro+, Copilot Business, or Copilot Enterprise.
- The repositories connected to the Azure DevOps project must have Copilot coding agent enabled.
Installing the Azure Boards application on GitHub
注意
To install the Azure Boards application, you must be an owner or App manager of the organization or enterprise on GitHub.
The Azure Boards app only needs to be installed once in an organization. After the app is installed, any member of the organization can connect their GitHub account to the app and start using it.
- Go to the Azure Boards installation page.
- Scroll to the bottom of the page, then use the Account dropdown menu to select an account you would like to install the app in.
- Click Install.
- Select the repositories you would like the Azure Boards app to have access to.
- Follow the prompts on screen to configure and authorize the app in your Azure DevOps organization and project.
Approving the Azure Boards application permissions
If you already have the Azure Boards application installed on GitHub, you will need to approve the required permission changes to allow the app to communicate with GitHub Copilot.
- Navigate to your installed GitHub Apps.
- Find the Azure Boards application, then click the Review request link.
- Review the permissions, then click Accept new permission.
Creating a pull request from a work item
- In Azure Boards, open the work item you want to send to Copilot coding agent.
- Click the icon on the work item.
- Select Create a pull request with Copilot.
- Under GitHub repository, select the repository where Copilot should create the pull request.
- Optionally, change the base branch that Copilot should use for the pull request.
- Optionally, add any additional instructions to provide Copilot with more context.
- Click Create.
Copilot coding agent will begin processing the work item and create a draft pull request linked back to the work item.