Welcome to the GitHub Copilot Plugin!
The GitHub Copilot Plugin enhances your Backstage experience by providing features tailored to both enterprise and organization management.
- Enterprise and Organization Integration: Seamlessly integrate functionalities for GitHub Enterprise and GitHub Organizations.
- Team Metrics Comparison: Select a team and compare its metrics with the overall data, offering more insights into individual team performance.
GitHub APIs will only show metrics for teams of 5 or more active users per day
The following sections will help you get the GitHub Copilot Plugin setup and running.
You need to set up the Copilot backend plugin (copilot-backend) before you move forward with any of the following steps if you haven't already.
To start using the GitHub Copilot Plugin, follow these steps:
-
Install Dependencies:
# From your Backstage root directory yarn --cwd packages/app add @backstage-community/plugin-copilot -
Configure Routes:
App.tsx:
import { CopilotIndexPage } from '@backstage-community/plugin-copilot'; // Add the routes const routes = ( <FlatRoutes> // ... <Route path="/copilot" element={<CopilotIndexPage />} /> </FlatRoutes> );
Root.tsx:
import { CopilotSidebar } from '@backstage-community/plugin-copilot'; // Add the CopilotSidebar component somewhere inside your SidebarPage export const Root = ({ children }: PropsWithChildren<{}>) => ( <SidebarPage> <Sidebar> {/* ... */} <SidebarGroup label="Menu" icon={<MenuIcon />}> {/* ... */} <SidebarScrollWrapper> <CopilotSidebar /> </SidebarScrollWrapper> {/* ... */} </SidebarGroup> {/* ... */} </SidebarPage> );
If you're using feature discovery, the plugin should be automatically discovered and enabled. Otherwise, you can manually enable the plugin by adding it to your app:
// packages/app/src/App.tsx
import copilotPlugin from '@backstage-community/plugin-copilot/alpha';
const app = createApp({
features: [
// ...
copilotPlugin,
],
});The following extensions are available in the plugin:
api:copilotpage:copilotnav-item:copilot
