This project is designed to collect, analyze, and report metrics related to the usage of GitHub Copilot. It aims to provide insights into how developers interact with GitHub Copilot, including the number of suggestions accepted, lines of code generated, active users, and more. This data can help understand the tool's impact on developer productivity and code quality.
- Data Collection: Automated scripts to collect metrics from GitHub Copilot usage.
- Database Integration: Stores collected data in a SQL database for persistence and easy access.
- Analysis Tools: Includes tools for analyzing the collected data to extract meaningful insights.
- Reporting: Generates reports on GitHub Copilot usage metrics, including daily, weekly, and monthly summaries.
- Python 3.8 or higher
- MySQL or compatible SQL database
- Access to GitHub Copilot usage data
- Clone the repository:
git clone https://github.com/yourusername/github_copilot_metrics.git
- Navigate to the project directory:
cd github_copilot_metrics
- Install the required Python packages:
pip install -r requirements.txt
- Copy the
config.example.json
toconfig.json
and fill in your database connection details and other configurations.
- To start data collection, run:
by default it will output raw json from the API.
python github_metrics.py
- To get help , run:
this will show you the command line options you can pass.
python github_metrics.py -h
Contributions are welcome! Please feel free to submit pull requests, report bugs, and suggest features.
This project is licensed under the MIT License - see the LICENSE file for details.