This script fetches issues from a specified GitHub project, categorizes them by status and contributor, and generates a structured report.
- Retrieves issues from a GitHub project using GraphQL API.
- Categorizes issues by their status (To Do, In Progress, Done, etc.).
- Categorizes issues by assigned contributors.
- Outputs a formatted report as a text file.
- Python 3.x installed.
- A GitHub personal access token with the required permissions.
- Clone the repository or download the script.
- Install dependencies using:
pip install requests
Run the script with the following command:
python script.py --org <organization> --project <project_number> --token <github_token> --output <output_filename>
--org
(optional): GitHub organization name (default:edly-io
).--project
(optional): GitHub project number (default:5
).--token
(required): GitHub personal access token (can also be set asGITHUB_TOKEN
environment variable).--output
(optional): Output file name (default:github_project_report.txt
).
python script.py --token YOUR_GITHUB_TOKEN
This will generate github_project_report.txt
with categorized issues.
The report will include:
- Issues categorized by status (To Do, In Progress, Done, etc.).
- Issues categorized by contributor, including unassigned issues.
This project is licensed under the MIT License.