♐ 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) repo (optional) |
|
|
|
|
➡️ Available options
| Type | Description |
plugin_code |
Enable code plugin |
type: boolean
default: no |
|
plugin_code_lines |
Display limit for code snippets |
type: number
default: 12 |
|
plugin_code_load |
Events to load |
type: number
(100 ≤
𝑥
≤ 1000)
default: 100 |
|
plugin_code_visibility |
Events visibility Lets you hide private activity when using a |
type: string
default: public allowed values:
|
|
plugin_code_skipped |
Skipped repositories |
⏩ Inherits repositories_skippedtype: array
(comma-separated)
|
|
plugin_code_languages |
Restrict display to specific languages |
🌐 Web instances must configure settings.jsontype: 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