This project calculates and prints metrics related to pull requests on a GitHub repository, including average time per author.
- Python 3.x
- pip (Python package installer)
-
Clone the repository:
git clone https://github.com/your-username/your-repository.git
-
Navigate to the project directory:
cd your-repository
-
Install dependencies:
pip install -r requirements.txt
-
Create a .env file in the project root with the following content:
GITHUB_OWNER=your_username GITHUB_REPO=your_repository GITHUB_TOKEN=your_personal_access_token START_DATE=2024-01-01 END_DATE=2024-01-31
Replace the placeholder values with your actual GitHub username, repository name, and personal access token. Adjust the start and end dates as needed.
-
Run the script:
python github_metrics.py
-
View the calculated metrics in the console.