A Rust application that generates a report of GitHub pull requests for a specified repository and month. The report can be output in either a table or JSON format.
Please make sure you have Rust installed on your system
git clone git@github.com:avantsoftware/Github-Reportifier.git
cd github-pr-reporter
cargo build --release
sudo mv target/release/github-reportifier /usr/local/bin/
Create a .env file in the project root directory and add the following variables:
GITHUB_TOKEN=your_personal_access_token
REPO_OWNER=your_repo_owner
REPO_NAME=your_repo_name
Run the application using cargo run with the desired options:
github-reportifier --month [OPTIONS]
Options:
--year, -y: The year for the report (default is the current year).
--month, -m: The month number (e.g., 9 for September). Required.
--output, -o: Output format: "table" or "json" (default is "table").
Examples:
Generate a Table Report for September 2023
github-reportifier --year 2023 --month 9
Generate a JSON Report for October 2024
github-reportifier --year 2024 --month 10 --output json
- Table Output
By default, the report is displayed in a table format.
- JSON Output
If you specify --output json, the report will be output in JSON format.