♐ Code snippet of the day
⚠️ 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. Metrics and its authors cannot be held responsible for any resulting code leaks, use at your own risk.
Display a random code snippet from your recent activity history.
|
|
➡️ Available options
| Type | Description |
plugin_code |
Display a random code snippet from recent activity |
type: boolean
default: no |
|
plugin_code_lines |
Maximum number of line that a code snippet can contain |
type: number
default: 12 |
|
plugin_code_load |
Number of events to load |
type: number
(100 ≤
𝑥
≤ 1000)
default: 100 |
|
plugin_code_visibility |
Set events visibility |
type: string
default: public allowed values:
|
|
plugin_code_skipped |
Repositories to skip |
⏩ Inherits repositories_skippedtype: array
(comma-separated)
|
|
plugin_code_languages |
Restrict code snippet languages |
type: array
(comma-separated)
|
ℹ️ Examples workflows
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