Automatically track the amount of code released #17
yeanwang666
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Automatic Code Statistics Tracking (LOC Monitor)
This discussion is used as the central place for automated code statistics reports generated daily by GitHub Actions.
Every day, the workflow will:
✔ 1. Scan the entire codebase
StarryOS main repository、All repositories listed in whitelist.yml、Any cloned sub-repos used by StarryOS
✔ 2. Analyze code metrics
Total LOC (Lines of Code)、Language distribution (Rust, TOML, Device Tree, Shell, etc.)、Per-repository LOC ranking、Top languages per repo、Summary tables & percentages
✔ 3. Auto-generate Markdown reports
full formatted report、compact version for Discussion comments、raw machine-readable data
✔ 4. Automatically post the report here
Every day, a bot comment will appear below with the latest results.
🛠️ Technical Notes
The LOC report is generated using:
tokei for language-level line counting、A custom Python-based report generator、GitHub Actions + GraphQL API for automated posting
Daily cron trigger at 02:00 UTC.
💬 Discussion
Feel free to reply below if you:
Notice unexpected LOC changes、Want to add/remove repositories in the statistics、Want new metrics added to the report、Need charts or visualized trends、Encounter issues with the automation workflow
Beta Was this translation helpful? Give feedback.
All reactions