4.4 KiB
| ← Back to plugins index | |
♐ Random code snippet | |
|---|---|
This plugin displays a random code snippet from recent activity history. | |
| ⚠️ Disclaimer | This plugin is not affiliated, associated, authorized, endorsed by, or in any way officially connected with GitHub. All product and company names are trademarks™ or registered® trademarks of their respective holders. |
| ℹ Additional notes |
|
| 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 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 |
type: string
default: public allowed values:
|
|
|
Skipped repositories |
⏩ Inherits repositories_skippedtype: array
(comma-separated)
|
|
|
Showcased 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