Compare commits

..
154 Commits
Author SHA1 Message Date
github-actions[bot] 860ecf20c8 Update languages.svg - [Skip GitHub Action] 2026-07-25 02:24:20 +00:00
github-actions[bot]andGitHub ada7543aec Update github-metrics.svg - [Skip GitHub Action] 2026-07-25 01:57:59 +00:00
github-actions[bot] 166ae5e6ae Update languages.svg - [Skip GitHub Action] 2026-07-24 02:25:32 +00:00
github-actions[bot]andGitHub f7e274c75e Update github-metrics.svg - [Skip GitHub Action] 2026-07-24 01:58:30 +00:00
github-actions[bot]andGitHub 9b7748d5a6 Update github-metrics.svg - [Skip GitHub Action] 2026-07-23 02:03:28 +00:00
github-actions[bot]andGitHub e5fc2760a1 Update github-metrics.svg - [Skip GitHub Action] 2026-07-22 01:55:27 +00:00
github-actions[bot] 3280bd5a2d Update languages.svg - [Skip GitHub Action] 2026-07-21 02:25:07 +00:00
github-actions[bot]andGitHub 191b672c8d Update github-metrics.svg - [Skip GitHub Action] 2026-07-21 01:56:47 +00:00
github-actions[bot] 5569e03b38 Update languages.svg - [Skip GitHub Action] 2026-07-20 02:41:58 +00:00
github-actions[bot]andGitHub d45f761bb8 Update github-metrics.svg - [Skip GitHub Action] 2026-07-20 02:13:42 +00:00
github-actions[bot]andGitHub 6a6ebdbcff Update github-metrics.svg - [Skip GitHub Action] 2026-07-19 01:57:38 +00:00
github-actions[bot] e1b57d1995 Update languages.svg - [Skip GitHub Action] 2026-07-18 02:09:06 +00:00
github-actions[bot]andGitHub 9edc33ce6b Update github-metrics.svg - [Skip GitHub Action] 2026-07-18 01:48:38 +00:00
github-actions[bot]andGitHub 4a7c1b1065 Update github-metrics.svg - [Skip GitHub Action] 2026-07-17 01:58:31 +00:00
github-actions[bot]andGitHub f56468bd1c Update github-metrics.svg - [Skip GitHub Action] 2026-07-16 01:54:41 +00:00
github-actions[bot]andGitHub bac6c875f4 Update github-metrics.svg - [Skip GitHub Action] 2026-07-15 01:44:45 +00:00
github-actions[bot] 6498f69ded Update languages.svg - [Skip GitHub Action] 2026-07-14 02:10:13 +00:00
github-actions[bot]andGitHub e6ac11604a Update github-metrics.svg - [Skip GitHub Action] 2026-07-14 01:48:24 +00:00
github-actions[bot]andGitHub ce72840b37 Update github-metrics.svg - [Skip GitHub Action] 2026-07-13 02:01:27 +00:00
github-actions[bot]andGitHub dbe2a7c303 Update github-metrics.svg - [Skip GitHub Action] 2026-07-12 01:59:44 +00:00
github-actions[bot]andGitHub c6d904ff4b Update github-metrics.svg - [Skip GitHub Action] 2026-07-11 01:56:28 +00:00
github-actions[bot]andGitHub ee7b6158df Update github-metrics.svg - [Skip GitHub Action] 2026-07-10 02:10:33 +00:00
github-actions[bot]andGitHub f07813ca7b Update github-metrics.svg - [Skip GitHub Action] 2026-07-09 02:10:45 +00:00
github-actions[bot] 9a1c5c0135 Update languages.svg - [Skip GitHub Action] 2026-07-08 02:26:49 +00:00
github-actions[bot]andGitHub be38a8e874 Update github-metrics.svg - [Skip GitHub Action] 2026-07-08 01:58:06 +00:00
github-actions[bot]andGitHub f226391ebf Update github-metrics.svg - [Skip GitHub Action] 2026-07-07 02:24:46 +00:00
github-actions[bot] b4709a39e0 Update languages.svg - [Skip GitHub Action] 2026-07-06 02:54:39 +00:00
github-actions[bot]andGitHub 5aa40cd07a Update github-metrics.svg - [Skip GitHub Action] 2026-07-06 02:29:02 +00:00
github-actions[bot] b7510107a1 Update languages.svg - [Skip GitHub Action] 2026-07-05 02:48:27 +00:00
github-actions[bot]andGitHub 4a8e4e7787 Update github-metrics.svg - [Skip GitHub Action] 2026-07-05 02:24:24 +00:00
github-actions[bot]andGitHub ce8452a183 Update github-metrics.svg - [Skip GitHub Action] 2026-07-04 02:08:46 +00:00
github-actions[bot] 099704ed97 Update languages.svg - [Skip GitHub Action] 2026-07-03 02:41:54 +00:00
github-actions[bot]andGitHub 2ac7d6024d Update github-metrics.svg - [Skip GitHub Action] 2026-07-03 02:10:40 +00:00
github-actions[bot]andGitHub 2512a4b9e2 Update github-metrics.svg - [Skip GitHub Action] 2026-07-02 02:35:32 +00:00
github-actions[bot] 582a77d74e Update languages.svg - [Skip GitHub Action] 2026-07-01 03:33:01 +00:00
github-actions[bot]andGitHub 42aab2fd52 Update github-metrics.svg - [Skip GitHub Action] 2026-07-01 02:45:57 +00:00
github-actions[bot] f54c0c1603 Update languages.svg - [Skip GitHub Action] 2026-06-30 03:24:35 +00:00
github-actions[bot]andGitHub 1c025980f6 Update github-metrics.svg - [Skip GitHub Action] 2026-06-30 02:39:38 +00:00
github-actions[bot] 6c13b0b099 Update languages.svg - [Skip GitHub Action] 2026-06-29 03:37:18 +00:00
github-actions[bot]andGitHub 3276bcfd24 Update github-metrics.svg - [Skip GitHub Action] 2026-06-29 02:45:24 +00:00
github-actions[bot]andGitHub 935d4e75f3 Update github-metrics.svg - [Skip GitHub Action] 2026-06-28 02:44:50 +00:00
github-actions[bot]andGitHub 5ac5980eff Update github-metrics.svg - [Skip GitHub Action] 2026-06-27 02:32:16 +00:00
github-actions[bot] a8d00f62b4 Update languages.svg - [Skip GitHub Action] 2026-06-26 03:25:54 +00:00
github-actions[bot]andGitHub dcefcb311e Update github-metrics.svg - [Skip GitHub Action] 2026-06-26 02:39:10 +00:00
github-actions[bot]andGitHub 533dd7d715 Update github-metrics.svg - [Skip GitHub Action] 2026-06-25 02:36:36 +00:00
github-actions[bot]andGitHub 3462b56a41 Update github-metrics.svg - [Skip GitHub Action] 2026-06-24 02:35:23 +00:00
github-actions[bot]andGitHub 20c9166539 Update github-metrics.svg - [Skip GitHub Action] 2026-06-23 02:34:27 +00:00
github-actions[bot]andGitHub f2c55e2eca Update github-metrics.svg - [Skip GitHub Action] 2026-06-22 02:59:15 +00:00
github-actions[bot] 1708787d63 Update languages.svg - [Skip GitHub Action] 2026-06-21 03:55:02 +00:00
github-actions[bot]andGitHub 64172269a2 Update github-metrics.svg - [Skip GitHub Action] 2026-06-21 02:56:40 +00:00
github-actions[bot] 554da1bb9a Update languages.svg - [Skip GitHub Action] 2026-06-20 03:25:10 +00:00
github-actions[bot]andGitHub c2d087af01 Update github-metrics.svg - [Skip GitHub Action] 2026-06-20 02:40:23 +00:00
github-actions[bot] 18958b0723 Update languages.svg - [Skip GitHub Action] 2026-06-19 04:02:37 +00:00
github-actions[bot]andGitHub 884fb7b896 Update github-metrics.svg - [Skip GitHub Action] 2026-06-19 03:36:30 +00:00
github-actions[bot]andGitHub 052b37aee0 Update github-metrics.svg - [Skip GitHub Action] 2026-06-18 02:51:01 +00:00
github-actions[bot]andGitHub 6f6b5f4434 Update github-metrics.svg - [Skip GitHub Action] 2026-06-17 02:55:52 +00:00
github-actions[bot]andGitHub 9785250503 Update github-metrics.svg - [Skip GitHub Action] 2026-06-16 02:58:46 +00:00
github-actions[bot]andGitHub 1471714f8c Update github-metrics.svg - [Skip GitHub Action] 2026-06-15 02:58:08 +00:00
github-actions[bot]andGitHub 1a051fac31 Update github-metrics.svg - [Skip GitHub Action] 2026-06-14 02:53:15 +00:00
github-actions[bot] 06a581f9bf Update languages.svg - [Skip GitHub Action] 2026-06-13 03:28:40 +00:00
github-actions[bot]andGitHub b00938af6f Update github-metrics.svg - [Skip GitHub Action] 2026-06-13 02:41:22 +00:00
github-actions[bot] 356705a2fc Update languages.svg - [Skip GitHub Action] 2026-06-09 02:51:25 +00:00
github-actions[bot]andGitHub 4beab41463 Update github-metrics.svg - [Skip GitHub Action] 2026-06-08 02:51:53 +00:00
github-actions[bot]andGitHub 82321f68da Update github-metrics.svg - [Skip GitHub Action] 2026-06-07 02:48:44 +00:00
github-actions[bot]andGitHub 38287b0f51 Update github-metrics.svg - [Skip GitHub Action] 2026-06-06 02:30:24 +00:00
github-actions[bot]andGitHub 9b26a934df Update github-metrics.svg - [Skip GitHub Action] 2026-06-05 02:42:39 +00:00
github-actions[bot]andGitHub d3a8828032 Update github-metrics.svg - [Skip GitHub Action] 2026-06-04 02:55:21 +00:00
github-actions[bot]andGitHub 6bed6c34c1 Update github-metrics.svg - [Skip GitHub Action] 2026-06-03 02:59:55 +00:00
github-actions[bot]andGitHub 218fb28032 Update github-metrics.svg - [Skip GitHub Action] 2026-06-02 02:50:52 +00:00
github-actions[bot]andGitHub 50312a0a75 Update github-metrics.svg - [Skip GitHub Action] 2026-06-01 02:53:47 +00:00
github-actions[bot]andGitHub 38688594b8 Update github-metrics.svg - [Skip GitHub Action] 2026-05-31 02:45:02 +00:00
github-actions[bot]andGitHub f825a42fa8 Update github-metrics.svg - [Skip GitHub Action] 2026-05-30 02:28:53 +00:00
github-actions[bot]andGitHub 5767c7199c Update github-metrics.svg - [Skip GitHub Action] 2026-05-29 02:34:36 +00:00
github-actions[bot]andGitHub 85e92f4093 Update github-metrics.svg - [Skip GitHub Action] 2026-05-28 02:30:10 +00:00
github-actions[bot]andGitHub 1e9a199a09 Update github-metrics.svg - [Skip GitHub Action] 2026-05-27 02:43:12 +00:00
github-actions[bot]andGitHub 62d802c570 Update github-metrics.svg - [Skip GitHub Action] 2026-05-26 02:33:34 +00:00
github-actions[bot]andGitHub c539e3908c Update github-metrics.svg - [Skip GitHub Action] 2026-05-25 02:44:22 +00:00
github-actions[bot]andGitHub fb6092ddec Update github-metrics.svg - [Skip GitHub Action] 2026-05-24 02:35:40 +00:00
github-actions[bot]andGitHub d529831039 Update github-metrics.svg - [Skip GitHub Action] 2026-05-23 02:26:06 +00:00
github-actions[bot]andGitHub 7e2e7dccc5 Update github-metrics.svg - [Skip GitHub Action] 2026-05-22 02:40:19 +00:00
github-actions[bot]andGitHub e1aa9ab1c8 Update github-metrics.svg - [Skip GitHub Action] 2026-05-21 02:38:47 +00:00
github-actions[bot]andGitHub d2f081896d Update github-metrics.svg - [Skip GitHub Action] 2026-05-20 02:37:18 +00:00
github-actions[bot]andGitHub ec66c6c847 Update github-metrics.svg - [Skip GitHub Action] 2026-05-19 02:36:50 +00:00
github-actions[bot]andGitHub 9465bb53f4 Update github-metrics.svg - [Skip GitHub Action] 2026-05-18 02:38:35 +00:00
github-actions[bot]andGitHub 17a8fb9d39 Update github-metrics.svg - [Skip GitHub Action] 2026-05-17 02:28:16 +00:00
github-actions[bot]andGitHub c2247b4a93 Update github-metrics.svg - [Skip GitHub Action] 2026-05-16 02:13:05 +00:00
Dmitri ShimanskiandGitHub d8bc470e8c Update languages.yml 2026-05-16 01:00:44 +03:00
Dmitri ShimanskiandGitHub 87735063d0 Update metrics.yaml 2026-05-16 01:00:32 +03:00
github-actions[bot]andGitHub 3cc50d513d Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 21:58:12 +00:00
Dmitrii 3d6018bae8 fix: quote steam user ID to prevent YAML float conversion 2026-05-16 00:56:50 +03:00
github-actions[bot]andGitHub 9201c41e04 Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 21:47:18 +00:00
Dmitri ShimanskiandGitHub 92618fb558 Create metrics.yaml 2026-05-16 00:46:00 +03:00
github-actions[bot] b9dfb8fd2c Update languages.svg - [Skip GitHub Action] 2026-05-15 21:41:11 +00:00
Dmitrii 1fe8ef36f4 fix: skip mt7902_temp repo and ignore GLSL/SCSS 2026-05-16 00:40:26 +03:00
github-actions[bot] 7849e000a9 Update languages.svg - [Skip GitHub Action] 2026-05-15 21:39:44 +00:00
github-actions[bot]andGitHub ae78e2e33b Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 21:39:02 +00:00
Dmitrii c5b76128c4 fix: ignore C and SCSS languages 2026-05-16 00:38:53 +03:00
Dmitri ShimanskiandGitHub f3cb2924ed Delete .github/workflows/blank.yml 2026-05-16 00:37:44 +03:00
github-actions[bot] 142d7748e6 Update languages.svg - [Skip GitHub Action] 2026-05-15 21:37:30 +00:00
Dmitrii 37c0506adf fix: fetch all repos dynamically via API instead of hardcoding 2026-05-16 00:36:42 +03:00
github-actions[bot]andGitHub 4b1311de81 Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 21:35:31 +00:00
Dmitrii 24d9c6569c feat: add language stats SVG to README 2026-05-16 00:34:40 +03:00
github-actions[bot] 8bae1508dc Update languages.svg - [Skip GitHub Action] 2026-05-15 21:34:06 +00:00
Dmitrii 89e9e67b8e feat: add language stats workflow using GitHub API 2026-05-16 00:33:31 +03:00
github-actions[bot]andGitHub 314a789a74 Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 21:30:30 +00:00
Dmitrii b4abc64d2f fix: ignore html/css/cmake/dockerfile and increase language limit to 12 2026-05-16 00:28:01 +03:00
github-actions[bot]andGitHub 65e54a1562 Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 21:26:56 +00:00
Dmitrii cf736a09a2 fix: disable other category to show only recognized languages 2026-05-16 00:24:53 +03:00
github-actions[bot]andGitHub 8ed79bc9c5 Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 21:24:22 +00:00
Dmitrii 39d60eb61c fix: add all repositories to indepth_custom for full language analysis 2026-05-16 00:22:08 +03:00
github-actions[bot]andGitHub ef9f4f6c96 Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 21:21:10 +00:00
Dmitrii a0213fade5 fix: add explicit repo list for indepth language analysis 2026-05-16 00:19:10 +03:00
github-actions[bot]andGitHub 55861f78ed Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 21:17:50 +00:00
Dmitrii b369c6230a fix: enable indepth with max recent_load to analyze full commit history 2026-05-16 00:15:40 +03:00
github-actions[bot]andGitHub 266a436926 Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 21:14:30 +00:00
Dmitrii 08e990cca5 fix: disable indepth mode to use linguist data from all repositories 2026-05-16 00:12:53 +03:00
github-actions[bot]andGitHub bcf89d63e8 Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 21:12:17 +00:00
github-actions[bot]andGitHub c1210769d5 Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 21:09:14 +00:00
github-actions[bot]andGitHub a593b8ab06 Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 21:01:41 +00:00
Dmitrii 06bdb2e4cf fix: restore repositories_affiliations and increase timeouts for language analysis 2026-05-15 23:59:39 +03:00
github-actions[bot]andGitHub bde67e66ea Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 20:58:21 +00:00
Dmitrii f30d34696a fix: remove recently-used section to fix committer crash 2026-05-15 23:57:02 +03:00
Dmitri ShimanskiandGitHub cda2de20cd Update blank.yml 2026-05-15 23:53:26 +03:00
github-actions[bot]andGitHub 984f8f6696 Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 20:37:53 +00:00
Dmitrii 49926184f9 fix: increase language analysis timeouts to analyze all repositories 2026-05-15 23:35:44 +03:00
github-actions[bot]andGitHub 7cf9c04f1f Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 20:33:24 +00:00
DmitriiandClaude Sonnet 4 fc0125ae98 fix: revert to most-used only, recently-used crashes on metrics@latest
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-05-15 23:31:26 +03:00
DmitriiandClaude Sonnet 4 338a998bcd fix: enable indepth language analysis and add recently-used section
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-05-15 23:29:30 +03:00
github-actions[bot]andGitHub ae235602b5 Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 20:24:27 +00:00
Dmitri ShimanskiandGitHub 611f240da1 Update blank.yml 2026-05-15 23:23:06 +03:00
github-actions[bot]andGitHub 3a29a4fb5b Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 20:21:39 +00:00
Dmitri ShimanskiandGitHub f6af995725 Update blank.yml 2026-05-15 23:19:49 +03:00
github-actions[bot]andGitHub 75c3c95ae3 Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 20:17:36 +00:00
Dmitri ShimanskiandGitHub 236f335ab7 Update blank.yml 2026-05-15 23:15:41 +03:00
github-actions[bot]andGitHub 299cc57f20 Update github-metrics.svg - [Skip GitHub Action] 2026-05-15 14:09:36 +00:00
github-actions[bot]andGitHub f067469e8c Update github-metrics.svg - [Skip GitHub Action] 2026-05-14 14:15:12 +00:00
github-actions[bot]andGitHub a1e2a102f6 Update github-metrics.svg - [Skip GitHub Action] 2026-05-13 14:37:23 +00:00
github-actions[bot]andGitHub 2e6b860b63 Update github-metrics.svg - [Skip GitHub Action] 2026-05-12 14:28:48 +00:00
github-actions[bot]andGitHub 40ff611b82 Update github-metrics.svg - [Skip GitHub Action] 2026-05-11 14:55:33 +00:00
github-actions[bot]andGitHub 290466d786 Update github-metrics.svg - [Skip GitHub Action] 2026-05-10 13:21:15 +00:00
github-actions[bot]andGitHub 66a6132ab3 Update github-metrics.svg - [Skip GitHub Action] 2026-05-09 13:20:52 +00:00
github-actions[bot]andGitHub 5ef043c910 Update github-metrics.svg - [Skip GitHub Action] 2026-05-08 13:51:20 +00:00
github-actions[bot]andGitHub cb4733f82e Update github-metrics.svg - [Skip GitHub Action] 2026-05-07 14:12:20 +00:00
github-actions[bot]andGitHub de41c7a9b9 Update github-metrics.svg - [Skip GitHub Action] 2026-05-06 14:14:22 +00:00
github-actions[bot]andGitHub f6a8ecd60c Update github-metrics.svg - [Skip GitHub Action] 2026-05-05 13:58:00 +00:00
github-actions[bot]andGitHub c0f5e8fd94 Update github-metrics.svg - [Skip GitHub Action] 2026-05-04 14:04:33 +00:00
github-actions[bot]andGitHub aed5652161 Update github-metrics.svg - [Skip GitHub Action] 2026-05-03 13:14:14 +00:00
github-actions[bot]andGitHub 812fcb5e4e Update github-metrics.svg - [Skip GitHub Action] 2026-05-02 13:15:09 +00:00
github-actions[bot]andGitHub 0aec5a3b82 Update github-metrics.svg - [Skip GitHub Action] 2026-05-01 13:21:34 +00:00
github-actions[bot]andGitHub 4c19254fe3 Update github-metrics.svg - [Skip GitHub Action] 2026-04-30 13:59:20 +00:00
github-actions[bot]andGitHub 4244f874e1 Update github-metrics.svg - [Skip GitHub Action] 2026-04-29 14:00:21 +00:00
github-actions[bot]andGitHub 53768bfde7 Update github-metrics.svg - [Skip GitHub Action] 2026-04-28 14:10:30 +00:00
github-actions[bot]andGitHub dc73aa6b68 Update github-metrics.svg - [Skip GitHub Action] 2026-04-27 13:57:16 +00:00
github-actions[bot]andGitHub 57e2b091ac Update github-metrics.svg - [Skip GitHub Action] 2026-04-26 13:10:33 +00:00
6 changed files with 359 additions and 97 deletions
-54
View File
@@ -1,54 +0,0 @@
# Visit https://github.com/lowlighter/metrics#-documentation for full reference
name: Metrics
on:
# Schedule updates (each hour)
schedule: [{cron: "0 12 * * *"}]
# Lines below let you run workflow manually and on each commit
workflow_dispatch:
push: {branches: ["master", "main"]}
jobs:
github-metrics:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: lowlighter/metrics@latest
with:
# Your GitHub token
# The following scopes are required:
# - public_access (default scope)
# The following additional scopes may be required:
# - read:org (for organization related metrics)
# - read:user (for user related data)
# - read:packages (for some packages related data)
# - repo (optional, if you want to include private repositories)
token: ${{ secrets.METRICS_TOKEN }}
# Options
user: yawaflua
template: classic
base: header, activity, community, repositories, metadata
base_hireable: yes
config_timezone: Asia/Jerusalem
plugin_habits: yes
plugin_habits_charts_type: classic
plugin_habits_days: 14
plugin_habits_facts: yes
plugin_habits_from: 200
plugin_habits_languages_limit: 8
plugin_habits_languages_threshold: 0%
plugin_languages: yes
plugin_languages_analysis_timeout: 90
plugin_languages_analysis_timeout_repositories: 9.5
plugin_languages_categories: markup, programming
plugin_languages_colors: github
plugin_languages_details: percentage
plugin_languages_ignored: html, css, CMake
plugin_languages_limit: 10
plugin_languages_other: yes
plugin_languages_recent_categories: markup, programming
plugin_languages_recent_days: 14
plugin_languages_recent_load: 300
plugin_languages_sections: most-used
plugin_languages_threshold: 0%
repositories_affiliations: owner
+121
View File
@@ -0,0 +1,121 @@
name: Language Stats
on:
schedule: [{cron: "0 0 * * *"}]
workflow_dispatch:
jobs:
language-stats:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Generate language SVG
env:
GH_TOKEN: ${{ secrets.METRICS_TOKEN }}
run: |
python3 << 'EOF'
import urllib.request, json, math
token = "${{ secrets.METRICS_TOKEN }}"
headers = {"Authorization": f"Bearer {token}", "Accept": "application/vnd.github+json"}
def get_repos(url):
repos = []
while url:
req = urllib.request.Request(url, headers=headers)
with urllib.request.urlopen(req) as r:
repos += json.loads(r.read())
link = r.headers.get('Link', '')
url = None
for part in link.split(','):
if 'rel="next"' in part:
url = part.split(';')[0].strip().strip('<>')
return repos
# все репы пользователя
all_repos = []
all_repos += get_repos("https://api.github.com/user/repos?per_page=100&affiliation=owner,collaborator,organization_member&visibility=all")
repo_names = list({r['full_name'] for r in all_repos})
print(f"Found {len(repo_names)} repositories")
ignored = {'HTML', 'CSS', 'CMake', 'Dockerfile', 'Makefile', 'YAML', 'JSON',
'XML', 'Markdown', 'Text', 'SVG', 'Batchfile', 'PowerShell',
'EditorConfig', 'Ini', 'TOML', 'Nix', 'SCSS', 'GLSL'}
skipped_repos = {'yawaflua/mt7902_temp'}
colors = {
'C#': '#178600', 'C++': '#f34b7d', 'JavaScript': '#f1e05a',
'TypeScript': '#3178c6', 'Go': '#00ADD8', 'Python': '#3572A5',
'Java': '#b07219', 'Vue': '#41b883', 'Shell': '#89e051'
}
langs = {}
for repo in repo_names:
if repo in skipped_repos:
continue
try:
req = urllib.request.Request(f"https://api.github.com/repos/{repo}/languages", headers=headers)
with urllib.request.urlopen(req) as r:
data = json.loads(r.read())
for lang, bytes_ in data.items():
if lang not in ignored:
langs[lang] = langs.get(lang, 0) + bytes_
except Exception as e:
print(f"Skip {repo}: {e}")
langs = dict(sorted(langs.items(), key=lambda x: x[1], reverse=True)[:10])
total = sum(langs.values())
if total == 0:
print("No data")
exit(1)
bar_width = 448
row_h = 30
padding = 16
bar_h = 8
header_h = 44
height = header_h + bar_h + padding + math.ceil(len(langs) / 2) * row_h + padding * 2
svg = f'<svg xmlns="http://www.w3.org/2000/svg" width="480" height="{height}" style="font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;font-size:13px;">\n'
svg += f'<rect width="480" height="{height}" rx="6" fill="#fff" stroke="#e1e4e8"/>\n'
svg += f'<text x="16" y="28" font-size="15" font-weight="600" fill="#24292e">Most used languages</text>\n'
cx = 0
for lang, count in langs.items():
w = count / total * bar_width
color = colors.get(lang, '#ededed')
svg += f'<rect x="{16 + cx:.2f}" y="{header_h}" width="{w:.2f}" height="{bar_h}" fill="{color}"/>\n'
cx += w
for i, (lang, count) in enumerate(langs.items()):
col = i % 2
row = i // 2
lx = 16 + col * 232
ly = header_h + bar_h + padding + row * row_h + 14
pct = count / total * 100
color = colors.get(lang, '#ededed')
svg += f'<circle cx="{lx + 6}" cy="{ly - 4}" r="6" fill="{color}"/>\n'
svg += f'<text x="{lx + 18}" y="{ly}" fill="#24292e" font-size="12">{lang}</text>\n'
svg += f'<text x="{lx + 18}" y="{ly + 14}" fill="#586069" font-size="11">{pct:.1f}%</text>\n'
svg += '</svg>'
with open('languages.svg', 'w') as f:
f.write(svg)
print(f"Done: {len(langs)} languages, {total} bytes total")
for l, b in langs.items():
print(f" {l}: {b/total*100:.1f}%")
EOF
- name: Commit SVG
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add languages.svg
git diff --staged --quiet || git commit -m "Update languages.svg - [Skip GitHub Action]"
git push
+40
View File
@@ -0,0 +1,40 @@
# Visit https://github.com/lowlighter/metrics#-documentation for full reference
name: Metrics
on:
# Schedule updates (each hour)
schedule: [{cron: "0 0 * * *"}]
workflow_dispatch:
jobs:
github-metrics:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: lowlighter/metrics@latest
with:
# Your GitHub token
# The following scopes are required:
# - public_access (default scope)
# The following additional scopes may be required:
# - read:org (for organization related metrics)
# - read:user (for user related data)
# - read:packages (for some packages related data)
# - repo (optional, if you want to include private repositories)
token: ${{ secrets.METRICS_TOKEN }}
# Options
user: yawaflua
template: classic
base: header, activity, community, repositories, metadata
base_hireable: yes
base_indepth: yes
config_timezone: Asia/Jerusalem
plugin_steam: yes
plugin_steam_token: ${{ secrets.STEAM_TOKEN }}
plugin_steam_achievements_limit: 2
plugin_steam_games_limit: 1
plugin_steam_playtime_threshold: 2
plugin_steam_recent_games_limit: 1
plugin_steam_sections: player, most-played, recently-played
plugin_steam_user: "76561198810888396"
repositories_forks: yes
+2
View File
@@ -55,6 +55,8 @@ class AboutMe
![](https://raw.githubusercontent.com/yawaflua/yawaflua/main/github-metrics.svg)
![](https://raw.githubusercontent.com/yawaflua/yawaflua/main/languages.svg)
### 🌱 I am currently studying for the frontend frameworks, such as Vue.js, React
### 💼 Available for hire! Contact me in [Discord](https://discord.com/users/945317832290336798), [Telegram](https://t.me/yawaflua) or [e-mail](mailto:yawaflua.il@gmail.com)
+156 -43
View File
File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 95 KiB

+40
View File
@@ -0,0 +1,40 @@
<svg xmlns="http://www.w3.org/2000/svg" width="480" height="250" style="font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;font-size:13px;">
<rect width="480" height="250" rx="6" fill="#fff" stroke="#e1e4e8"/>
<text x="16" y="28" font-size="15" font-weight="600" fill="#24292e">Most used languages</text>
<rect x="16.00" y="44" width="162.30" height="8" fill="#178600"/>
<rect x="178.30" y="44" width="69.96" height="8" fill="#f34b7d"/>
<rect x="248.26" y="44" width="52.24" height="8" fill="#f1e05a"/>
<rect x="300.50" y="44" width="43.81" height="8" fill="#3572A5"/>
<rect x="344.31" y="44" width="41.65" height="8" fill="#3178c6"/>
<rect x="385.96" y="44" width="40.81" height="8" fill="#41b883"/>
<rect x="426.77" y="44" width="27.39" height="8" fill="#b07219"/>
<rect x="454.16" y="44" width="9.77" height="8" fill="#00ADD8"/>
<rect x="463.93" y="44" width="0.07" height="8" fill="#89e051"/>
<circle cx="22" cy="78" r="6" fill="#178600"/>
<text x="34" y="82" fill="#24292e" font-size="12">C#</text>
<text x="34" y="96" fill="#586069" font-size="11">36.2%</text>
<circle cx="254" cy="78" r="6" fill="#f34b7d"/>
<text x="266" y="82" fill="#24292e" font-size="12">C++</text>
<text x="266" y="96" fill="#586069" font-size="11">15.6%</text>
<circle cx="22" cy="108" r="6" fill="#f1e05a"/>
<text x="34" y="112" fill="#24292e" font-size="12">JavaScript</text>
<text x="34" y="126" fill="#586069" font-size="11">11.7%</text>
<circle cx="254" cy="108" r="6" fill="#3572A5"/>
<text x="266" y="112" fill="#24292e" font-size="12">Python</text>
<text x="266" y="126" fill="#586069" font-size="11">9.8%</text>
<circle cx="22" cy="138" r="6" fill="#3178c6"/>
<text x="34" y="142" fill="#24292e" font-size="12">TypeScript</text>
<text x="34" y="156" fill="#586069" font-size="11">9.3%</text>
<circle cx="254" cy="138" r="6" fill="#41b883"/>
<text x="266" y="142" fill="#24292e" font-size="12">Vue</text>
<text x="266" y="156" fill="#586069" font-size="11">9.1%</text>
<circle cx="22" cy="168" r="6" fill="#b07219"/>
<text x="34" y="172" fill="#24292e" font-size="12">Java</text>
<text x="34" y="186" fill="#586069" font-size="11">6.1%</text>
<circle cx="254" cy="168" r="6" fill="#00ADD8"/>
<text x="266" y="172" fill="#24292e" font-size="12">Go</text>
<text x="266" y="186" fill="#586069" font-size="11">2.2%</text>
<circle cx="22" cy="198" r="6" fill="#89e051"/>
<text x="34" y="202" fill="#24292e" font-size="12">Shell</text>
<text x="34" y="216" fill="#586069" font-size="11">0.0%</text>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB