← Back to plugins index

👨‍đŸ’ģ Lines of code changed

This plugin displays the number of lines of code added and removed across repositories.

Supported features
→ Full specification
📗 Classic template 📘 Repository template 📙 Terminal template
👤 Users đŸ‘Ĩ Organizations 📓 Repositories
🔑 (scopeless) read:org (optional) read:user (optional) read:packages (optional) repo (optional)
Repositories and diff history
Compact display in base plugin
## âžĄī¸ Available options
OptionDescription

plugin_lines

Enable lines plugin

type: boolean
default: no

plugin_lines_skipped

Skipped repositories

⏊ Inherits repositories_skipped
type: array (comma-separated)

plugin_lines_sections

Displayed sections

  • base will display the total lines added and removed in base.repositories section
  • repositories will display repositories with the most lines added and removed
  • history will display a graph displaying lines added and removed over time
✨ On master/main
type: array (comma-separated)
default: base
allowed values:
  • base
  • repositories
  • history

plugin_lines_repositories_limit

Display limit

✨ On master/main
type: number (0 ≤ đ‘Ĩ)
default: 4

plugin_lines_history_limit

Years to display

Will display the last n years, relative to current year

✨ On master/main
type: number
zero behaviour: disable
default: 1
## â„šī¸ Examples workflows ```yaml 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 ``` ```yaml 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_sections: repositories, history plugin_lines_repositories_limit: 2 plugin_lines_history_limit: 1 ```