Skip to content

Commit f83572d

Browse files
authored
Merge pull request #70 from evwilkin/chore/add-github-dependents-analyzer
feat(reports): automate github dependents comparison
2 parents e509601 + 927bd3a commit f83572d

15 files changed

+472552
-4
lines changed

CLAUDE.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,29 @@ Each analysis run creates these files in `/stats-static/{date}/`:
3939
- `_all_sorted.json`: Components categorized by PatternFly package
4040
- `_deprecated_usage.json`: Deprecated component usage tracking
4141

42+
### Dependents Analysis Files (when `-d` flag used):
43+
- `_dependents_analysis.json`: Complete analysis of all PatternFly package dependents
44+
- `_suggested_repos.json`: Prioritized list of repositories to consider adding
45+
- `_dependents_by_package.json`: Summary of missing dependents by PatternFly package
46+
4247
## Development Commands
4348

4449
### Data Collection
4550
```bash
46-
npm run collect # Run complete analysis pipeline
47-
npm run collect -- -c # Clean /tmp directory before collection
51+
npm run collect # Run complete analysis pipeline
52+
npm run collect-with-dependents # Run analysis + GitHub dependents analysis
53+
npm run collect -- -c # Clean /tmp directory before collection
54+
npm run collect -- -j -d # Run with package stats and dependents analysis
55+
```
56+
57+
### GitHub Dependents Analysis
58+
```bash
59+
npm run analyze-dependents # Compare GitHub dependents with local repos.json
60+
npm run sync-dependents # Create PR to add missing dependents (requires GITHUB_TOKEN)
61+
62+
# Custom repository analysis
63+
node src/github-dependents-analyzer.js --repo-url https://github.com/patternfly/patternfly-react
64+
node src/github-dependents-analyzer.js --repo-url https://github.com/patternfly/patternfly-react --create-pr
4865
```
4966

5067
### Report Generation

package-lock.json

Lines changed: 294 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)