This repo is a mashup of things relating to GitHub Copilot Usage Metrics.
As this repo copies from the various sources, the code may not be updated to the latest version. Please see the following references for the latest code from the original sources. It currently contains:
- GitHub's Copilot Metrics Viewer
- Live metrics as returned by the GitHub Copilot Usage Metrics API, which only contains the last 28 days of data.
- The dashboard can only show the metrics for a single enterprise, organization or team.
- Multi-org/team metrics export is not supported yet.
- A GitHub Action to deploy the viewer to Azure Static Web Apps
- Uses actions variables and secrets to set the SWA environment settings.
- Uses actions secrets to set the Entra ID authentication settings.
- A GitHub Action to export the usage metrics to CSV
- Exports for a single enterprise, single org and single team.
- Multi-org/team metrics export is not supported yet.
- A GitHub Action to export the usage metrics in the GitHub Actions summary to CSV/JSON/XML
- Exports for a single enterprise, single org and single team.
- Ability to export for specific days (instead of always the last 28 days).
To run locally
- Create a
.env
file according to.env.example
- Install dependencies with
npm install
- Run with
npm run serve
- alternatively, you may run using Static Web Apps CLI with
swa build
andswa start