doc(plugins/activity): update
This commit is contained in:
@@ -1,35 +1,28 @@
|
|||||||
### 📰 Recent activity
|
<!--header-->
|
||||||
|
|
||||||
The *activity* plugin displays your recent activity on GitHub.
|
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<td align="center">
|
<tr><th colspan="2"><h3>📰 Recent activity</h3></th></tr>
|
||||||
<img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.activity.svg">
|
<tr><td colspan="2" align="center"><p>This plugin displays your recent activity on GitHub.</p>
|
||||||
<img width="900" height="1" alt="">
|
</td></tr>
|
||||||
</td>
|
<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> <a href="/source/templates/markdown"><code>📒 Markdown template</code></a> <a href="/source/templates/repository"><code>📘 Repository template</code></a></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>👤 Users</code> <code>👥 Organizations</code> <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">
|
||||||
|
<img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.activity.svg" alt=""></img>
|
||||||
|
<img width="900" height="1" alt="">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
<!--/header-->
|
||||||
|
|
||||||
It uses data from [GitHub events](https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/github-event-types) and is able to track the following events:
|
## ➡️ Available options
|
||||||
|
|
||||||
| Event | Description |
|
|
||||||
| ------------ | ----------------------------------------------- |
|
|
||||||
| `push` | Push of commits |
|
|
||||||
| `issue` | Opening/Reopening/Closing of issues |
|
|
||||||
| `pr` | Opening/Closing of pull requests |
|
|
||||||
| `ref/create` | Creation of git tags or git branches |
|
|
||||||
| `ref/delete` | Deletion of git tags or git branches |
|
|
||||||
| `release` | Publication of new releases |
|
|
||||||
| `review` | Review of pull requests |
|
|
||||||
| `comment` | Comments on commits, issues and pull requests |
|
|
||||||
| `wiki` | Edition of wiki pages |
|
|
||||||
| `fork` | Forking of repositories |
|
|
||||||
| `star` | Starring of repositories |
|
|
||||||
| `public` | Repositories made public |
|
|
||||||
| `member` | Addition of new collaborator in repository |
|
|
||||||
|
|
||||||
Use a full `repo` scope token to display **private** events.
|
|
||||||
|
|
||||||
#### ➡️ Available options
|
|
||||||
|
|
||||||
<!--options-->
|
<!--options-->
|
||||||
<table>
|
<table>
|
||||||
@@ -38,7 +31,7 @@ Use a full `repo` scope token to display **private** events.
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_activity</code></td>
|
<td nowrap="nowrap"><code>plugin_activity</code></td>
|
||||||
<td rowspan="2"><p>Display recent activity</p>
|
<td rowspan="2"><p>Enable activity plugin</p>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -48,7 +41,7 @@ Use a full `repo` scope token to display **private** events.
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_activity_limit</code></td>
|
<td nowrap="nowrap"><code>plugin_activity_limit</code></td>
|
||||||
<td rowspan="2"><p>Maximum number of events 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>
|
||||||
@@ -61,7 +54,7 @@ Use a full `repo` scope token to display **private** events.
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_activity_load</code></td>
|
<td nowrap="nowrap"><code>plugin_activity_load</code></td>
|
||||||
<td rowspan="2"><p>Number of events to load</p>
|
<td rowspan="2"><p>Events to load</p>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -74,7 +67,7 @@ Use a full `repo` scope token to display **private** events.
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_activity_days</code></td>
|
<td nowrap="nowrap"><code>plugin_activity_days</code></td>
|
||||||
<td rowspan="2"><p>Maximum event age</p>
|
<td rowspan="2"><p>Events maximum age</p>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -83,23 +76,13 @@ Use a full `repo` scope token to display **private** events.
|
|||||||
𝑥
|
𝑥
|
||||||
≤ 365)</i>
|
≤ 365)</i>
|
||||||
<br>
|
<br>
|
||||||
|
<b>zero behaviour:</b> disable</br>
|
||||||
<b>default:</b> 14<br></td>
|
<b>default:</b> 14<br></td>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td nowrap="nowrap"><code>plugin_activity_filter</code></td>
|
|
||||||
<td rowspan="2"><p>Events types to keep</p>
|
|
||||||
<img width="900" height="1" alt=""></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td nowrap="nowrap"><b>type:</b> <code>array</code>
|
|
||||||
<i>(comma-separated)</i>
|
|
||||||
<br>
|
|
||||||
<b>default:</b> all<br>
|
|
||||||
<b>allowed values:</b><ul><li>all</li><li>comment</li><li>ref/create</li><li>ref/delete</li><li>release</li><li>push</li><li>issue</li><li>pr</li><li>review</li><li>wiki</li><li>fork</li><li>star</li><li>member</li><li>public</li></ul></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_activity_visibility</code></td>
|
<td nowrap="nowrap"><code>plugin_activity_visibility</code></td>
|
||||||
<td rowspan="2"><p>Set events visibility</p>
|
<td rowspan="2"><p>Events visibility</p>
|
||||||
|
<p>Lets you hide private activity when using a <code>repo</code> scope token</p>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -120,7 +103,7 @@ Use a full `repo` scope token to display **private** events.
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_activity_skipped</code></td>
|
<td nowrap="nowrap"><code>plugin_activity_skipped</code></td>
|
||||||
<td rowspan="2"><p>Repositories to skip</p>
|
<td rowspan="2"><p>Skipped repositories</p>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -131,7 +114,8 @@ Use a full `repo` scope token to display **private** events.
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_activity_ignored</code></td>
|
<td nowrap="nowrap"><code>plugin_activity_ignored</code></td>
|
||||||
<td rowspan="2"><p>Actors to ignore</p>
|
<td rowspan="2"><p>Ignored users</p>
|
||||||
|
<p>Useful to ignore bots activity</p>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -139,12 +123,38 @@ Use a full `repo` scope token to display **private** events.
|
|||||||
<b>type:</b> <code>undefined</code>
|
<b>type:</b> <code>undefined</code>
|
||||||
<br></td>
|
<br></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap="nowrap"><code>plugin_activity_filter</code></td>
|
||||||
|
<td rowspan="2"><p>Events types</p>
|
||||||
|
<p>These are fetched from <a href="https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/github-event-types">GitHub events API</a> and the following types are currently supported:</p>
|
||||||
|
<ul>
|
||||||
|
<li><code>push</code>: Push of commits</li>
|
||||||
|
<li><code>issue</code>: Opening/Reopening/Closing of issues</li>
|
||||||
|
<li><code>pr</code>: Opening/Closing of pull requests</li>
|
||||||
|
<li>`ref/create: Creation of git tags or git branches</li>
|
||||||
|
<li>`ref/delete: Deletion of git tags or git branches</li>
|
||||||
|
<li><code>release</code>: Publication of new releases</li>
|
||||||
|
<li><code>review</code>: Review of pull requests</li>
|
||||||
|
<li><code>comment</code>: Comments on commits, issues and pull requests</li>
|
||||||
|
<li><code>wiki</code>: Edition of wiki pages</li>
|
||||||
|
<li><code>fork</code>: Forking of repositories</li>
|
||||||
|
<li><code>star</code>: Starring of repositories</li>
|
||||||
|
<li><code>public</code>: Repositories made public</li>
|
||||||
|
<li><code>member</code>: Addition of new collaborator in repository</li>
|
||||||
|
</ul>
|
||||||
|
<img width="900" height="1" alt=""></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap="nowrap"><b>type:</b> <code>array</code>
|
||||||
|
<i>(comma-separated)</i>
|
||||||
|
<br>
|
||||||
|
<b>default:</b> all<br>
|
||||||
|
<b>allowed values:</b><ul><li>all</li><li>comment</li><li>ref/create</li><li>ref/delete</li><li>release</li><li>push</li><li>issue</li><li>pr</li><li>review</li><li>wiki</li><li>fork</li><li>star</li><li>member</li><li>public</li></ul></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<!--/options-->
|
<!--/options-->
|
||||||
|
|
||||||
*[→ Full specification](metadata.yml)*
|
## ℹ️ Examples workflows
|
||||||
|
|
||||||
#### ℹ️ Examples workflows
|
|
||||||
|
|
||||||
<!--examples-->
|
<!--examples-->
|
||||||
```yaml
|
```yaml
|
||||||
@@ -160,4 +170,4 @@ with:
|
|||||||
plugin_activity_filter: issue, pr, release, fork, review, ref/create
|
plugin_activity_filter: issue, pr, release, fork, review, ref/create
|
||||||
|
|
||||||
```
|
```
|
||||||
<!--/examples-->
|
<!--/examples-->
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
name: "📰 Recent activity"
|
name: "📰 Recent activity"
|
||||||
category: github
|
category: github
|
||||||
|
description: This plugin displays your recent activity on GitHub.
|
||||||
|
examples:
|
||||||
|
default: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.activity.svg
|
||||||
index: 13
|
index: 13
|
||||||
supports:
|
supports:
|
||||||
- user
|
- user
|
||||||
@@ -9,89 +12,99 @@ scopes:
|
|||||||
- public_access
|
- public_access
|
||||||
inputs:
|
inputs:
|
||||||
|
|
||||||
# Enable or disable plugin
|
|
||||||
plugin_activity:
|
plugin_activity:
|
||||||
description: Display recent activity
|
description: Enable activity plugin
|
||||||
type: boolean
|
type: boolean
|
||||||
default: no
|
default: no
|
||||||
|
|
||||||
# Number of activity events to display
|
|
||||||
plugin_activity_limit:
|
plugin_activity_limit:
|
||||||
description: Maximum number of events to display
|
description: Display limit
|
||||||
type: number
|
type: number
|
||||||
default: 5
|
default: 5
|
||||||
min: 1
|
min: 1
|
||||||
max: 1000
|
max: 1000
|
||||||
|
|
||||||
# Number of activity events to load
|
|
||||||
# This should be higher than "plugin_activity_limit"
|
|
||||||
# A high number will consume more requests
|
|
||||||
plugin_activity_load:
|
plugin_activity_load:
|
||||||
description: Number of events to load
|
description: Events to load
|
||||||
type: number
|
type: number
|
||||||
default: 300
|
default: 300
|
||||||
min: 100
|
min: 100
|
||||||
max: 1000
|
max: 1000
|
||||||
|
|
||||||
# Filter events by age
|
|
||||||
# Note that it only filter fetched events, you may need to increase "plugin_activity_limit" to display older events
|
|
||||||
# Set to 0 to disable age filtering
|
|
||||||
plugin_activity_days:
|
plugin_activity_days:
|
||||||
description: Maximum event age
|
description: Events maximum age
|
||||||
type: number
|
type: number
|
||||||
default: 14
|
default: 14
|
||||||
min: 0
|
min: 0
|
||||||
max: 365
|
max: 365
|
||||||
|
zero: disable
|
||||||
|
|
||||||
# Filter events by type
|
|
||||||
plugin_activity_filter:
|
|
||||||
description: Events types to keep
|
|
||||||
type: array
|
|
||||||
format: comma-separated
|
|
||||||
default: all
|
|
||||||
example: issue, pr, review, wiki, star
|
|
||||||
values:
|
|
||||||
- all # Display all types of events
|
|
||||||
- comment # Display commits, issues and pull requests comments
|
|
||||||
- ref/create # Display tags and branches creations
|
|
||||||
- ref/delete # Display tags and branches deletions
|
|
||||||
- release # Display published releases
|
|
||||||
- push # Display commits
|
|
||||||
- issue # Display issues events
|
|
||||||
- pr # Display pull requests events
|
|
||||||
- review # Display pull request reviews
|
|
||||||
- wiki # Display wiki editions
|
|
||||||
- fork # Display forked repositories
|
|
||||||
- star # Display starred repositories
|
|
||||||
- member # Display collaborators additions
|
|
||||||
- public # Display repositories made public
|
|
||||||
|
|
||||||
# Set events visibility (use this to restrict events when using a "repo" token)
|
|
||||||
plugin_activity_visibility:
|
plugin_activity_visibility:
|
||||||
description: Set events visibility
|
description: |
|
||||||
|
Events visibility
|
||||||
|
|
||||||
|
Lets you hide private activity when using a `repo` scope token
|
||||||
type: string
|
type: string
|
||||||
default: all
|
default: all
|
||||||
values:
|
values:
|
||||||
- public
|
- public
|
||||||
- all
|
- all
|
||||||
|
|
||||||
# Display events timestamps
|
|
||||||
plugin_activity_timestamps:
|
plugin_activity_timestamps:
|
||||||
description: Display events timestamps
|
description: Display events timestamps
|
||||||
type: boolean
|
type: boolean
|
||||||
default: no
|
default: no
|
||||||
|
|
||||||
# List of repositories that will be skipped
|
|
||||||
plugin_activity_skipped:
|
plugin_activity_skipped:
|
||||||
description: Repositories to skip
|
description: Skipped repositories
|
||||||
type: array
|
type: array
|
||||||
format: comma-separated
|
format: comma-separated
|
||||||
default: ""
|
default: ""
|
||||||
example: my-repo-1, my-repo-2, owner/repo-3, ...
|
example: my-repo-1, my-repo-2, owner/repo-3, ...
|
||||||
inherits: repositories_skipped
|
inherits: repositories_skipped
|
||||||
|
|
||||||
# Ignored actors (useful to ignore bots users)
|
|
||||||
plugin_activity_ignored:
|
plugin_activity_ignored:
|
||||||
description: Actors to ignore
|
description: |
|
||||||
|
Ignored users
|
||||||
|
|
||||||
|
Useful to ignore bots activity
|
||||||
default: ""
|
default: ""
|
||||||
inherits: users_ignored
|
inherits: users_ignored
|
||||||
|
|
||||||
|
plugin_activity_filter:
|
||||||
|
description: |
|
||||||
|
Events types
|
||||||
|
|
||||||
|
These are fetched from [GitHub events API](https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/github-event-types) and the following types are currently supported:
|
||||||
|
- `push`: Push of commits
|
||||||
|
- `issue`: Opening/Reopening/Closing of issues
|
||||||
|
- `pr`: Opening/Closing of pull requests
|
||||||
|
- `ref/create: Creation of git tags or git branches
|
||||||
|
- `ref/delete: Deletion of git tags or git branches
|
||||||
|
- `release`: Publication of new releases
|
||||||
|
- `review`: Review of pull requests
|
||||||
|
- `comment`: Comments on commits, issues and pull requests
|
||||||
|
- `wiki`: Edition of wiki pages
|
||||||
|
- `fork`: Forking of repositories
|
||||||
|
- `star`: Starring of repositories
|
||||||
|
- `public`: Repositories made public
|
||||||
|
- `member`: Addition of new collaborator in repository
|
||||||
|
type: array
|
||||||
|
format: comma-separated
|
||||||
|
default: all
|
||||||
|
example: issue, pr, review, wiki, star
|
||||||
|
values:
|
||||||
|
- all
|
||||||
|
- comment
|
||||||
|
- ref/create
|
||||||
|
- ref/delete
|
||||||
|
- release
|
||||||
|
- push
|
||||||
|
- issue
|
||||||
|
- pr
|
||||||
|
- review
|
||||||
|
- wiki
|
||||||
|
- fork
|
||||||
|
- star
|
||||||
|
- member
|
||||||
|
- public
|
||||||
Reference in New Issue
Block a user