5.7 KiB
| ← Back to plugins index | |
💡 Coding habits and activity | |
|---|---|
This plugin displays coding habits based on recent activity, such as active hours and languages recently used. | |
| Supported features → Full specification |
📗 Classic template |
👤 Users 👥 Organizations |
|
🔑 (scopeless) read:org (optional) read:user (optional) read:packages (optional) repo (optional) |
|
|
|
|
➡️ Available options
| Option | Description |
|
Enable habits plugin |
type: boolean
default: no |
|
|
Events to use A higher number will increase stats accuracy |
type: number
(1 ≤
𝑥
≤ 1000)
default: 200 |
|
|
Event maximum age |
type: number
(1 ≤
𝑥
≤ 30)
default: 14 |
|
|
Midly interesting facts It includes indentation type, average number of characters per line of code, and most active time and day |
type: boolean
default: yes |
|
|
Charts It includes commit activity per hour of day and commit activity per day of week Recent language activity may also displayed (it requires extras features to be enabled for web instances) for historical reasons |
🌐 Web instances must configure settings.json:
boolean
default: no |
|
|
Charts display type
|
🌐 Web instances must configure settings.json:
string
default: classic allowed values:
|
|
|
Trim unused hours on charts |
type: boolean
default: no |
|
|
Display limit (languages) |
type: number
(0 ≤
𝑥
≤ 8)
zero behaviour: disable default: 8 |
🌐 Configure used timezone
By default, dates use Greenwich meridian (GMT/UTC).
Configure config_timezone (see supported timezone) to avoid time offsets.
Example: configuring timezone
- uses: lowlighter/metrics@latest
with:
config_timezone: Europe/Paris
ℹ️ 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