← Back to plugins index |
|
This plugin displays a random code snippet from recent activity history.
⚠️ When improperly configured, this plugin could display private code.
If you work with sensitive data or company code, it is advised to keep this plugin disabled.
Use at your own risk, metrics and its authors cannot be held responsible for any resulting code leaks.
|
Supported features → Full specification |
📗 Classic template |
👤 Users 👥 Organizations |
🔑 (scopeless) read:org (optional) read:user (optional) read:packages (optional) repo (optional) |
|
Option | Description |
|
Enable code plugin
![]() |
type: boolean
default: no
|
|
Display limit (lines per code snippets)
![]() |
type: number
(1 ≤
𝑥
≤ 128)
default: 12
|
|
Events to load
![]() |
type: number
(100 ≤
𝑥
≤ 1000)
default: 400
|
|
Events maximum age
![]() |
type: number
(0 ≤
𝑥
≤ 365)
zero behaviour: disable
default: 3
|
|
Events visibility
Can be used to toggle private activity visibility when using a token with repo scope
![]() |
type: string
default: public
allowed values: |
|
Skipped repositories
![]() |
⏩ Inherits repositories_skipped
type: array
(comma-separated)
|
|
Showcased languages
![]() |
type: array
(comma-separated)
|
name: JavaScript or TypeScript snippet of the day
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.code.svg
token: ${{ secrets.METRICS_TOKEN }}
base: ""
plugin_code: yes
plugin_code_languages: javascript, typescript
plugin_code_load: 400