diff --git a/.github/readme/partials/documentation/compatibility.md b/.github/readme/partials/documentation/compatibility.md index d1833e9c..9321dd3c 100644 --- a/.github/readme/partials/documentation/compatibility.md +++ b/.github/readme/partials/documentation/compatibility.md @@ -14,7 +14,7 @@ 🎟️ 🎭 🧑‍🤝‍🧑 - ✨ + ✨ 🗂️ ♐ 📰 @@ -212,7 +212,7 @@ 🎟️ 🎭 🧑‍🤝‍🧑 - ✨ + ✨ 🗂️ ♐ 📰 diff --git a/README.md b/README.md index 79c09736..df9ba175 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Generate metrics that can be embedded everywhere, including your GitHub profile -

🧩 Customizable with 40 plugins and 273 options!

+

🧩 Customizable with 40 plugins and 276 options!

@@ -104,7 +104,7 @@ Generate metrics that can be embedded everywhere, including your GitHub profile - ✨ Stargazers over last weeks + ✨ Stargazers 🗂️ GitHub projects @@ -169,7 +169,8 @@ Generate metrics that can be embedded everywhere, including your GitHub profile - +
Repositories and diff history
+
Compact display in base plugin
@@ -440,7 +441,7 @@ Plugins provide additional content and lets you customize rendered metrics. * [📓 Featured repositories `repositories`](/source/plugins/repositories/README.md) * [🌇 GitHub Skyline `skyline`](/source/plugins/skyline/README.md) * [💕 GitHub Sponsors `sponsors`](/source/plugins/sponsors/README.md) - * [✨ Stargazers over last weeks `stargazers`](/source/plugins/stargazers/README.md) + * [✨ Stargazers `stargazers`](/source/plugins/stargazers/README.md) * [💫 Star lists `starlists`](/source/plugins/starlists/README.md) * [🌟 Recently starred repositories `stars`](/source/plugins/stars/README.md) * [💭 GitHub Community Support `support`](/source/plugins/support/README.md) diff --git a/action.yml b/action.yml index c4deb93e..075c09ef 100644 --- a/action.yml +++ b/action.yml @@ -538,7 +538,7 @@ inputs: default: # ==================================================================================== - # ✨ Stargazers over last weeks + # ✨ Stargazers plugin_stargazers: description: Enable stargazers plugin @@ -748,6 +748,18 @@ inputs: description: Skipped repositories default: + plugin_lines_sections: + description: Displayed sections + default: + + plugin_lines_repositories_limit: + description: Display limit + default: + + plugin_lines_history_limit: + description: Years to display + default: + # ==================================================================================== # 🧮 Repositories traffic diff --git a/source/plugins/README.md b/source/plugins/README.md index 6d19ebf5..44429800 100644 --- a/source/plugins/README.md +++ b/source/plugins/README.md @@ -29,7 +29,7 @@ Plugins provide additional content and lets you customize rendered metrics. * [📓 Featured repositories `repositories`](/source/plugins/repositories/README.md) * [🌇 GitHub Skyline `skyline`](/source/plugins/skyline/README.md) * [💕 GitHub Sponsors `sponsors`](/source/plugins/sponsors/README.md) - * [✨ Stargazers over last weeks `stargazers`](/source/plugins/stargazers/README.md) + * [✨ Stargazers `stargazers`](/source/plugins/stargazers/README.md) * [💫 Star lists `starlists`](/source/plugins/starlists/README.md) * [🌟 Recently starred repositories `stars`](/source/plugins/stars/README.md) * [💭 GitHub Community Support `support`](/source/plugins/support/README.md) diff --git a/source/plugins/lines/README.md b/source/plugins/lines/README.md index 2725c9c0..171e85c0 100644 --- a/source/plugins/lines/README.md +++ b/source/plugins/lines/README.md @@ -16,7 +16,8 @@ - +
Repositories and diff history
+
Compact display in base plugin
@@ -51,6 +52,50 @@ (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
+ @@ -58,7 +103,7 @@ ```yaml -name: Lines of code changed +name: Compact display in base plugin uses: lowlighter/metrics@latest with: filename: metrics.plugin.lines.svg @@ -66,5 +111,18 @@ with: 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 + ``` diff --git a/source/plugins/stargazers/README.md b/source/plugins/stargazers/README.md index bad1f7d6..c868e0a2 100644 --- a/source/plugins/stargazers/README.md +++ b/source/plugins/stargazers/README.md @@ -1,8 +1,8 @@ - - + diff --git a/source/templates/classic/README.md b/source/templates/classic/README.md index 8cc57925..baf657ea 100644 --- a/source/templates/classic/README.md +++ b/source/templates/classic/README.md @@ -7,7 +7,7 @@ This is also the default template.

- + diff --git a/source/templates/repository/README.md b/source/templates/repository/README.md index 5dd04bdf..c6c86d86 100644 --- a/source/templates/repository/README.md +++ b/source/templates/repository/README.md @@ -6,7 +6,7 @@ - +
← Back to plugins index

✨ Stargazers over last weeks

This plugin displays stargazers evolution across affiliated repositories over the last two weeks.

+

✨ Stargazers

This plugin displays stargazers evolution across affiliated repositories.

Supported features
→ Full specification
Supported features
→ Full specification
🏆 📰 🌸 📆 🥠 💉 💩 📸 💹 💬 🎟️ 🎫 💡 🙋 📅 🈷️ 👨‍💻 🎼 🎩 ⏱️ 🧑‍🤝‍🧑 ✒️ 🗂️ 🎭 📓 🗼 🌇 💕 🗨️ 💫 🌟 💭 📌 🧮 🐤 🏆 📰 🌸 📆 🥠 💉 💩 📸 💹 💬 🎟️ 🎫 💡 🙋 📅 🈷️ 👨‍💻 🎼 🎩 ⏱️ 🧑‍🤝‍🧑 ✒️ 🗂️ 🎭 📓 🗼 🌇 💕 🗨️ 💫 🌟 💭 📌 🧮 🐤
👤 Users 👥 Organizations
Supported features
→ Full specification
📰 📸 💹 🏅 🎟️ 🙋 🈷️ 📜 👨‍💻 ⏱️ 🧑‍🤝‍🧑 ✒️ 🗂️ 🗼 💕 🧮📰 📸 💹 🏅 🎟️ 🙋 🈷️ 📜 👨‍💻 ⏱️ 🧑‍🤝‍🧑 ✒️ 🗂️ 🗼 💕 🧮
📓 Repositories