Skip to content

Commit 5bc9df2

Browse files
committed
deprecate(plugins/support): deprecation
1 parent 9e48b7c commit 5bc9df2

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

.github/readme/partials/templated/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
1010
</tr>
1111
<% {
1212
let cell = 0
13-
const elements = Object.entries(plugins).filter(([key, value]) => (value)&&(!["base", "core"].includes(key)&&(value.category !== "community")))
13+
const elements = Object.entries(plugins).filter(([key, value]) => (value)&&(!["base", "core"].includes(key)&&(value.category !== "community")&&(!value.deprecation)))
1414
-%>
1515
<tr>
1616
<th colspan="2" align="center">

.github/readme/partials/templated/plugins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
Plugins provide additional content and lets you customize rendered metrics.
44

55
**📦 Maintained by core team**
6-
<% { let previous = null; for (const [plugin, {name, category, authors = []}] of Object.entries(plugins).filter(([key, value]) => (value)&&(value.category !== "community")).sort(([an, a], [bn, b]) => a.category === b.category ? an.localeCompare(bn) : 0)) { %>
6+
<% { let previous = null; for (const [plugin, {name, category, deprecation, authors = []}] of Object.entries(plugins).filter(([key, value]) => (value)&&(value.category !== "community")).sort(([an, a], [bn, b]) => a.category === b.category ? an.localeCompare(bn) : 0)) { %>
77
<% if (previous !== category) { previous = category -%>
88
* **<%= `${category.charAt(0).toLocaleUpperCase()}${category.substring(1)} plugins` %>**
99
<% } -%>
10-
* [<%- name %> <sub>`<%= plugin %>`</sub>](/source/plugins/<%= plugin %>/README.md)<%# -%>
10+
* [<%- name %> <sub>`<%= plugin %>`</sub>](/source/plugins/<%= plugin %>/README.md)<%# -%><% if (deprecation) { %><sub>⚠️ deprecated</sub><% } %>
1111
<% }} %>
1212

1313
**🎲 Maintained by community**

source/app/metrics/metadata.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) {
396396
' <tr><td colspan="2"><a href="/README.md#-plugins">← Back to plugins index</a></td></tr>',
397397
` <tr><th colspan="2"><h3>${meta.name}</h3></th></tr>`,
398398
` <tr><td colspan="2" align="center">${marked.parse(meta.description ?? "", {silent: true})}</td></tr>`,
399+
meta.deprecation ? ` <tr><th>⚠️ Deprecated</th><td>${marked.parse(meta.deprecation ?? "", {silent: true})}</td></tr>` : "",
399400
meta.authors?.length ? `<tr><th>Authors</th><td>${[meta.authors].flat().map(author => `<a href="https://github.com/${author}">@${author}</a>`)}</td></tr>` : "",
400401
" <tr>",
401402
' <th rowspan="3">Supported features<br><sub><a href="metadata.yml">→ Full specification</a></sub></th>',

source/plugins/support/examples.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
token: NOT_NEEDED
66
base: ""
77
plugin_support: yes
8+
prod:
9+
skip: true

source/plugins/support/metadata.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ name: 💭 GitHub Community Support
22
category: github
33
description: |
44
This plugin displays statistics from a [GitHub Support Community](https://github.community/) account.
5+
deprecation: |
6+
GitHub Support Community has been moved to [GitHub Discussions](https://github.blog/2022-07-26-launching-github-community-powered-by-github-discussions).
57
examples:
68
default: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.support.svg
7-
index: 17
89
supports:
910
- user
1011
scopes: []

0 commit comments

Comments
 (0)