Export changes to cards on a GitHub project board to CSV! 🤓
This service will give you a CSV export of statistics from a Github Project board. You can use this in a spreadsheet to calculate various delivery statistics, e.g. a Cumulative Flow Diagram. This is meant to be used with Google Sheets' and others' IMPORTDATA function to fetch straight into a spreadsheet.
You will need:
- A github repository with issues and project boards
- A personal access token which can read the issues in the repository (the "repo" permission).
- A google spreadsheets
-
For the IMPORTDATA function, you need a URL of the following shape:
https://github-projects-reporting.vercel.app/api/[owner]/[repo]?token=[your-token]
-
Open up your spreadsheet and in A1 insert the function:
=IMPORTDATA(https://github-projects-reporting.vercel.app/api/[owner]/[repo]?token=[your-token])
-
If successful, this will autopopulate the sheet. If unsuccessful, it will display
N/A
and will show an error. In this case, try...
- Create and populate a
.env
file in the root of your local repository with the environment variables necessary to run the program, following the.env.example
- Source this file in order to export the environment (e.g.
set -a && source .env && set +a
) - Execute the cli app, inserting the output into a local file (e.g.
node exporter/cli.js > output.csv
) - Open up your spreadsheet and import the data