Integrate GitHub Copilot with Astra DB Serverless
This Astra DB integration is available only to qualified participants in this private preview release. Development is ongoing, and the features and functionality are subject to change. This private preview is governed by your Agreement and the DataStax Preview Terms and is considered a part of the No-Fee License. |
GitHub Copilot can use the information from your Astra account to provide assistance when writing applications backed by Astra DB Serverless databases. This tutorial shows you how to integrate Astra DB Serverless with GitHub Copilot.
Prerequisites
The steps on this page assume the following:
-
You have an active Astra account.
-
You have an active GitHub Copilot account.
-
You have created a Serverless (Vector) database.
Add the GitHub integration
You can add the GitHub Copilot integration with the Astra Portal.
-
Open the Astra Portal, and then switch to the organization that you want to use with this integration.
-
Go to Settings > Integrations.
-
In the All Integrations section, select the GitHub Copilot integration.
You are redirected to github.com in a new tab to complete the integration. Once the integration is installed, you are returned to the Astra Portal.
-
Refresh the page. If the installation succeeded, GitHub Copilot will appear in the Active section.
Access your Astra data with GitHub Copilot
After you install the integration, GitHub Copilot can access your Astra data.
-
Open VSCode.
-
Select the GitHub Copilot Chat extension.
-
Use the
@datastax
command to prompt the agent.
GitHub Copilot will use your Astra data to provide code suggestions.
Remove the Github integration
You can permanently remove the GitHub Copilot integration with the Astra Portal.
-
Open the Astra Portal, and then switch to the organization with the integration.
-
Go to Settings > Integrations.
-
In the Active section, select the GitHub Copilot integration.
-
Click Remove, and then click Remove again to confirm.
-
-
Navigate to Installed GitHub Apps in your GitHub account.
-
Find the Astra DB GitHub Copilot integration.
-
Click Configure, and then click Uninstall.
-
The integration is deleted and GitHub Copilot can no longer access your Astra organization or databases.