source/plugins/lines/README.md
</td>
<b>default:</b> no
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_lines_skipped</code></h4></td> <td rowspan="2"><p>Skipped repositories</p> </td> </tr> <tr> <td nowrap="nowrap">⏩ Inherits <code>repositories_skipped</code><b>type:</b> <code>array</code> <i>(newline-separated)</i>
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_lines_sections</code></h4></td> <td rowspan="2"><p>Displayed sections</p> <ul> <li><code>base</code> will display the total lines added and removed in <code>base.repositories</code> section</li> <li><code>repositories</code> will display repositories with the most lines added and removed</li> <li><code>history</code> will display a graph displaying lines added and removed over time</li> </ul> <blockquote> <p>ℹ️ <code>base</code> requires at least <a href="/source/plugins/base/README.md#base"><code>base: repositories</code></a> to be set</p> </blockquote> </td> </tr> <tr> <td nowrap="nowrap"><b>type:</b> <code>array</code> <i>(comma-separated)</i><b>default:</b> base
<b>allowed values:</b><ul><li>base</li><li>repositories</li><li>history</li></ul></td>
</tr> <tr> <td nowrap="nowrap"><h4><code>plugin_lines_repositories_limit</code></h4></td> <td rowspan="2"><p>Display limit</p> </td> </tr> <tr> <td nowrap="nowrap"><b>type:</b> <code>number</code> <i>(0 ≤ 𝑥)</i><b>default:</b> 4
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_lines_history_limit</code></h4></td> <td rowspan="2"><p>Years to display</p> <p>Will display the last <code>n</code> years, relative to current year</p> </td> </tr> <tr> <td nowrap="nowrap"><b>type:</b> <code>number</code><b>zero behaviour:</b> disable</br> <b>default:</b> 1
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_lines_delay</code></h4></td> <td rowspan="2"><p>Delay before performing a second query</p> <p>When non-zero, will perform a second query after specified delay (in seconds). The GitHub endpoint used may return inaccurate results on first query (these values seems to be cached on the fly), after returning correct results upon performing another query.</p> <p>Using this option may mitigate the occurrence of weird values.</p> </td> </tr> <tr> <td nowrap="nowrap"><b>type:</b> <code>number</code> <i>(0 ≤ 𝑥)</i><b>zero behaviour:</b> disable</br> <b>default:</b> 0
</td> </tr> </table> <!--/options-->name: Compact display in base plugin
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.lines.svg
token: ${{ secrets.METRICS_TOKEN }}
base: repositories
plugin_lines: yes
plugin_lines_delay: 30
name: Repositories and diff history
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.lines.history.svg
token: ${{ secrets.METRICS_TOKEN }}
base: ""
plugin_lines: yes
plugin_lines_delay: 30
plugin_lines_sections: repositories, history
plugin_lines_repositories_limit: 2
plugin_lines_history_limit: 1
repositories_skipped: |
@use.patterns
*/*
+lowlighter/metrics