109 lines
3.4 KiB
Markdown
109 lines
3.4 KiB
Markdown
### 🗂️ Active projects
|
||
|
||
> ⚠️ This plugin requires a personal token with public_repo scope.
|
||
|
||
The *projects* plugin displays the progress of your profile projects.
|
||
|
||
<table>
|
||
<td align="center">
|
||
<img src="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.projects.svg">
|
||
<img width="900" height="1" alt="">
|
||
</td>
|
||
</table>
|
||
|
||
Because of GitHub REST API limitation, provided token requires `public_repo` scope to access projects informations.
|
||
|
||
Note that by default, projects have progress tracking disabled.
|
||
To enable it, open the `≡ Menu` and edit the project to opt-in to `Track project progress` (it can be a bit confusing since it's actually not in the project settings).
|
||
|
||

|
||
|
||
<details>
|
||
<summary>💬 Create a personal project on GitHub</summary>
|
||
|
||
On your profile, select the `Projects` tab:
|
||

|
||
|
||
Fill the informations and set visibility to *public*:
|
||

|
||
|
||
</details>
|
||
|
||
<details>
|
||
<summary>💬 Use repositories projects</summary>
|
||
|
||
It is possible to display projects related to repositories along with personal projects.
|
||
|
||
To do so, open your repository project and retrieve the last URL endpoint, in the format `:user/:repository/projects/:project_id` (for example, `lowlighter/metrics/projects/1`) and add it in the `plugin_projects_repositories` option. Enable `Track project progress` in the project settings to display a progress bar in generated metrics.
|
||
|
||

|
||
|
||
</details>
|
||
|
||
#### ➡️ Available options
|
||
|
||
<!--options-->
|
||
<table>
|
||
<tr>
|
||
<td align="center" nowrap="nowrap">Type</i></td><td align="center" nowrap="nowrap">Description</td>
|
||
</tr>
|
||
<tr>
|
||
<td nowrap="nowrap"><code>plugin_projects</code></td>
|
||
<td rowspan="2">Display active projects<img width="900" height="1" alt=""></td>
|
||
</tr>
|
||
<tr>
|
||
<td nowrap="nowrap"><b>type:</b> <code>boolean</code>
|
||
<br>
|
||
<b>default:</b> no<br></td>
|
||
</tr>
|
||
<tr>
|
||
<td nowrap="nowrap"><code>plugin_projects_limit</code></td>
|
||
<td rowspan="2">Maximum number of projects to display<img width="900" height="1" alt=""></td>
|
||
</tr>
|
||
<tr>
|
||
<td nowrap="nowrap"><b>type:</b> <code>number</code>
|
||
<br>
|
||
<i>(0 ≤
|
||
𝑥
|
||
≤ 100)</i>
|
||
<b>default:</b> 4<br></td>
|
||
</tr>
|
||
<tr>
|
||
<td nowrap="nowrap"><code>plugin_projects_repositories</code></td>
|
||
<td rowspan="2">List of repository project identifiers to disaplay<img width="900" height="1" alt=""></td>
|
||
</tr>
|
||
<tr>
|
||
<td nowrap="nowrap"><b>type:</b> <code>array</code>
|
||
<i>(comma-separated)</i>
|
||
<br></td>
|
||
</tr>
|
||
<tr>
|
||
<td nowrap="nowrap"><code>plugin_projects_descriptions</code></td>
|
||
<td rowspan="2">Display projects descriptions<img width="900" height="1" alt=""></td>
|
||
</tr>
|
||
<tr>
|
||
<td nowrap="nowrap"><b>type:</b> <code>boolean</code>
|
||
<br>
|
||
<b>default:</b> no<br></td>
|
||
</tr>
|
||
</table>
|
||
<!--/options-->
|
||
|
||
*[→ Full specification](metadata.yml)*
|
||
|
||
#### ℹ️ Examples workflows
|
||
|
||
<!--examples-->
|
||
```yaml
|
||
name: Project from a repository
|
||
uses: lowlighter/metrics@latest
|
||
with:
|
||
filename: metrics.plugin.projects.svg
|
||
token: ${{ secrets.METRICS_TOKEN_WITH_SCOPES }}
|
||
base: ''
|
||
plugin_projects: 'yes'
|
||
plugin_projects_repositories: lowlighter/metrics/projects/1
|
||
plugin_projects_descriptions: 'yes'
|
||
|
||
```
|
||
<!--/examples--> |