feat(lib): add hub-release-analyzer for GitHub release analytics#183
Open
wherka-ama wants to merge 1 commit intoAmadeusITGroup:mainfrom
Open
feat(lib): add hub-release-analyzer for GitHub release analytics#183wherka-ama wants to merge 1 commit intoAmadeusITGroup:mainfrom
wherka-ama wants to merge 1 commit intoAmadeusITGroup:mainfrom
Conversation
Add CLI tool to analyze GitHub release download statistics for prompt-registry hub configurations. Features: - Parse hub configs from local files, GitHub repos, or direct YAML URLs - Concurrently fetch release data from multiple sources - Aggregate downloads by source, bundle, and version - Generate CSV and Markdown reports - Full unit test coverage
3926575 to
a472298
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add
hub-release-analyzerCLI tool to analyze GitHub release download statistics for prompt-registry hub configurations. This tool provides technical KPIs on bundle/version usage by scanning hub sources and aggregating release download counts into CSV and Markdown reports.Type of Change
Related Issues
Changes Made
hub-release-analyzerCLI script (lib/bin/hub-release-analyzer.js)lib/test/hub-release-analyzer.test.ts, 34 test cases)scripts/analyze-release-downloads.sh)lib/package.jsonwith new bin entrylib/README.mdwith usage documentationTesting
Test Coverage
Manual Testing Steps
node lib/bin/hub-release-analyzer.js --helpto verify CLI help outputnode lib/bin/hub-release-analyzer.js --dry-run https://github.com/Amadeus-xDLC/genai.prompt-registry-configanalytics-output/directorycd lib && npm test -- test/hub-release-analyzer.test.tsTested On
Screenshots
Checklist
Documentation
Additional Notes
The tool supports three input types:
./hub-config.yml)https://github.com/owner/repo)https://.../hub-config.yml)The script uses the GitHub CLI (
gh) for API authentication and supports concurrent fetching from multiple sources with configurable concurrency limits.Specification document:
.tmp/HUB_ANALYZER_SPEC.mdcontains detailed algorithm design (not part of commit).Reviewer Guidelines
Please pay special attention to:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache License 2.0.