Skip to content

Metrics

Metrics #21075

Workflow file for this run

# Visit https://github.com/lowlighter/metrics#-documentation for full reference
name: Metrics
on:
# Schedule updates (each hour)
schedule: [{cron: "0 * * * *"}]
# 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: hrxiaohu
template: classic
base: header, activity, community, repositories, metadata
config_timezone: Asia/Shanghai
plugin_activity: yes
plugin_activity_days: 14
plugin_activity_filter: all
plugin_activity_limit: 5
plugin_activity_load: 300
plugin_activity_visibility: all
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_isocalendar: yes
plugin_isocalendar_duration: half-year
plugin_languages: yes
plugin_languages_analysis_timeout: 15
plugin_languages_categories: markup, programming
plugin_languages_colors: github
plugin_languages_limit: 8
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%
plugin_topics: yes
plugin_topics_limit: 0
plugin_topics_mode: icons
plugin_wakatime: yes
plugin_wakatime_sections: time, projects, projects-graphs, languages, languages-graphs, editors, os
plugin_wakatime_token: ${{ secrets.WAKATIME_API_KEY }}
plugin_licenses: yes
plugin_licenses_setup: npm ci
plugin_licenses_legal: yes
plugin_licenses_ratio: yes