4.0 KiB
4.0 KiB
♐ Code snippet of the day | |
|---|---|
This plugin displays a random code snippet from your recent activity history.
| |
| Supported features → Full specification |
📗 Classic template |
👤 Users 👥 Organizations |
|
🔑 (scopeless) read:org (optional) read:user (optional) read:packages (optional) repo (optional) |
|
|
|
|
➡️ Available options
| Type | Description |
|
Enable code plugin |
type: boolean
default: no |
|
|
Display limit for code snippets |
type: number
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 Lets you hide private activity when using a |
type: string
default: public allowed values:
|
|
|
Skipped repositories |
⏩ Inherits repositories_skippedtype: array
(comma-separated)
|
|
|
Restrict display to specific 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