doc(plugins/followup): update

This commit is contained in:
lowlighter
2022-01-15 22:36:33 -05:00
parent a22c93cceb
commit 34203e9a07
2 changed files with 51 additions and 31 deletions

View File

@@ -1,23 +1,30 @@
### 🎟️ Follow-up of issues and pull requests <!--header-->
The *followup* plugin displays the ratio of open/closed issues and the ratio of open/merged pull requests across all your repositories, which shows if they're well-maintained or not.
<table> <table>
<td align="center"> <tr><th colspan="2"><h3>🎟️ Follow-up of issues and pull requests</h3></th></tr>
<details open><summary>Indepth analysis</summary> <tr><td colspan="2" align="center"><p>This plugin displays the ratio of open/closed issues and the ratio of open/merged pull requests across all your repositories.</p>
<img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.followup.indepth.svg"> </td></tr>
</details> <tr>
<details><summary>Created on an user's repositories</summary> <th rowspan="3">Supported features<br><sub><a href="metadata.yml">→ Full specification</a></sub></th>
<img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.followup.svg"> <td><a href="/source/templates/classic"><code>📗 Classic template</code></a> <a href="/source/templates/repository"><code>📘 Repository template</code></a></td>
</details> </tr>
<details><summary>Created by an user</summary> <tr>
<img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.followup.user.svg"> <td><code>👤 Users</code> <code>👥 Organizations</code> <code>📓 Repositories</code></td>
</details> </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>Indepth analysis</summary><img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.followup.indepth.svg" alt=""></img></details>
<details><summary>Created on an user's repositories</summary><img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.followup.svg" alt=""></img></details>
<details><summary>Created by an user</summary><img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.followup.user.svg" alt=""></img></details>
<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>
@@ -26,7 +33,7 @@ The *followup* plugin displays the ratio of open/closed issues and the ratio of
</tr> </tr>
<tr> <tr>
<td nowrap="nowrap"><code>plugin_followup</code></td> <td nowrap="nowrap"><code>plugin_followup</code></td>
<td rowspan="2"><p>Display follow-up of repositories issues and pull requests</p> <td rowspan="2"><p>Enable followup plugin</p>
<img width="900" height="1" alt=""></td> <img width="900" height="1" alt=""></td>
</tr> </tr>
<tr> <tr>
@@ -36,7 +43,11 @@ The *followup* plugin displays the ratio of open/closed issues and the ratio of
</tr> </tr>
<tr> <tr>
<td nowrap="nowrap"><code>plugin_followup_sections</code></td> <td nowrap="nowrap"><code>plugin_followup_sections</code></td>
<td rowspan="2"><p>Sections to display</p> <td rowspan="2"><p>Displayed sections</p>
<ul>
<li><code>repositories</code>: overall status of issues and pull requests on your repositories</li>
<li><code>user</code>: overall status of issues and pull requests you have created on GitHub</li>
</ul>
<img width="900" height="1" alt=""></td> <img width="900" height="1" alt=""></td>
</tr> </tr>
<tr> <tr>
@@ -48,7 +59,7 @@ The *followup* plugin displays the ratio of open/closed issues and the ratio of
</tr> </tr>
<tr> <tr>
<td nowrap="nowrap"><code>plugin_followup_indepth</code></td> <td nowrap="nowrap"><code>plugin_followup_indepth</code></td>
<td rowspan="2"><p>Indepth follow-up processing</p> <td rowspan="2"><p>Indepth analysis</p>
<img width="900" height="1" alt=""></td> <img width="900" height="1" alt=""></td>
</tr> </tr>
<tr> <tr>
@@ -60,9 +71,13 @@ The *followup* plugin displays the ratio of open/closed issues and the ratio of
</table> </table>
<!--/options--> <!--/options-->
*[→ Full specification](metadata.yml)* ## 🔎 `indepth` mode
#### Examples workflows The `plugin_followup_indepth` option collects additional stats to differentiate issues and pull requests opened by maintainers and users.
It helps knowing whether repositories are also maintained by other users and give an overall health status of repositories.
## Examples workflows
<!--examples--> <!--examples-->
```yaml ```yaml

View File

@@ -1,5 +1,10 @@
name: "🎟️ Follow-up of issues and pull requests" name: "🎟️ Follow-up of issues and pull requests"
category: github category: github
description: This plugin displays the ratio of open/closed issues and the ratio of open/merged pull requests across all your repositories.
examples:
+indepth analysis: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.followup.indepth.svg
created on an user's repositories: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.followup.svg
created by an user: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.followup.user.svg
index: 7 index: 7
supports: supports:
- user - user
@@ -9,25 +14,25 @@ scopes:
- public_access - public_access
inputs: inputs:
# Enable or disable plugin
plugin_followup: plugin_followup:
description: Display follow-up of repositories issues and pull requests description: Enable followup plugin
type: boolean type: boolean
default: no default: no
# Sections to display
plugin_followup_sections: plugin_followup_sections:
description: Sections to display description: |
Displayed sections
- `repositories`: overall status of issues and pull requests on your repositories
- `user`: overall status of issues and pull requests you have created on GitHub
type: array type: array
format: comma-separated format: comma-separated
default: repositories default: repositories
values: values:
- repositories # Overall status of issues and pull requests on your repositories - repositories
- user # Overall status of issues and pull requests you have created on GitHub - user
# Compute issues and pull requests per repositories with special highlighting for maintainers and specified users
plugin_followup_indepth: plugin_followup_indepth:
description: Indepth follow-up processing description: Indepth analysis
type: boolean type: boolean
default: no default: no
extras: yes extras: yes