Merge branch 'master' of https://github.com/lowlighter/metrics
This commit is contained in:
50
README.md
50
README.md
@@ -120,6 +120,12 @@ jobs:
|
|||||||
|
|
||||||
# Skip commits flagged with [Skip GitHub Action] from commits count
|
# Skip commits flagged with [Skip GitHub Action] from commits count
|
||||||
plugin_selfskip: no
|
plugin_selfskip: no
|
||||||
|
|
||||||
|
# Optimize SVG image
|
||||||
|
optimize: yes
|
||||||
|
|
||||||
|
# Number of repositories to use to compute metrics
|
||||||
|
repositories: 100
|
||||||
|
|
||||||
# Enable debug logs
|
# Enable debug logs
|
||||||
debug: no
|
debug: no
|
||||||
@@ -155,19 +161,17 @@ Assuming your username is `my-github-user`, you can embed your metrics in your p
|
|||||||

|

|
||||||
```
|
```
|
||||||
|
|
||||||
|
Visit [metrics.lecoq.io](https://metrics.lecoq.io) for more informations.
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>💬 Restrictions and fair use</summary>
|
<summary>💬 Restrictions and fair use</summary>
|
||||||
|
|
||||||
Since GitHub API has rate limitations, the shared instance has a few limitations :
|
Since GitHub API has rate limitations, the shared instance has a few limitations :
|
||||||
* Images are cached for 1 hour
|
* Images are cached for 1 hour
|
||||||
* Your generated metrics won't be updated during this amount of time
|
* Your generated metrics won't be updated during this amount of time when queried
|
||||||
* If you enable or disable plugins in url parameters, you'll need to wait for cache expiration before these changes are applied
|
|
||||||
* The rate limiter is enabled, although it won't affect already cached users metrics
|
* The rate limiter is enabled, although it won't affect already cached users metrics
|
||||||
* Plugins which consume additional requests or require elevated token rights are disabled. The following plugins are available :
|
* Plugins which consume additional requests or require elevated token rights are disabled.
|
||||||
* PageSpeed plugin can be enabled by passing `?pagespeed=1`, but metrics generation can take up some time when it has not been cached yet
|
|
||||||
* Languages plugin can be enabled by passing `?languages=1`
|
|
||||||
* Follow-up plugin can be enabled by passing `?followup=1`
|
|
||||||
|
|
||||||
To ensure maximum availability, consider deploying your own instance or use the GitHub Action.
|
To ensure maximum availability, consider deploying your own instance or use the GitHub Action.
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
@@ -359,21 +363,34 @@ The following errors code can be encountered if on a server instance :
|
|||||||
|
|
||||||
## 📚 Documentations
|
## 📚 Documentations
|
||||||
|
|
||||||
|
### 🖼️ Templates
|
||||||
|
|
||||||
|
Templates allows you to style your metrics.
|
||||||
|
The default is the classic one, but you can change it for something more stylish.
|
||||||
|
|
||||||
|
Some metrics may be displayed differently, and it is possible that not all plugins are supported or behave the same from one template to another.
|
||||||
|
|
||||||
|
Consider trying them at [metrics.lecoq.io](https://metrics.lecoq.io) !
|
||||||
|
|
||||||
### 🧩 Plugins
|
### 🧩 Plugins
|
||||||
|
|
||||||
Plugins are features which are disabled by default but they can provide additional metrics.
|
Plugins are features which are disabled by default but they can provide additional metrics.
|
||||||
In return they may require additional configuration and tend to consume additional API requests.
|
In return they may require additional configuration and tend to consume additional API requests.
|
||||||
|
|
||||||
#### Base content
|
#### 🗃️ Base content
|
||||||
|
|
||||||
|
Generated metrics contains a few sections that are enabled by default, such as recent activity, community stats and repositories stats.
|
||||||
|
This can be configured by explicitely opt-out from them.
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>💬 About</summary>
|
||||||
|
|
||||||
By default, generated metrics contains the following sections :
|
By default, generated metrics contains the following sections :
|
||||||
* `header`, which usually contains your username, your two-week commits calendars and a few additional data
|
* `header`, which usually contains your username, your two-week commits calendars and a few additional data
|
||||||
* `activity`, which contains your recent activity (commits, pull requests opened/reviewed, issues opened, comments, etc.)
|
* `activity`, which contains your recent activity (commits, pull requests, issues, etc.)
|
||||||
* `community`, which contains your community stats (following, sponsors, stars, watching, organizations, etc.)
|
* `community`, which contains your community stats (following, sponsors, organizations, etc.)
|
||||||
* `repositories`, which contains your repositories stats (license, forks, stars, watchers, packages, gists, etc.)
|
* `repositories`, which contains your repositories stats (license, forks, stars, etc.)
|
||||||
* `metadata`, which contains informations about generated metrics (last updated date, etc.)
|
* `metadata`, which contains informations about generated metrics
|
||||||
|
|
||||||
<summary>💬 About</summary>
|
|
||||||
|
|
||||||
You can explicitely opt-out from them, if you want to keep only a few sections or if you want to use a plugin as standalone.
|
You can explicitely opt-out from them, if you want to keep only a few sections or if you want to use a plugin as standalone.
|
||||||
|
|
||||||
@@ -389,14 +406,11 @@ Choose the parts you want to keep and update your workflow. For exemple, to keep
|
|||||||
|
|
||||||
##### Setup in your own instance
|
##### Setup in your own instance
|
||||||
|
|
||||||
Pass `?base.activity=0&base.` in url when generating metrics.
|
Choose the parts you want to keep and update your url query. For exemple, to keep only `header` and `repositories` sections, pass `?base.activity=0&base.community=0&base.metadata=0` to your url query.
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
# Base content to include in metrics (list of comma-separated sections name as string)
|
|
||||||
|
|
||||||
|
|
||||||
#### ⏱️ PageSpeed
|
#### ⏱️ PageSpeed
|
||||||
|
|
||||||
The *pagespeed* plugin allows you to add the performances of the website attached to the GitHub user account :
|
The *pagespeed* plugin allows you to add the performances of the website attached to the GitHub user account :
|
||||||
|
|||||||
Reference in New Issue
Block a user