docs(plugins/licenses, plugins/stars): update to new doc format [skip ci]
This commit is contained in:
18
README.md
18
README.md
@@ -48,12 +48,16 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<details open><summary>With icons</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.topics.icons.svg" alt=""></img></details>
|
<details open><summary>With icons</summary>
|
||||||
<details open><summary>With labels</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.topics.svg" alt=""></img></details>
|
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.topics.icons.svg">
|
||||||
|
</details>
|
||||||
|
<details open><summary>With labels</summary>
|
||||||
|
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.topics.svg">
|
||||||
|
</details>
|
||||||
<img width="900" height="1" alt="">
|
<img width="900" height="1" alt="">
|
||||||
</td>
|
</td>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.stars.svg">
|
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.stars.svg" alt=""></img>
|
||||||
<img width="900" height="1" alt="">
|
<img width="900" height="1" alt="">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -63,12 +67,8 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<details open><summary>Permissions, limitations and conditions</summary>
|
<details open><summary>Permissions, limitations and conditions</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.svg" alt=""></img></details>
|
||||||
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.svg">
|
<details open><summary>Licenses overview</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.ratio.svg" alt=""></img></details>
|
||||||
</details>
|
|
||||||
<details open><summary>Licenses overview</summary>
|
|
||||||
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.ratio.svg">
|
|
||||||
</details>
|
|
||||||
<img width="900" height="1" alt="">
|
<img width="900" height="1" alt="">
|
||||||
</td>
|
</td>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
|
|||||||
6
settings.example.json
generated
6
settings.example.json
generated
@@ -39,13 +39,13 @@
|
|||||||
"enabled": false, "//": "Enable languages plugin"
|
"enabled": false, "//": "Enable languages plugin"
|
||||||
},
|
},
|
||||||
"topics":{
|
"topics":{
|
||||||
"enabled": false, "//": "Enable topics plugin"
|
"enabled": false, "//": "Display starred topics"
|
||||||
},
|
},
|
||||||
"stars":{
|
"stars":{
|
||||||
"enabled": false, "//": "Display recently starred repositories"
|
"enabled": false, "//": "Enable stars plugin"
|
||||||
},
|
},
|
||||||
"licenses":{
|
"licenses":{
|
||||||
"enabled": false, "//": "Display licenses informations"
|
"enabled": false, "//": "Enable licenses plugin"
|
||||||
},
|
},
|
||||||
"habits":{
|
"habits":{
|
||||||
"enabled": false, "//": "Display coding habits metrics"
|
"enabled": false, "//": "Display coding habits metrics"
|
||||||
|
|||||||
@@ -43,6 +43,10 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_isocalendar_duration</code></td>
|
<td nowrap="nowrap"><code>plugin_isocalendar_duration</code></td>
|
||||||
<td rowspan="2"><p>Time window</p>
|
<td rowspan="2"><p>Time window</p>
|
||||||
|
<ul>
|
||||||
|
<li><code>half-year</code>: 180 days</li>
|
||||||
|
<li><code>full-year</code>: 1 year</li>
|
||||||
|
</ul>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -17,7 +17,10 @@ inputs:
|
|||||||
default: no
|
default: no
|
||||||
|
|
||||||
plugin_isocalendar_duration:
|
plugin_isocalendar_duration:
|
||||||
description: Time window
|
description: |
|
||||||
|
Time window
|
||||||
|
- `half-year`: 180 days
|
||||||
|
- `full-year`: 1 year
|
||||||
type: string
|
type: string
|
||||||
default: half-year
|
default: half-year
|
||||||
values:
|
values:
|
||||||
|
|||||||
@@ -1,30 +1,50 @@
|
|||||||
### 📜 Repository licenses
|
<!--header-->
|
||||||
|
<table>
|
||||||
|
<tr><th colspan="2"><h3>📜 Repository licenses</h3></th></tr>
|
||||||
|
<tr><td colspan="2" align="center"><p>This plugin display repository license informations like permissions, limitations and conditions along with additional stats about dependencies.</p>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<th rowspan="3">Supported features<br><sub><a href="metadata.yml">→ Full specification</a></sub></th>
|
||||||
|
<td><a href="/source/templates/repository"><code>📘 Repository template</code></a></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>📓 Repositories</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>🔑 (scopeless)</code> <code>read:org (optional)</code> <code>read:user (optional)</code> <code>repo (optional)</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2" align="center">
|
||||||
|
<details open><summary>Permissions, limitations and conditions</summary><img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.svg" alt=""></img></details>
|
||||||
|
<details open><summary>Licenses overview</summary><img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.ratio.svg" alt=""></img></details>
|
||||||
|
<img width="900" height="1" alt="">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<!--/header-->
|
||||||
|
|
||||||
|
## 🔎 Licenses analysis
|
||||||
|
|
||||||
|
Use to `plugin_licenses_setup` command to setup project dependencies.
|
||||||
|
|
||||||
|
*Example: setup a NodeJS project using `npm ci`*
|
||||||
|
```yml
|
||||||
|
- name: Licenses and permissions
|
||||||
|
with:
|
||||||
|
repo: metrics
|
||||||
|
plugin_licenses: yes
|
||||||
|
plugin_licenses_setup: npm ci
|
||||||
|
```
|
||||||
|
|
||||||
|
Dependencies will be analyzed by [GitHub licensed](https://github.com/github/licensed) and compared against GitHub known licenses.
|
||||||
|
|
||||||
> ⚠️ This is **NOT** legal advice, use at your own risk
|
> ⚠️ This is **NOT** legal advice, use at your own risk
|
||||||
|
|
||||||
> 🔣 On web instances, this plugin is an extra feature and must be enabled globally in `settings.json`
|
> 💣 This plugin **SHOULD NOT** be enabled on web instances, since it allows raw command injection.
|
||||||
> 💣 Note that this plugin allows raw commands injection and is **NOT** advised to be enabled on them
|
|
||||||
> This could result in compromised server!
|
> This could result in compromised server!
|
||||||
|
|
||||||
The *licenses* plugin lets you display license informations like permissions, limitations and conditions along with additional metrics about dependencies.
|
|
||||||
|
|
||||||
<table>
|
## ➡️ Available options
|
||||||
<td align="center">
|
|
||||||
<details open><summary>Permissions, limitations and conditions</summary>
|
|
||||||
<img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.svg">
|
|
||||||
</details>
|
|
||||||
<details open><summary>Licenses overview</summary>
|
|
||||||
<img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.ratio.svg">
|
|
||||||
</details>
|
|
||||||
<img width="900" height="1" alt="">
|
|
||||||
</td>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
Project must be setup with dependencies using `plugin_licenses_setup` option (for example, `npm ci` for a NodeJS project).
|
|
||||||
|
|
||||||
Dependencies will be analyzed with [github/licensed](https://github.com/github/licensed) and compared against GitHub known licenses.
|
|
||||||
|
|
||||||
#### ➡️ Available options
|
|
||||||
|
|
||||||
<!--options-->
|
<!--options-->
|
||||||
<table>
|
<table>
|
||||||
@@ -33,7 +53,7 @@ Dependencies will be analyzed with [github/licensed](https://github.com/github/l
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_licenses</code></td>
|
<td nowrap="nowrap"><code>plugin_licenses</code></td>
|
||||||
<td rowspan="2"><p>Display licenses informations</p>
|
<td rowspan="2"><p>Enable licenses plugin</p>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -44,7 +64,7 @@ Dependencies will be analyzed with [github/licensed](https://github.com/github/l
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_licenses_setup</code></td>
|
<td nowrap="nowrap"><code>plugin_licenses_setup</code></td>
|
||||||
<td rowspan="2"><p>Command to setup target repository</p>
|
<td rowspan="2"><p>Setup command</p>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -63,7 +83,7 @@ Dependencies will be analyzed with [github/licensed](https://github.com/github/l
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_licenses_legal</code></td>
|
<td nowrap="nowrap"><code>plugin_licenses_legal</code></td>
|
||||||
<td rowspan="2"><p>Display legal informations about used licenses</p>
|
<td rowspan="2"><p>Display permissions, limitations and conditions about used licenses</p>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -74,9 +94,7 @@ Dependencies will be analyzed with [github/licensed](https://github.com/github/l
|
|||||||
</table>
|
</table>
|
||||||
<!--/options-->
|
<!--/options-->
|
||||||
|
|
||||||
*[→ Full specification](metadata.yml)*
|
## ℹ️ Examples workflows
|
||||||
|
|
||||||
#### ℹ️ Examples workflows
|
|
||||||
|
|
||||||
<!--examples-->
|
<!--examples-->
|
||||||
```yaml
|
```yaml
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
name: "📜 Repository licenses"
|
name: "📜 Repository licenses"
|
||||||
category: github
|
category: github
|
||||||
|
description: This plugin display repository license informations like permissions, limitations and conditions along with additional stats about dependencies.
|
||||||
|
examples:
|
||||||
|
+permissions, limitations and conditions: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.svg
|
||||||
|
+licenses overview: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.ratio.svg
|
||||||
index: 4
|
index: 4
|
||||||
supports:
|
supports:
|
||||||
- repository
|
- repository
|
||||||
@@ -7,30 +11,24 @@ scopes:
|
|||||||
- public_access
|
- public_access
|
||||||
inputs:
|
inputs:
|
||||||
|
|
||||||
# Enable or disable plugin
|
|
||||||
plugin_licenses:
|
plugin_licenses:
|
||||||
description: Display licenses informations
|
description: Enable licenses plugin
|
||||||
type: boolean
|
type: boolean
|
||||||
default: no
|
default: no
|
||||||
extras: yes
|
extras: yes
|
||||||
|
|
||||||
# Command to use to setup target repository
|
|
||||||
# It is required to install all dependencies that will be analyzed with github/licensed
|
|
||||||
plugin_licenses_setup:
|
plugin_licenses_setup:
|
||||||
description: Command to setup target repository
|
description: Setup command
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
example: npm ci
|
example: npm ci
|
||||||
|
|
||||||
# Display used licenses from both repository license and dependencies licenses ratio
|
|
||||||
plugin_licenses_ratio:
|
plugin_licenses_ratio:
|
||||||
description: Display used licenses ratio
|
description: Display used licenses ratio
|
||||||
type: boolean
|
type: boolean
|
||||||
default: no
|
default: no
|
||||||
|
|
||||||
# Display permissions, limitations and conditions from both repository license and dependencies licenses
|
|
||||||
# Note that this is NOT legal advice, use at your own risk
|
|
||||||
plugin_licenses_legal:
|
plugin_licenses_legal:
|
||||||
description: Display legal informations about used licenses
|
description: Display permissions, limitations and conditions about used licenses
|
||||||
type: boolean
|
type: boolean
|
||||||
default: yes
|
default: yes
|
||||||
@@ -1,15 +1,28 @@
|
|||||||
### 🌟 Recently starred repositories
|
<!--header-->
|
||||||
|
|
||||||
The *stars* plugin displays your recently starred repositories.
|
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<td align="center">
|
<tr><th colspan="2"><h3>🌟 Recently starred repositories</h3></th></tr>
|
||||||
<img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.stars.svg">
|
<tr><td colspan="2" align="center"><p>This plugin displays your recently starred repositories.</p>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<th rowspan="3">Supported features<br><sub><a href="metadata.yml">→ Full specification</a></sub></th>
|
||||||
|
<td><a href="/source/templates/classic"><code>📗 Classic template</code></a></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>👤 Users</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>🔑 (scopeless)</code> <code>read:org (optional)</code> <code>read:user (optional)</code> <code>repo (optional)</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2" align="center">
|
||||||
|
<img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.stars.svg" alt=""></img>
|
||||||
<img width="900" height="1" alt="">
|
<img width="900" height="1" alt="">
|
||||||
</td>
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
<!--/header-->
|
||||||
|
|
||||||
#### ➡️ Available options
|
## ➡️ Available options
|
||||||
|
|
||||||
<!--options-->
|
<!--options-->
|
||||||
<table>
|
<table>
|
||||||
@@ -18,7 +31,7 @@ The *stars* plugin displays your recently starred repositories.
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_stars</code></td>
|
<td nowrap="nowrap"><code>plugin_stars</code></td>
|
||||||
<td rowspan="2"><p>Display recently starred repositories</p>
|
<td rowspan="2"><p>Enable stars plugin</p>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -28,7 +41,7 @@ The *stars* plugin displays your recently starred repositories.
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_stars_limit</code></td>
|
<td nowrap="nowrap"><code>plugin_stars_limit</code></td>
|
||||||
<td rowspan="2"><p>Maximum number of stars to display</p>
|
<td rowspan="2"><p>Display limit</p>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -42,9 +55,7 @@ The *stars* plugin displays your recently starred repositories.
|
|||||||
</table>
|
</table>
|
||||||
<!--/options-->
|
<!--/options-->
|
||||||
|
|
||||||
*[→ Full specification](metadata.yml)*
|
## ℹ️ Examples workflows
|
||||||
|
|
||||||
#### ℹ️ Examples workflows
|
|
||||||
|
|
||||||
<!--examples-->
|
<!--examples-->
|
||||||
```yaml
|
```yaml
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
name: "🌟 Recently starred repositories"
|
name: "🌟 Recently starred repositories"
|
||||||
category: github
|
category: github
|
||||||
|
description: This plugin displays your recently starred repositories.
|
||||||
|
examples:
|
||||||
|
default: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.stars.svg
|
||||||
index: 3
|
index: 3
|
||||||
supports:
|
supports:
|
||||||
- user
|
- user
|
||||||
@@ -7,15 +10,13 @@ scopes:
|
|||||||
- public_access
|
- public_access
|
||||||
inputs:
|
inputs:
|
||||||
|
|
||||||
# Enable or disable plugin
|
|
||||||
plugin_stars:
|
plugin_stars:
|
||||||
description: Display recently starred repositories
|
description: Enable stars plugin
|
||||||
type: boolean
|
type: boolean
|
||||||
default: no
|
default: no
|
||||||
|
|
||||||
# Number of stars to display
|
|
||||||
plugin_stars_limit:
|
plugin_stars_limit:
|
||||||
description: Maximum number of stars to display
|
description: Display limit
|
||||||
type: number
|
type: number
|
||||||
default: 4
|
default: 4
|
||||||
min: 1
|
min: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user