Skip to content

🚀 Major Enhancement: Refactored into a Professional GitHub CLI Tool#1392

Open
MRThugh wants to merge 2 commits into
devops-by-examples:mainfrom
MRThugh:main
Open

🚀 Major Enhancement: Refactored into a Professional GitHub CLI Tool#1392
MRThugh wants to merge 2 commits into
devops-by-examples:mainfrom
MRThugh:main

Conversation

@MRThugh
Copy link
Copy Markdown

@MRThugh MRThugh commented May 9, 2026

Overview

This PR provides a significant upgrade to the existing script, transforming it from a basic helper into a robust, production-ready CLI tool.

Major Improvements:

  1. Security: Migrated away from passing tokens as arguments. Added support for environment variables, .env files, and secure prompts to prevent token leaks in shell history.
  2. Data Integrity: Replaced manual array appending with jq flattening. The script now ensures the output is always a single, valid JSON array.
  3. Reliability: Integrated set -euo pipefail and trap for automated cleanup of temporary files.
  4. UX/UI: Added colorized logs (INFO/WARN/ERROR), a progress spinner for long fetches, and a comprehensive --help menu.
  5. API Intelligence: Added a Rate Limit checker that warns the user when API quotas are low.
  6. Versatility: Added full support for various HTTP methods (POST, DELETE, etc.) and custom data payloads.

Testing

  • Verified pagination with large repositories.
  • Tested token security across different environments.
  • Validated JSON output with external linters.

I believe these changes will make this tool much more useful and safer for the community. Looking forward to your feedback!

MRThugh added 2 commits May 9, 2026 18:22
- Added secure token management (env/file/prompt)
- Implemented robust pagination handling with jq merging
- Added rate limit monitoring and colored logging
- Improved UX with progress spinners and verbose mode
- Fixed JSON integrity issues and added cleanup traps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant