Skip to content

GitHub Action for fetching Metrics of usage of GitHub Copilot

Notifications You must be signed in to change notification settings

RickardHF/fetch-github-copilot-metrics

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fetch GitHub Copilot Metrics

This action fetches the metrics from the GitHub Copilot API and stores them in a JSON file. Allows you to easily fetch the metrics from the GitHub Copilot API and store them in a JSON file for further processing or use in your workflows.

Usage

- name: Fetch GitHub Copilot Metrics
  uses: RickardHF/[email protected]
  with:
    token: <A GitHub Token, preferably from a GitHub App>
    org: <Your GitHub Organization Slug>
    file-name: <The name of the file to store the metrics in> # Optional, defaults to 'copilot-metrics'

Inputs

token

Required A GitHub Token, preferably from a GitHub App.

NOTE: This token needs at least of the following permissions to be set to be able to fetch the metrics.

  • "GitHub Copilot Business" organization permissions (read)
  • "Administration" organization permissions (read)

org

Required Your GitHub Organization Slug.

file-name

Optional The name of the file to store the metrics in. Default: 'copilot-metrics'.

Outputs

The action will store the metrics in a JSON file with the name specified in the file-name input with the file extension .json. The file can then be used in further steps in your workflow. Eg. to upload the file as an artifact, handle the metrics in a script, upload the data to a database or blob container, etc.

About

GitHub Action for fetching Metrics of usage of GitHub Copilot

Resources

Stars

Watchers

Forks