Skip to content

Files

Latest commit

 

History

History
130 lines (116 loc) · 3.93 KB

README.md

File metadata and controls

130 lines (116 loc) · 3.93 KB

💡 Coding habits

The coding habits plugin display metrics based on your recent activity, such as active hours or languages recently used.

Recent activity charts
Midly interesting facts

Using more events will improve accuracy of these metrics, although it'll increase the number of GitHub requests used.

Active hours and days are computed through your commit history, while indent style is deduced from your recent diffs. Recent languages activity is also computed from your recent diffs, using github/linguist.

Use a full repo scope token to access private events.

By default, dates use Greenwich meridian (GMT/UTC). Be sure to set your timezone (see here for a list of supported timezones) for accurate metrics.

🔣 On web instances, recent languages activity is an extra feature and must be enabled globally in settings.json

➡️ Available options

TypeDescription
plugin_habits Display coding habits metrics
type: boolean
default: no
plugin_habits_from Number of events to use
type: number (1 ≤ 𝑥 ≤ 1000)
default: 200
plugin_habits_days Maximum event age
type: number (1 ≤ 𝑥 ≤ 30)
default: 14
plugin_habits_facts Display coding habits collected facts based on recent activity
type: boolean
default: yes
plugin_habits_charts Display coding habits charts based on recent activity
🌐 Web instances must configure settings.json
type: boolean
default: no
plugin_habits_trim Trim unused hours on daily chart
type: boolean
default: no

→ Full specification

ℹ️ Examples workflows

name: Midly interesting facts
uses: lowlighter/metrics@latest
with:
  filename: metrics.plugin.habits.facts.svg
  token: ${{ secrets.METRICS_TOKEN }}
  base: ''
  plugin_habits: 'yes'
  plugin_habits_facts: 'yes'
  plugin_habits_charts: 'no'
  config_timezone: Europe/Paris
name: Recent activity charts
uses: lowlighter/metrics@latest
with:
  filename: metrics.plugin.habits.charts.svg
  token: ${{ secrets.METRICS_TOKEN }}
  base: ''
  plugin_habits: 'yes'
  plugin_habits_facts: 'no'
  plugin_habits_charts: 'yes'
  config_timezone: Europe/Paris